lastbeluga wrote: ↑Sun Oct 02, 2022 5:11 pm
Could you help point me in the right direction for the console? I'd like to fix some borders in ironman.
Sure, considering I sort of re-did it from scratch this time (which probably wasn't needed).
Start a new game that is non-ironman, open the console, search for byte with value 1. Close console, search for value 0, repeat until you have a few left. Have the console open (all values remaining should be 1). Change them one by one to 0. Finally you get the one opening and closing the console (there are a couple, find the one that opens the full console).
Put on a "what writes to this address", and you find what writes to it, note down the location (hoi4.exe+<something> so you can find it later when everything crashes
)
Put a breakpoint on it, see the code flow, note the function calls/return addresses.
Fire up an ironman game, and put a breakpoint on the same instruction, and you can see that it doesn't hit. Trace back until there is a branch that either calls it or not (you might want to go back to the non-ironman game to find that). Eventually you will find it, nop out this instruction, and you can now open the console in Ironman.
Then you "just" need to find the places that blocks commands from being executed, then you need to figure out how to prevent the game from crashing when commands are executed (there are notes in the table)