LostArtefacts / TRX

Open source re-implementation of Tomb Raider I and Tomb Raider II, along with additional enhancements and bugfixes
https://lostartefacts.dev/
GNU General Public License v3.0
588 stars 38 forks source link

[Custom Level] Game freezes with altered Switch animation #1833

Open Raildex opened 3 hours ago

Raildex commented 3 hours ago

I am in the process of creating a custom level. For that I imported the TR2 button to a TR1 WAD and swapped out the lever up/down anims with the button push.

When You "press" the button once, it works, but once you press it again the game immediately freezes and plays the sound effect of the button on the same frame (even though it is supposed to be played in a different frame) Engine.tar.zip

When you start the level, the button is immediately to the right side of lara

The logs do not tell anything.

lahm86 commented 3 hours ago

If you change the state ID of animation 64 to SWITCH_UP (41) it should work. The problem is you have 40 in both animations, so Lara_AnimateUntil is getting stuck.