I have built a dedicated server for my Multiplayer game and is able to connect the client to the server map in the Dedicated Server. However, The game mode and other code functionalities in the level are not working. The spawned players can just roam around the map.
Does it function the same way when you play the game as a listened server, if it does, then you probably haven’t setup your functions and other code properly.
Hi, The problem exists only when I am connecting to server map. When I remove the server map and play the level in my client itself, its working perfectly. So right now, I am kind of confused.
Oh I know what that is all about! Open the World Settings for the server map that doesn’t work. Override the GameMode. This should solve your issue:
You can also change individual GameMode actors / classes:
I have the gamemode override implemented for server map. But still the problem exists. In the server log, I am getting the following warning
; ‘LogNet: ReplicationDriverClass is null! Not using ReplicationDriver.
So I tried printing logs for testing from the level blueprint and now its printing and doing stuff that I mention in the level blueprint. So when I open level at Dedicated Server, I am receiving log from client 0 saying the sample text.