Anon123813 wrote: ↑Sat May 14, 2022 12:37 pm
Anyone know the new list for the Extension's Air Upgrade? Or can teach me how to find it?
When you try to enable it, it usually says "The array of byte named UPG1b could not be found". So open the table in a text editor, search for UPG1b, and you will find:
Code: Select all
aobScanModule(UPG1b,$process, 2? 5F 00 84 C0 74 08 40 88 7B 08) // will break with update, check from 84 C0... usually 2.nd hit
So search for AOB in CE for "84 C0 74 08 40 88 7B 08", and you will find 2 hits. Assuming it is the second, select it and click on "Disassemble this memory region". If we do this, and scroll a line up, we get:
Code: Select all
hoi4.exe+84DE06 - E8 E53D5F00 - call hoi4.exe+E41BF0
hoi4.exe+84DE0B - 84 C0 - test al,al <-- this is the hit for the "cut down" aob
hoi4.exe+84DE0D - 74 08 - je hoi4.exe+84DE17
If we check the bytes, the 2? has changed to 3D while the 5F 00 are the same, so we put that into the AOB like so:
Code: Select all
aobScanModule(UPG1b,$process, 3D 5F 00 84 C0 74 08 40 88 7B 08) // will break with update, check from 84 C0... usually 2.nd hit
Then check the UPG1b+5 (that is the "74 08" bit) in the Disable part of the script, to make sure the two bytes are the same:
Which they are. So load up your changed table and see if it enables, check that you can increase and decrease the plane upgrades. If all is well, you are good to go.