Bandit_6 wrote: ↑Wed Jul 10, 2024 9:43 am
Quick question: Anyone know how to find reform desire? I've tried every variation I can think of and even tried to effect reform desire growth but I can't find either.
Start new game, no mods, no ironman
Pick a country, check reform desire
Assuming reform desire is 0 (pick Austria, for instance)
open console
run: reform_desire 1
close console
Search for value (4 bytes, value between, 10 and 20)
open console
reform_desire 1
close console
search between 20 and 30
repeat until you find the reform desire value
Add selected address to the address list call it "ReformDesire"
Right click and "Find out what access this address", see that the offset is E4
To make it semi-permanent (until next update)
(you can do some debugging here and see if you can find other offsets, which will help for scanning, but for now, let's ignore that)
Right click and "Generate Pointer map", call it "ReformDesireAustria"
Run scan, and wait
When done, and scan is saved, shut down CE and EU4, start up again and find the reform_desire address again (pick another country, France for instance)
Add selected address to the address list, name it ReformDesire
Right click and "Generate Pointer map", call it "ReformDesireFrance"
Run scan, and wait
When done, and scan is saved, shut down CE and EU4, start up again and find the reform_desire address again (pick another country, England for instance)
Add selected address to the address list, name it ReformDesire
Right click and "pointer scan for this address"
Use settings (these are the ones I used):
Compare results with saved pointermap(s): Add ReformDesireAustria, select ReformDesire if it is not already done
Do the same for ReformDesireFrance
Base address must be in specific range: From: eu4.exe To: eu4.exe+getModuleSize('eu4.exe')
Pointers must end in specific offset: e4
Maximum Offset Value: 8192
Max Level: 6
After doing this, I had 15 entries. You might want to do a few more "Generate Pointer Maps" to lower the number of hits, or add all 15 to a temp table (double click on the entry in the pointer scan, and it will be added with offsets) and save the table. Restart a few times with different countries to see which ones survives. You could also change Max Level to 5, to limit the number of hits (I find that fewer offsets are usually better)
One of the entries was this:
Base Address: eu4.exe+0233CE38
Offset 0: 1838
Offset 1: D60
Offset 2: 30
Offset 3: 40
Offset 4: E4
Which is the one I use in the extension table, but some of the other 14 might also be valid.
You could also try to find some other values and then see if there are any similaries (offset 4: 100, for instance, is curia coffers)