Hey all, I am new to UE and multiplayer and have been stuck for weeks on just getting my menu / lobby / start game flow to work with the correct number of players.
My goal is to have a 2-4 player game supporting both local split screen multiplayer and normal multiplayer clients. I do not want to have keyboard support at all. In my project settings I have “create unique platform user for each device”.
The keyboard player is always created, so I end up with an extra player and it thinks I want to do local split screen with keyboard and however many controllers I have plugged in. I have tried numerous methods to remove the player, mostly involving calling RemoveLocalPlayer(LocalPlayer) from my custom GameInstance C++ class. That does work but seems to cause a lot of other problems.
I was just wondering if there was a best practice for handling this as it does not seem like it would be all that uncommon to do. But I am new so it’s possible I am just not understanding something.
Thanks so much for any advice!
TLDR; I can track which controllers “join”, but what is the best way to remove or not spawn the unjoined controllers like the default keyboard player so I don’t end up with extra real players when the game starts.