Advertisement
Guest User

7daystodie dedicated server

a guest
Nov 27th, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.89 KB | None | 0 0
  1. @echo off
  2.  
  3. rem
  4. rem Starts a dedicated server
  5. rem
  6. rem -quit, -batchmode, -nographics: Unity commands
  7. rem -configfile           : Allows server settings to be set up in an xml config file. Use no path if in same dir or full path.
  8. rem -dedicated                    : Has to be the last option to start the dedicated server.
  9.  
  10. echo.
  11. echo ***
  12. echo Initialising Dedicated Server
  13. echo ***
  14.  
  15. echo|set /p="251570" > steam_appid.txt
  16.  
  17. start 7daystodie -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated
  18.  
  19. timeout 10
  20.  
  21. echo.
  22. echo ***
  23. echo Starting Dedicated Server
  24. echo ***
  25. timeout 15
  26.  
  27. echo.
  28. echo Connecting to the service interface. use 'shutdown' to stop the server
  29. echo.
  30. if exist "Tools/bin/putty.exe" (
  31.      "Tools/bin/putty.exe" -raw localhost 8081
  32. ) else (
  33.      telnet localhost 8081
  34. )
  35.  
  36.  
  37. echo.
  38. echo.
  39. echo ***
  40. echo Server successfully shutdown
  41. echo ***
  42. echo.
  43.  
  44. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement