SHARE
TWEET

start_all_servers.ps1

a guest Jan 26th, 2019 431 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Variable
  2. $NBplayermax="30"
  3. $path="A:\AtlasServer\ShooterGame\Binaries\Win64\ShooterGameServer.exe"
  4. $IP="XXX.XXX.XXX.XXX"
  5.  
  6. ($csv = Import-Csv "A:\Launcher\Servers\Servers.csv" -Delimiter ";") | foreach {
  7.  
  8. $X=$_.x
  9. $Y=$_.y
  10. $name=$_.name
  11. $RCONPort=$_.RCONPort
  12. $QueryPort=$_.QueryPort
  13. $Port=$_.Port
  14.  
  15. # -ForceRespawnDinos Launch with this command to destroy all wild creatures on a startup. (this will only destroy wild creatures that are NOT currently being tamed)
  16. # -AlwaysActiveFountainsOfYouth Locks the Fountain of Youth to one Golden Age Ruins
  17.  
  18. start $path "Ocean?ServerX=$($X)?ServerY=$($Y)?AltSaveDirectoryName=$($name)?MaxPlayers=$($NBplayermax)?ReservedPlayerSlots=0?RCONEnabled=True?RCONPort=$($RCONPort)?QueryPort=$($QueryPort)?Port=$($Port)?SeamlessIP=$($IP)?ForceAllStructureLocking=true -log -server -NoBattlEye -AlwaysActiveFountainsOfYouth"
  19.  
  20. Sleep -s 3
  21.  
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top