nipkownix / re4_tweaks

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

ShowGameOutput causing crashes #496

Closed Mister-Curious closed 1 year ago

Mister-Curious commented 1 year ago

Issue with:

ShowGameOutput= True

When I set this in the xinput1_3.ini file game wont load into some rooms. It works ok if I set it in the in-game display (F1), but otherwise its very unstable. Getting endless messages about:

cLog::err: Flag: 4, errId: 0, Message: ITEM SET[8] failed: ETC[0] not found

bio4.exe.20230319024517.zip

nipkownix commented 1 year ago

Which room causes this log spam? I'm trying to reproduce the issue.

Mister-Curious commented 1 year ago

@nipkownix thank you for checking into this. The CrashDump I sent was created while in r109. While running some more tests this morning I couldn't even get CrashDumps to get created.

I tried to attach an ESL file here for you to use (zipped, but GH wont let me send it). Its just two enemies, so you can create the file with just pasting this in a new file and saving extension as .esl:

01 6B 0C 00 00 00 00 00 F4 01 00 01 4C 16 EA 00 07 01 00 00 52 21 00 00 09 01 00 00 00 00 00 00 01 B6 0C 00 00 00 00 00 F4 01 00 01 58 16 EA 00 5B 00 00 00 FF 1F 00 00 09 01 00 00 00 00 00 00 (you could always just paste this into an existing file as well).

1- Open Tweaks and make sure ShowGameOutput is enabled 2 - Sideload the ESL file, or just edit your ESL to have the same enemy combination seen in my ESL. 3 - Start new game then debug jump to r109 4 - Go to where the two enemies are spawned and created save. 5 - Exit game, restart, and load save.

What's interesting here is that:

So you can see there are a variety of ways to make this work, BUT determining the actual culprit seems weird considering there are different was to make it work.

Thank you.

Mister-Curious commented 1 year ago

ok finally got things a little more stable here, but I cant really test this because the ShowGameOutput setting wont save, and I need it on before I load the room. Perhaps this has something to do with ini files? I see ShowGameOutput in thexinput1_3.ini file, as well as SaveGameOutput but no trace of those settings in Trainer.ini

Anyway, I was investigating some of the logs after turning it on in-game, and finally got a crash log that I am sure will show something about the ShowGameOutput . (see attached)

Again, as per the original question, the room I am testing in (r109),. I am getting endless messages in the console about:

cLog::err: Flag: 4, errId: 0, Message: ITEM SET[-34] failed: ETC[60] not found

There are so many of these messages that I can't read the rest of the log as the stream is so fast. Ive nulled the ITM, ITA, ETM, ETS and ESL just to see , but its persistent

bio4.exe.20230320230857.zip

Mister-Curious commented 1 year ago

OK found the issue with the repeated error messages (it was an AEV parameter referencing a non-existent ETS ID). After updating to that dinput8.dll you posted SaveGameOutput seems to stay on now. Also from my tests, it seems 1.9 is very happy with whatever else I have going on, so things seem stable for the time being, and I think SaveGameOutput is ok.

Thanks!