I set up game saves, but loading a save warns that the player object cannot be found

I save the game within a behavior, and then when I load the save file, I get an error message: ERROR: [CoursePlatform2D] The game object does not exist. uid://io7fn0igada7. It indicates that moving platforms in the game cannot find the player. Although I can still play the game, many strange issues occur frequently, such as left-right inversion, occasional crashes, and the menu opening without pausing the game. I am certain that there is a problem with loading the save file, causing confusion with the player object.

When I test-run the game normally, everything works fine; the issue only arises when loading the game. Could you please tell me what might be going on? I really don’t know how to fix it.

That load-only pattern points to the player reference not being restored in the same order it was saved. It would help to check whether the player object is recreated before the moving platform tries to find it on load.

Thanks for the reply. The main issue is that it seems like there’s a logic error with the player nodes after loading a save file. If I move left, immediately save, then move right and load the save, the character ends up facing the opposite direction. Another important problem is that after loading a save, if I open the menu, the game doesn’t pause, which is very frustrating.

I also noticed that when my character goes through a portal to another scene, opening the menu doesn’t pause the game either. Could there be an issue with how the character disappears and reappears during scene transitions?

It has been confirmed as a bug, as I’ve seen other producers encountering the same menu issues. Not only does pausing the game fail when loading save files, but the menu also fails to pause the game after scene teleportation. There are also issues with left/right inversion. I hope the official team addresses these problems urgently.

Thanks for the report! I was able to replicate the menu not pausing after loading a save, and the CoursePlatform2D error after loading. The menu not pausing after a portal was already reported, so I added your load case to it, and I reported the platform error separately.

In my test the platform kept moving after the load even with the error, so I’m wondering if it isn’t what’s causing your other problems.

I couldn’t replicate the left and right being reversed though. I saved while walking left and loaded while holding right, and my player was facing right as soon as the load finished. Is it the player facing the wrong way, or does pressing right move the player left? A short video would help a lot.

I’ve tracked down the issue: if I check “Maintain state at scene end” and then follow the steps mentioned above, the left-right movement of the image becomes inverted.

1 Like

The bug I mentioned above still doesn’t seem to be fixed in version 2.1,

This report wouldn’t have made it into 2.1.

Thanks for narrowing down the left and right issue. I’ll try it again with that option turned on and report it if I can replicate it.

I was able to replicate the left and right issue with Keep State After Scene Ends turned on, and I’ve reported it. If your player doesn’t need that setting, turning it off should avoid the problem for now.

Hello. That issue isn’t important. My main concern is that after saving the game, loading the save file, and opening the menu, the game doesn’t pause. The feature settings are correct, but as soon as the game is reloaded, even if you switch scenes, the pause functionality stops working when the character opens the menu, which severely impacts the experience.

I know the menu is the one that matters most to you, and it’s definitely reported too. It was already reported for going through a portal, and I added your load case to that same report when I first replicated it. The left and right issue was just one more bug I could confirm from your thread, so I reported it as well. Might as well get them all reported!

1 Like

Hello,

We have fixed the following two issues related to the report provided here in version 2.1.1, which was released today:

  • After loading game data, players with “Maintain state at end of scene” enabled face the opposite direction.
  • The game does not pause when the menu is opened after a scene transition.

Please note that the CoursePlatform2D errors displayed during loading were not addressed in the version 2.1.1 updates.
We kindly ask you to check this. We apologize for any inconvenience this may have caused.
Thank you for your understanding.