Time for action – The server batch file
We may still want to run our game in a single player environment, so instead of editing our existing batch file we'll duplicate it.
Make a copy of the batch file we use to run the game. Name it
Awesome Test Server.bat
.Right-click on the new batch file and click on Edit.
We only need to add one word to the batch file, here:
C:\UDK\UDK-AwesomeGame\Binaries\Win32\UDK.exe server AwesomeTestMap?TimeLimit=0?Game=AwesomeGame.AwesomeGame -log
The
server
keyword tells the game to run as a server.Save and close the file.
What just happened?
That was easy, but what does this mysterious "server" thing look like? Double-click on the file and we'll find out. After starting up, the DOS window will just kind of... sit there. Yep, this is a running server:
Where's the game window? Well, if we think about it, a server doesn't really need one. It's running code and keeping track of the actors, functions, and variables in our game, but all that's done in code. There isn't...