nipkownix / re4_tweaks

Fixes and tweaks for the "UHD" port of Resident Evil 4
zlib License
329 stars 32 forks source link

ModExpansion causes a crash after killing first ganado in r100 #582

Open kTeo-0 opened 8 months ago

kTeo-0 commented 8 months ago

Validation

Describe your issue here (drag+drop ZIP to attach it)

If this option is enabled and we have any entry in emleon00.esl with custom speed/size, the game crashes at the moment you kill the first ganado in r100, inside the house. bio4.exe.20231025115904.zip

kTeo-0 commented 8 months ago

ok so i spent the entire day looking for the cause of this, and looks like some specific entries in the ESL, when put custom size/speed, will crash certain areas of the game. I tried my best to narrow them down but its taking me a long time to work around this issue.

Here's the list so far i have written:

CRASHES THAT HAPPEN IN THIS IF YOU SET SPEED/SIZE OF SPECIFIC ESL INDEXES:

r104 - crashes after cutscene: ganado 241 (offset 1E20, id F1)

r100 - crashes after truck cutscene ganado 007 (offset E0, id 07) ganado 008 (offset 100, id 08) ganado 009 (offset 120, id 09) ganado 010 (offset 140, id 0A) ganado 011 (offset 160, id 0B) ganado 012 (offset 180, id 0C) ganado 038 (offset 4C0, id 26) ganado 039 (offset 4E0, id 27)

r105 - crashes before 1-2 chapter end screen ganado 089 (offset B20, id 59) ganado 100 (offset C80, id 64) ganado 101 (offset CA0, id 65) ganado 102 (offset CC0, id 66)

r10a - crashes upon entering area (incomplete. some entries will not crash upon entering, but will cause a crash with em2d) ganado 114 (offset E40, id 72) ganado 174 (offset 15C0, id AE) ganado 177 (offset 1620, id B1) ganado 178 (offset 1640, id B2) ganado 179 (offset 1660, id B3) ganado 180 (offset 1680, id B4) ganado 181 (offset 16A0, id B5) ganado 182 (offset 16C0, id B6) ganado 183 (offset 16E0, id B7) ganado 197 (offset 18A0, id C5)

emoose commented 7 months ago

Any chance you can recreate the crash on 1.1.0? ATM we only have an IDA database for 1.1.0, so we can't track down crashes on 1.0.6 with it that easily :/

If anyone else has any other crash issues too it would be helpful if those could be recreated on 1.1.0 as well, much better chance of them being looked into.

(also am thinking of starting a new DB for 1.0.6 now that a new IDA release is available, and that's the version most seem to stick to, but that probably won't be for a while)

FutonGama commented 6 months ago

I'm also with this problem

FutonGama commented 6 months ago

Any chance you can recreate the crash on 1.1.0? Its not possible to do that because tweaks disable automatically if you try to open with 1.0 version.

This is the crashlog for 1.0.6: bio4.exe.20240102030231.zip

FutonGama commented 6 months ago

@pas-de-2 can you help us? thanks in advance

DarthxVoid commented 6 months ago

@emoose Here is the Crash Dump of the exe in version 1.1.0 bio4.exe.20240102032630.zip

DarthxVoid commented 5 months ago

@pas-de-2 Since you are currently active here, could you look and resolve this for us? our mods depend on this method and for this reason we are unable to release them