Fix for ladder cutscene softlock vanilla bug#2551
Fix for ladder cutscene softlock vanilla bug#2551djevangelia wants to merge 4 commits intoOoTRandomizer:Devfrom
Conversation
|
I'm curious if this breaks ladder RI? I guess I can't think of a reason why it would if all this does is break you out of a softlock if a softlock happens. |
|
Thanks for tackling this one, i always wanted to look into it properly but player decomp was not commented enough for me to figure this out. |
It's now (post new commit) actually the opposite, you can now use Farore's Wind and other CS items while dismounting without softlocking. I didn't know about ladder restricted items, but looking it up I saw that Farore's Wind doesn't work, tried other items, realised it's because they use As for use cases for the softlock, there really cannot be any. It's 100% locked situation. No player inputs are processed because it's a cutscene state. Animation doesn't progress so nothing will happen without player activity. |
ASM fix for the vanilla bug where the game softlocks if you enter a cutscene while dismounting a ladder. Fixes #2004.
I have written more extensively about the bug here with reference to the decomp C code, but the core issue is that the cutscene state cannot be cleared when player is dismounting a ladder because the animation stops updating. The fix adds a check that if player is in a cutscene, do not return before
LinkAnimation_Updateis run.Testing
Works in Ares 1.47, Project64 3.0.1 and Mupen64plus 2.8. https://www.youtube.com/watch?v=gyMnAFtWs7o