Why I can't return to previous level?

Hello. I’m trying to change level with that blueprint:


Level variable is instance editable and is not empty.
And it works well, but when I’m trying to return to level where I already been, I’m getting that error:
“TravelFailure: ClientTravelFailure, Reason for Failure: ‘Failed to load package ‘/Game/TopDown/Maps/UEDPIE_0_ReceptionMap’’. Shutting down PIE.”
It’s not happening when I’m trying to travel in the different points in one level, only when I’m transfering level 1 → level 2 → level 1. Why is that happening? I can only think about reference errors (like I should keep reference to previous level, but I don’t know how it works).

You should use an array and store levels in that, Have you learned programming not just syntax? Like [0] is level 1 [1] is level 2 and use those to load the levels.

Yes, I learned it, but I don’t understand how to do this in ue and why I should do it? I created actor and set the target level:
image
Do you mean each level is unique even with object reference and when I’m going level 1 → level 2 → level 1, actually, I am going level 1 → level 2 → level 1 (copy)?

I would suggest you to hand this issue to an another member. I was only able to give that much help

Why not open level by name?..

It takes much more time: I have 13 levels on 1 floor, every level has ~ 3 doors. 5 floors ~ 195 doors. So I wanted to do it with object reference where I can just select target level.

Can’t you procedurally name them? like level1 level2 level3

How did you set the level reference you have?

Hope I understand you correctly. I just place actor and choose reference to the target level

I don’t know, probably yes, but why? Level should have human - friendly name.

No, then you could use a simple script like levNumber += 1, which would make it easier to access it. I did this when I couldn’t use Unreal and used Godot Instead.

I can’t do it because my level can have like 5 doors and 4 of them leading to another levels. I’ll just mess with it.

Then, I would have two numbers levNumberMajor, and levNumMinor, so level1_0, level1_1, level2_0, level3_0, level3_1, level_3_2… So you would just cycle through to and index them like level[1][0] = thatLevel,

I tried it and it works. But if it’s possible I want to deal with object reference…