Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem
- rem Starts a dedicated server
- rem
- rem -quit, -batchmode, -nographics: Unity commands
- rem -configfile : Allows server settings to be set up in an xml config file. Use no path if in same dir or full path.
- rem -dedicated : Has to be the last option to start the dedicated server.
- echo.
- echo ***
- echo Initialising Dedicated Server
- echo ***
- echo|set /p="251570" > steam_appid.txt
- start 7daystodie -quit -batchmode -nographics -configfile=serverconfig.xml -dedicated
- timeout 10
- echo.
- echo ***
- echo Starting Dedicated Server
- echo ***
- timeout 15
- echo.
- echo Connecting to the service interface. use 'shutdown' to stop the server
- echo.
- if exist "Tools/bin/putty.exe" (
- "Tools/bin/putty.exe" -raw localhost 8081
- ) else (
- telnet localhost 8081
- )
- echo.
- echo.
- echo ***
- echo Server successfully shutdown
- echo ***
- echo.
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement