Windows dedicated server

Discussion about the game and its default mods.
Post Reply
User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Re: Windows dedicated server

Post by Sleipnir »

  1. Download https://raw.githubusercontent.com/OpenR ... icated.cmd and save it somewhere.
  2. Edit the settings listed at the start of the file to suit your preferences.
  3. Either move the script to the OpenRA install directory, or change the OpenRA.Server.exe reference near the bottom to "C:\Program Files (x86)\OpenRA\OpenRA.Server.exe" (with the quotes)
  4. Double click the script to run the server.

User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Re: Windows dedicated server

Post by Sleipnir »

What you have looks almost correct, but you shouldn't have changed the variable references (the labels inside the %%) on the OpenRA.Server line. This is what is making the script crash, because there are no variables named %2048% or %Caleb's%.

To launch Dune 2000 you should set Mod=d2k. So the following should work for you:

Code: Select all

@echo on

set Name="Caleb's"
set Mod=d2k
set ListenPort=2048
set AdvertiseOnline=True
set Password=""

set RequireAuthentication=False
set ProfileIDBlacklist=""
set ProfileIDWhitelist=""

set EnableSingleplayer=True
set EnableSyncReports=False

:loop

OpenRA.Server.exe Game.Mod=%Mod% Server.Name=%Name% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.RequireAuthentication=%RequireAuthentication% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%EnableSyncReports%

goto loop

Post Reply