The child of GameStateBase made by Epic Games included on the engine don’t work:
If you make a new game mode and assing a pawn + gamestate blueprint based in GameState or direct GameState and set that gamemode to the map nothing work at play, just freeze in the air, the begin play strings don’t work and nothing work…
If you are attempting to pair a base class with a non-base class (such as, say, using a Game Mode and a Game State Base), this will not work. These are only meant to be used in conjunction with each other. So, if you are using one Base class (GameModeBase) the Game State class must match (GameStateBase). If it does not, this can cause quite a few issues, including certain functions and events not being called in your blueprints.
If this is not the issue that you’re experiencing, please explain clearly what the issue is, and provide a detailed list of steps that I can use to reproduce the issue on my end.
Mmm not sure what you talk, I just said GameState and GameStateBase are the same class one child of other, are included in the engine:
GameStateBase (Parent)
GameState (Child)
If you make a GameState based in GameState child, and assing it in the gamemode don’t work. In Blueprints.
→ New Blueprint based in GameState → Add a Print To Screen text in Begin Play → Create a empty GameMode → Assign the GameState based BP to the GameMode → Create a character Pawn → Assign the created character pawn to the GameMode based BP class → Press Play → Begin Play don’t work
What is the default Gamemode created with the gamemode button ? I imagien then is the GameModeBase then ? Ok then probably that is why don’t work… Someone should note that the next time.
Sorry to necro this thread, but I’ve seen so many people suffer from this issue.
Please tell the engine developers to follow up on this - clarify / prevent this issue - because it’s a killer for newbies. Extremely depressing to do a whole project and then realize we can’t change back, because of dependencies that won’t change anymore.
I just had this issue and found that my game mode was based on game mode base while my custom game state was based on game state. I changed the the parent to game mode instead by clicking ‘class defaults’ → changing the ‘parent’ drop down menu from game mode base to game mode. Fixed it for me.