Login System Error

So, I was using my knowledge to my best. And created a client sided login system, and it seems to work in some parts but not functioning as a whole. The part that works is checks the user name and loads game from slot named after the username. And then loads the password and compares if the password is correct. If it’s correct then it sends info to mygameinstance to load game from slot and update all info to mygameinstance such as players class, level etc. But it seems to be not working, indications are player class isn’t being saved and username not being showed in the menu. I went over to debug for 4 days. No luck on fixes.

This is where it checks if the save slot exists and check the password ----> custom event update user info cast to mygameinstance.

Mygameinstance custom functions to save user stats/ info.

The get userinfo function. The SavetheGame is parent class is SaveGame. Mygameinstace parent class is Gameinstance.

I have had similar saving issues before, it always came down to the game overwriting the save game objects with their default values, this happens when I restart the level to load the values in after the player chooses their save from the main menu. I placed a check in my save blue print to not overwrite the save game object values if they are equal to 0, an array is empty, or if the save game loaded boolean is set to true. Hope this makes sense

Do you mind showing me how you did it in your blueprint?

Hello. The SaveGame To Slot should be the last node of the function. That’s why your player class its not saved.

I’ve tested several times and it still wouldn’t work. I think the main problem is getting the player data by loading from existing save slot. For whatever reason my gameinstance cannot load the data from slot.