Windows dedicated server
Windows dedicated server
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.
Re: Windows dedicated server
- 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
I did that and it ended up crashing constantly until I ended the script
im not sure why it just crashes, nor what to change to get it to use dune 2000
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
Re: Windows dedicated server
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:
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
Re: Windows dedicated server
Thank you, if you ever see Caleb's server you will know it worked (port is indeed open) i appreciate your help <3