Page 1 of 1
					
				Re: Windows dedicated server
				Posted: Sun Mar 24, 2019 3:53 pm
				by Sleipnir
				
- Download https://raw.githubusercontent.com/OpenR ... icated.cmd and save it somewhere.
 
- Edit the settings listed at the start of the file to suit your preferences.
 
- 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)
 
- Double click the script to run the server.
 
 
			 
			
					
				Re: Windows dedicated server
				Posted: Sun Mar 24, 2019 4:39 pm
				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