Windows dedicated server

Discussion about the game and its default mods.
Post Reply
Caleb642
Posts: 5
Joined: Sun Mar 24, 2019 1:43 am

Windows dedicated server

Post by Caleb642 » Sun Mar 24, 2019 1:50 am

So, I'm wanting to run a dedicated server on my windows 7 storage machine (runs the game fine) for my fam and others to play, my dad runs public servers for other games so port forwarding isn't a question for me. I am not sure exactly on the setup of the server, changes in the script I should make, where the script should be to work properly, some things id like is the dune 2000 game, singleplayer mode on so there are bots, public. I got the script file done and the script copied and pasted.

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

Re: Windows dedicated server

Post by Sleipnir » Sun Mar 24, 2019 3:53 pm

  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.

Caleb642
Posts: 5
Joined: Sun Mar 24, 2019 1:43 am

Re: Windows dedicated server

Post by Caleb642 » Sun Mar 24, 2019 4:19 pm

I did that and it ended up crashing constantly until I ended the script

Code: Select all

 :: example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details

@echo on

set Name="Caleb's"
set Mod=ra
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=%Caleb's% Server.ListenPort=%2048% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.RequireAuthentication=%RequireAuthentication% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%DisableSyncReports%

goto loop 
im not sure why it just crashes, nor what to change to get it to use dune 2000

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

Re: Windows dedicated server

Post by Sleipnir » Sun Mar 24, 2019 4:39 pm

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

Caleb642
Posts: 5
Joined: Sun Mar 24, 2019 1:43 am

Re: Windows dedicated server

Post by Caleb642 » Tue Mar 26, 2019 8:36 pm

Thank you, if you ever see Caleb's server you will know it worked (port is indeed open) i appreciate your help <3

Post Reply