First off let me explain what I got so far:
Menu level: Has its own "menu" gamemode
A button that hosts a game - creating a session loading up a player lobby widget showing player names and team names next to them with the ability to click on them to change team color (wich currently happens only in the widget - so no impact on the game)
Lobby has a play button that calls a server travel command loading up a level
Theres also a serverbrowser looking for sessions to let players join the session
game level:
has its own state , hud, pawn, playercontroller and gamemmode.
a bunch of assets and game logic.
Id like to know a few things:
what would be a good way to carry over information about teamsides from the playerlobby widget to the actual game map (since all default blueprint classes that the level has are different from that one in the lobby [except state wich i now made this way])
The other thing is about playernames. I discovered gamestate has a nice array of playernames. I wonder tho how I could access them in a way so I can set the player name to a different one. Or is it better I set a variable for name on the playercontroller - if so how do i correctly transfer this “name” value over to a new session (first from menue to joining a game lobby [again - the new session starts in lobby] where i could “set” the name in the menu already, and then from lobby to game when theres other default playercontrollers) does the game remember
Another very different thing I noticed is the differences that happen when I want to test things. It seems when I go to test the level through “new editor window” all players are always present - even if I go to host a game and create its own session the other client IS already joined - that seems to be different from what I experienced after packaging. how does the editor testing behave in regards to sessions?
I dont even think I asked everything I wanted to know in the last few days.
I also kinda thought about that for simulating an online game the (or a) session should already start when I open the game right? - and - before that - look for an existing session so all players are connected up already in the menu (with their names and all that acesssible for everyone - so I could handle player invites, chat and that kinda stuff right?) To take this further - lets say the lobby doesnt start with a new sesssion - a new session is only started by clicking “START” in the lobby, taking all people in the lobby with them - so now the server handles all the menu things that happen before a player gets into the game. Can the session for players that have not been in this lobby (The main - menu session so to say) still persist=? - can there be multiple sessions on one server so to say? (I guess yes if I dont destroy it right?)