ihatetn931
Well-Known Member
I made a simple batch, it's prolly not the best way to do it but it works, Just need to run a task whenever you wanna restart the server. No battle eye required
This works with pwnozors server files, only tested on windows 7 x64 using windows task schedueler.
This file can be named anything and be placed anywhere.
You need to change a couple of lines to get this to work.
You first need to open your MySQL folder that came with pwnzors server files and add this to your MySQL.bat
should look something like this
Once you have done that, save and close.
Next You need to change this line
To where your server files are.
Next you change this line
To your server batch file you use to load up the server which is mostly
I know it's not the best way to do it, but I just run a private lan server for me and my friends so instead of having to manually restart the server every hour or having to run battleeye I did this.
This script assumes you use the default way to start up pwnzors server.
If you need any help feel free to ask.
This works with pwnozors server files, only tested on windows 7 x64 using windows task schedueler.
This file can be named anything and be placed anywhere.
Code:
@echo off
echo killing dayz server
taskkill /F /IM arma2oaserver.exe /T
echo.
echo.
echo.
PING 1.1.1.1 -n 1 -w 300 >NUL
echo killing mysql
taskkill /F /IM mysqld.exe /T
taskkill /FI "WINDOWTITLE eq MYSQL*"
echo.
echo.
echo.
PING 1.1.1.1 -n 1 -w 300 >NUL
echo Starting Dayz Server
cd C:\dayz PS\
call "dayz.bat"
You need to change a couple of lines to get this to work.
You first need to open your MySQL folder that came with pwnzors server files and add this to your MySQL.bat
Code:
TITLE MYSQL
Code:
TITLE MYSQL
@echo off
.\bin\mysqld --console
pause
Next You need to change this line
Code:
cd C:\dayz PS\
To where your server files are.
Next you change this line
Code:
call "dayz.bat"
Code:
call "@START_SERVER.bat"
I know it's not the best way to do it, but I just run a private lan server for me and my friends so instead of having to manually restart the server every hour or having to run battleeye I did this.
This script assumes you use the default way to start up pwnzors server.
If you need any help feel free to ask.