Vena wrote: ↑Sun Aug 15, 2021 10:22 pm
Ok, so I poked around a bit more, read a bit about mono dissect, saw some examples, and like a monkey punching a keyboard I managed to get some things working (kind of).
For some reason, the offsets sometimes change. I could not understand why the offsets would be changing, they should not.
If relevant, I am running V1.5.48 S5 GOLD-Public - Offical steam release, no cracks, no DLCs, several mods.
Some offset changes I found for some defines:
SHID +0085 from +007b
SMID +0012 from +000d
SAID +001c from IF +0017|+0025
But, sometimes I load the game and some old offsets are the correct ones, sometimes the new ones.
Anyhow, with some work and (lots of) patience, I manage to get the table running. Running in the sense that ALL asserts passed. No assert was commented out, so in theory, all offsets/pointers would be working. Unfortunately, practice didn't match theory.
The script runs, all asserts pass, CT shows the list of options, but without even activating any option, alt-tab back to the game and clicking anything crashes the game.
I think this is where I will stop, as it will be nearly impossible to find out what code is causing the crash. I assume is some other offset that might be writing things to the wrong place (not sure what it is writing, as no option was enabled, but for sure some new code was injected and it causes the game to crash).
Hopefully, this can help someone with more experience than me, to fix that great table.