Please, can anyone help me?
I am in an archvizl work on Unreal 4.26 and I am discovering that the Unreal Engine is self-destructing.
This bug was happening and I couldn’t solve it, so I recreated a new project and copied it there. But after a while, the error returned and it is no longer resolved.
Any game mode when moving the character is stuck at the top of the map.
And then the simplistic BP_CollaborativeViewer_GameMode stops working.
The worst problem is that I am not editing anything in blueprint, nothing in gamemode, absolutely nothing. Just camera, texture, lighmap. So, I don’t know where it happened.
The error indicates that the GameMode is trying to read a GameInstance reference. Check the project settings/Maps and modes that the appropriate GameInstance has been set.
Just in case it’s a separate issue, if you character/pawn is getting stuck in the air, check to make sure there isn’t a collision box covering the environment.
Thanks Alekann01 Collision box
I’ve tried to play with Current Camera location, far from everything, and even then the pawn stucks.
I’ve tried to delete the folders; Config, intermediate and Saved.
Nothing solves it either.
Something in BP_BasePawn is trying to access a member of the GameInstance (probably that came with the CollabViewer), but since you’re now using a different GameInstance the reference is no longer valid.
My guess is that somewhere like BeginPlay in the BasePawn they are getting the GameInstance, casting to their GameInstance, and then storing a reference to it. However, that cast will now fail as you’re using a different GameInstance. So anywhere in the code that tries to use the cached reference will error “Accessed none” as it was never officially set.
I would use the GameInstance they provided and open BP_BasePawn, search for references to “GameInstance” and find out exactly where it’s failing.
Thanks for listening. I was separating several elements of the map at different levels until I discovered that this one was responsible for making me lock in the sky. They had some collision activated, I took it from another map of the unreal itself and I don’t know in which comment his collision was activated. Probably my mistake.
Well, I created a new map with the template BP_CollaborativeViewer_GameMode and I will see if it does not bug again. (It will be the third time I do this to recover the game instance)