When level loads, how can I tell when the world has finished initializing?

I am working on my save game, which uses structs and tarrays of those structs (multiple levels). In order to get the variables (most are in my player state, a couple are in my game state), I have to get a world reference, however I keep getting ‘LogTemp: Warning: Failed to obtain world’.

At this point I want to put in a log when it finishes initializing but I can’t seem to find that answer anywhere. I tried to just use my controller, but its telling me it can’t find that either.

Yes I do use a custom controller. Yes said controller is part of the level as determined by the custom Game Mode. I have checked the world settings to make sure I am not crazy. I have made sure in the level my custom character bp is in there as well.

So in the end, my save game will not work because A) it couldn’t find the world (null) and B) when I switched to the controller it couldn’t find that either.

As a last note, I let the game sit for 12 minutes. All other functions were running without issue. Getting super frustrated with this.

If anyone else has this question, you can just put a print string to your “BeginPlay” on the level. I am still getting “Failed to obtain the world”, not sure what that is about.

level names are case sensitive

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