having 2 HIVE.INI's for day and night?

piff

Well-Known Member
would it be possible to have 2 HIVE.INI 1 for day and 1 for night and have the server rotate them?
 
You would need to do this via a batch file. Once the server is terminated (batch finds the process running) to copy over HiveEXT.ini number two. I agree with Retra in saying whats the point when you can find/write a script for your server to do this for you. Example: your server restarts every six hours. First three hours is daytime and the last three are night. This would be a hell of a lot easier to do rather then have a batch script copy files over.
 
set path_hive=C:\Server\dayz_1.chernarus
set hive_night=HiveExt_night.ini
set hive_day=HiveExt_day.ini

:init
set /p "x="<"C:\batch\counter_1.txt"
echo Iteration: %x%
if %x% == 5 (
cd /d %path_hive%
xcopy %hive_night% %hive_normal% /Y
echo START SERVER WITH NIGHT SETTINGS
set /a x=1
) else (
cd /d %path_hive%
xcopy %hive_day% %hive_normal% /Y
echo START SERVER WITH DAY SETTINGS
set /a x=%x%+1
)
echo %x% > C:\batch\counter_1.txt
 
edit is broken for me.. .forgot that at the top:
set hive_normal=HiveExt.ini

this results in a night every 5. restart.
 
Back
Top