Pretty simple! When all the players walk into the trigger box, the next level is loaded.
It works fine if I’m going from Level_01 to Level_02 but if I want to go from Level_02 to Level_01, or from Level_03 to Level_02 etc, I get this error:
Warning: TravelFailure: ClientTravelFailure, Reason for Failure: 'Failed to load package '/Game/Maps/Level_02/UEDPIE_0_Level_02''. Shutting down PIE.
If I run the game in the standalone launcher it’s fine but it’s pretty slow to test things that way so it would be nice to fix this.
The level variable is an instance editable soft object reference so that in the editor, i’m presented with a dropdown list of all the levels in the project
Hmm alright… just for testing purposes, have you tried to manually enter in the information to make sure it isn’t something to do with the variable? I am very sceptical, and suggest to always rule out bugs and other things before diving deeper.
Are you storing a reference to the “previous level” at runtime ?
If so, this could be causing PIE-specific issues because as you can see in the error message, PIE renames the loaded level into UEDPIE_#_LevelName. So if you store that in a variable, then you move to next level, then you try to come back to previous level, it doesn’t exist anymore.
Simplest way I can think of right now is to branch based on “Is Play In Editor” node and figure out how to cut the UEDPIE part from level name.
Hmm I tried looking through all my blueprints, there’s nothing that stores variables from the previous level specifically but I do reference the game instance to record things like health between levels etc.
I did try what @EliasWick suggested and changed the node from Open Level (by Object Reference) to Open Level (by Name) and it’s working again but I still don’t like that I don’t know why the former method wasn’t working
I’m not 100% sure I understand your proposed solution - are you suggesting I append the world soft object variable before it gets plugged into the Open Level (by Object Reference) node?
The Open Level node requires that the level name is supplied with a Name variable for it’s input. I am not certain why but that is what the input is requesting.