Issue saving between scenes with portals

Using Origin/Master dated 29 January 2020
Walk from sandbox to sandbox2
The scene will try to load bouncing between sandbox and sandbox2 several times before settling down
Walk from sandbox2 to sandbox
It all gets crazy from there… it appears to try to load sandbox several times, like it’s caught in a loop. Sometimes, it settles down and leaves the game stranded in the middle of nowhere unplayable… other times, it continues forever.



These changes fixed it…
Clearly I should have grabbed that Git course while it was on sale… it doesn’t seem to want to let me revert to the commit I made when I patched this.

Hope that helps,
-Brian

2 Likes

Oh no! What a silly bug. Easiest thing is to revert the change that caused the issue in the first place:

I will be sure to patch this.

2 Likes

Oh wow, this works perfectly. Without changing the SavingSystem.Load() to an IEnumerator and adding those two lines, animation states with no exit get stuck, such as enemy death. When I’ve been fixing this in the past, I ended up making multiple methods to handle the different load types, but this consolidates it nicely into the original methods.

Thanks for the solution!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms