Announcement

Collapse
No announcement yet.

How to run the game without the server.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to run the game without the server.

    Hi, i would like to ask if it is possible to only run the game as client when executing the game, the game is used to connect to a dedicated server, so it should not start as a server. Any help would be appreciated, thanks!

    #2
    Wait, if you start your game as an .exe file, it starts a dedicated server?
    Hobby game developer from Germany Follow me on Twitter!
    Stuff I made:
    Steam Workshop Tutorial/Wiki
    Making a full working translation for your game and change it at runtime

    Comment


      #3
      Originally posted by FlameX View Post
      Hi, i would like to ask if it is possible to only run the game as client when executing the game, the game is used to connect to a dedicated server, so it should not start as a server. Any help would be appreciated, thanks!
      When you start your game.exe it does start as a standalone client. The only time it will start as a listen server is if you give it the ?listen commandline arg. and the only time it will start as a dedicated server is if you build the dedicated server .exe

      Comment


        #4
        You could force your game to automatically connect to a particular server after it loads up by adding a Execute Console Command from an On Begin Play event (open <ip address of server>).

        Alternatively, run your game via command line like:
        C:\Program Files\Unreal Engine\4.6\Engine\Binaries\Win64\UE4Editor.exe C:\MyGame\MyGame.uproject 127.0.0.1 -game -log
        Rule#21: Be polite, be professional, but have a plan to kill everyone you meet.

        Comment

        Working...
        X