Bug when loading next scene

I have this weird bug where I can’t seem to load the next scene and the editor seems to be trying to load the scene, and switches between not loading and loading. I have a video demonstration of the same in the link below. I tried multiple times to delete the Save.sav file and reloading the scenes. But I get the same results. What could be the potential cause here?

Have a look at this topic and see if it helps:
Saving Bug

Thanks! I can see that an image has been attached on the solution post, but I cant seem to view any of the images on that thread. I get an ‘Access to resource forbidden 403’ error when I try opening the image in another window. Is it possible to post that image here?

Unfortunately, I don’t seem to be able to access them either. They may have been removed from the server, though I have no idea why.

Ah I see. So what was the solution that was posted in that thread?

I remember I had some sort of issue that resembles this one. From what I can recall, I had an issue with the portal placements, meaning, I had the the portal trigger zone too close to the portal spawn zone. That means that when you zone in, you will be placed right on the trigger volume, and that will cause you to “go back” to the other scene, then if the trigger in the other scene is placed too close or right on the destination, then it will trigger again, meaning you will be in a Loop.
Try to see where your destination prefab is, and move it further away from where the “invisible” trigger zone is.

I tried it and I still have the same problem. So I’m assuming it’s not the portal spawn point that’s an issue. I dont see any error messages on the console either, so this one is a bit hard to decipher. I’m not sure what I need to fix, since the solution posted in that other thread has been removed for some reason

Zip up your project and upload it to https://gdev.tv/projectupload. Be sure to remove the Library file to save space. I’ll take a look at it and see if I can figure out what’s going on with it.

Thanks! I’ve uploaded it in the link!

I opened your project and checked both of your scenes. As it turns out, your second scene has a persistent objects prefab in the scene. This causes an infinite loop to run as the scene reloads, and the SavingWrapper in the persistent objects prefab automagically reloads the scene with SaveLastScene. The POP should only be loaded at runtime by the PersistentObjectPrefabSpawner.
Deleting this from the scene should do the trick.

Yup, that was it! Thanks a lot, now I can get back to where I left off!

I’m happy to help!

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

Privacy & Terms