Permalink
Browse files

add a dedicated server launch script

  • Loading branch information...
1 parent ba7310d commit 8a13bc68eff8129b17e47d4d5fde88d9b4cf3c74 @Mailaender Mailaender committed Mar 27, 2013
Showing with 16 additions and 1 deletion.
  1. +15 −0 launch-dedicated.sh
  2. +1 −1 launch-game.sh
View
@@ -0,0 +1,15 @@
+#!/bin/bash
+Name="Dedicated-Server"
+Mod="ra"
+Dedicated="True"
+DedicatedLoop="True"
+ListenPort=1234
+ExternalPort=1234
+AdvertiseOnline="False"
+Map="ba403f6bcb4cae934335b78be42f714992b3a71a"
+
+while true; do
+ mono --debug OpenRA.Game.exe Game.Mods=$Mod Server.Dedicated=$Dedicated Server.DedicatedLoop=$DedicatedLoop \
+ Server.Name=$Name Server.ListenPort=$ListenPort Server.ExternalPort=$ExternalPort \
+ Server.AdvertiseOnline=$AdvertiseOnline Server.Map=$Map
+done
View
@@ -1,2 +1,2 @@
#!/bin/sh
-exec mono OpenRA.Game.exe "$@"
+exec mono OpenRA.Game.exe Server.Dedicated=False Server.DedicatedLoop=False "$@"

0 comments on commit 8a13bc6

Please sign in to comment.