If you’re running an IOS dedicated server somewhere unmanaged, i.e. you have direct access to the server and have to start/stop it manually, then the following script may be useful. When you launch the batch script, it will firstly update your version of IOS, and then secondly start the server itself once complete. If for any reason the IOS dedicated server crashes, the script will automatically restart it. It will also check for updates when this happens.
You MUST turn off an element of Windows Error Reporting for this to work - otherwise the script can’t detect the crash, because Windows is requesting user input for Error Reporting
- Open gpedit.msc - you can do this via simply processing the Windows key, and then typing “gpedit.msc” and it will show up.
- On the left hand menu, click Computer Configuration > Administrative Templates > Windows Components > Windows Error Reporting
- Once you’ve clicked Windows Error Reporting, you’ll see a list of configuration options. Double click “Prevent display of the user interface for critical errors”, and select “Enabled”, then click “Apply”.
You can place this batch script anywhere you like. Just make sure you input all the correct paths in the code for it to work. Copy the code into a text file and just save as a
@echo off cls echo Protecting srcds from crashes... echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter. title srcds [YOUR SERVER NAME HERE] :srcds echo (%time%) steam app updating. c:\[your steamcmd directory]\steamcmd +login anonymous +force_install_dir iosoccer +app_update 673990 +quit echo (%time%) srcds starting start /wait C:\[path or folder to iosoccer dedicated server]\iosoccer\srcds.exe -console -game iosoccer -condebug -port [your port number here] +maxplayers 32 +fps_max 500 -tickrate 100 +map 8v8_vienna_b6 echo (%time%) WARNING: srcds closed or crashed, restarting. goto srcds