A good way to be sure that you have the right address in the Tweakfile is actually not to use the address at all...he?
It is connected to what WEBSTER is saying in above post. If you have a word appear more then one time in a .dat we can use "SEARCH" instead of putting the exact address in the Tweakfile.
For example, lets say we have the word "Displacement" appear...lets say 2 times in a .dat/sim/zon.
We know all of them are 2 BYTES after the search word (In this case the word "Displacement")
Could look like in this example
So lets do the 1st "Displacement" for our Tweakfile code
Quote:
search,displacement,1,single,>2,displacementSurfaced
|
Notice the
1, its means, THE FIRST INSTANCE of the word "displacement"
>2 means, TWO BYTES AFTER THE SEARCH WORD!
Ok, lets put in out second "Displacement" search...I think you figured this already, but here goes
Quote:
search,displacement,2,single,>2,displacementSubmerged
|
Notice the
2, its means, THE SECOND INSTANCE of the word "displacement"
No address and this method might also work after a patch, as it will not search for a specific address location, but rather find the value specified by the search word...
Easy peasy
Most of this stuff I think should be Credited to Timetraveller, I am not 100% if more people contributed to this, I guess there was, but I only know of Time traveller and of course Nvdrifter doing some outstanding work on Tweakfiles.