nipkownix / re4_tweaks

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

custom esl spawn malfunctioning on HD Project #194

Open kTeo-0 opened 2 years ago

kTeo-0 commented 2 years ago

Validation

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

A friend of mine is currently porting a near finished mod from old HD Project (2018 build) to the new release. Right at r100, we quickly noticed the spawns were not the same as originally intended. I'll give an example with something i was able to do in order to fix this for r100.

i simulated our problem on a test emleon00.esl file to make this easier. the .esl reads the following enemy IDs in this order: 12 00 15 00 20 16 16 00

On the 2018 build of HD Project, everything would spawn except 16 00, which would only appear after wiping one of the other IDs and hitting a checkpoint. On the latest release however, only 12 00 and 15 00 are spawning at first. I have no idea why, but after countless tests i nailed it down to a solution for this. Turns out if i were to replace r100_04.DAT.lfs with the original file, the enemies would spawn by the intentional order.

However, the problem still persists in a lot of other maps (r106 for example) and i'm not able to fix those no matter what i do.

With or without RE4 Tweaks, the same problem always happens the same, so it's something in the structure of the new release of HD Project.

I indexed the test emleon00.esl along with the original r100_04.DAT.lfs and Companion (the mod uses Companion by default to make it possible certain combinations of enemies. Somehow this function is disabled or replaced with another code on the lastest release)

esl problem on HD Project.zip

kTeo-0 commented 2 years ago

UPDATE: Turns out the problem with the maps were fault of the latest version of Companion. However, even when using the old version we would still have problems with spawning enemies in r100 unless we swapped r100_04.DAT.lfs to the original one. I am not sure why or how that happens, but it's definitely something to do with the latest release of HD Project