Jump to content
  • 0

Setup auto restarts on HFB...?


tkdmaster

Question

Hey! Finally decided to post on here sicne I've been pounding my head on my keyboard for days trying to get this to work with no luck. anyone know an easy way to get scheduled restarts going on HFB servers?! I tried through the scheduler system, followed vilayer's tutorial on how to do it, since it has the same interface, and it just simply does not work.

 

I tried setting it so the restart would go off at midnight the next day, but it just goes off immediately upon saving it instead, same for all other restart points I've set.

 

I've read battleye can do this for me, but i'd have to make some sort of .bat file to make it work, and I honestly got no idea how the file paths i'd have to put in the scheduler to make that work either..someone, anyone, allittle help please?

Link to comment
Share on other sites

Recommended Posts

  • 0

Here's a copy of mine:

<Scheduler>

<!--Restart (00:00)-->

<job id="1">

<time>23:30:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 30 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="2">

<time>23:45:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 15 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="3">

<time>23:50:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 10 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="4">

<time>23:50:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Get to safety and hide vehicles !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="5">

<time>23:55:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 5 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="6">

<time>23:55:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 You run the risk of losing gear if you don't disconnect !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="7">

<time>23:59:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 1 minute!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="8">

<time>23:59:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Log out now, you might lose gear !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="9">

<time>00:00:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>#shutdown</cmd>

<cmdtype>0</cmdtype>

</job>

<!--Restart (06:00)-->

<job id="10">

<time>05:30:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 30 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="11">

<time>05:45:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 15 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="12">

<time>05:50:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 10 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="13">

<time>05:50:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Get to safety and hide vehicles !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="14">

<time>05:55:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 5 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="15">

<time>05:55:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 You run the risk of losing gear if you don't disconnect !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="16">

<time>05:59:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 1 minute!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="17">

<time>05:59:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Log out now, you might lose gear !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="18">

<time>06:00:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>#shutdown</cmd>

<cmdtype>0</cmdtype>

</job>

<!--Restart (12:00)-->

<job id="19">

<time>11:30:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 30 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="20">

<time>11:45:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 15 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="21">

<time>11:50:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 10 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="22">

<time>11:50:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Get to safety and hide vehicles !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="23">

<time>11:55:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 5 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="24">

<time>11:55:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 You run the risk of losing gear if you don't disconnect !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="25">

<time>11:59:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 1 minute!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="26">

<time>11:59:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Log out now, you might lose gear !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="27">

<time>12:00:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>#shutdown</cmd>

<cmdtype>0</cmdtype>

</job>

<!--Restart (18:00)-->

<job id="28">

<time>17:30:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 30 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="29">

<time>17:45:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 15 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="30">

<time>17:50:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 10 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="31">

<time>17:50:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Get to safety and hide vehicles !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="32">

<time>17:55:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 5 minutes!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="33">

<time>17:55:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 You run the risk of losing gear if you don't disconnect !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="34">

<time>17:59:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Server restart in 1 minute!</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="35">

<time>17:59:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Log out now, you might lose gear !</cmd>

<cmdtype>0</cmdtype>

</job>

<job id="36">

<time>18:00:00</time>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>#shutdown</cmd>

<cmdtype>0</cmdtype>

</job>

</Scheduler>

 

This one is set up on a 6 hour restart schedule with a couple of nag warnings as you get really close. Feel free to edit as you wish, it should give you a really good template to follow.

 

If you want to add nag messages every so often here's more you can add:

<!-- show text ingame every 75 min -->

<job id="37">

<time>007500</time>

<delay>000000</delay>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 There is NO PVP, you will be banned if you do!</cmd>    

<cmdtype>0</cmdtype>

</job>

<job id="38">

<time>007501</time>

<delay>000000</delay>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 All bans are reported to the central database.</cmd>

<cmdtype>0</cmdtype>            

</job>

    

<job id="39">

<time>007502</time>

<delay>000000</delay>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Our sister server runs Napf PVP 68.232.188.52:2302</cmd>

<cmdtype>0</cmdtype>            

</job>

<job id="40">

<time>007503</time>

<delay>000000</delay>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Locked vehicles are not to be touched, unlocked are fair game.</cmd>

<cmdtype>0</cmdtype>            

</job>

<job id="41">

<time>007504</time>

<delay>000000</delay>

<day>1,2,3,4,5,6,7</day>

<loop>1</loop>

<cmd>say -1 Teamspeak: legion.teamspeakserverhost.com:21929 </cmd>

<cmdtype>0</cmdtype>            

</job>

</Scheduler>

 

Just edit the text to what you want and set the <time> to your chosen replay schedule. I use 75 minutes and I know that seems like a long time but players get irritated if you pop shit up every 15 minutes saying the same thing over and over. Lastly be sure that you slip this section in before the "</Scheduler>".

So, using the #shutdown command does a full server restart, not just the map? i was under the impression that using this made it just shutdown, not start up again as well.

Link to comment
Share on other sites

  • 0

Nope, this is all I use and it does great.

Sweet! Had to edit the schedule you gave me (was missing the delay tags, which made it not work for me) and ran a test message through it and all seems good, will find out here in a few hours if the restarts works as intended, fingers crossed!

Link to comment
Share on other sites

  • 0

It uses the server's absolute time. This is a product of your Hive.ext settings, where you look at these settings:

[Time]
;Possible values: Local, Custom, Static
;You cannot use Static on OFFICIAL Hive, it will just revert to Local
Type = Static
;If using Custom type, offset from UTC in hours (can be negative as well)
Offset = -5
;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to
Hour = 10

"Hour" is the hour (out of a 24 hour clock) that your server starts on. Mine starts at 10am. "Offset" is the number of hours to offset YOUR server from Universal time, or Greenwich standard. This only matters if you are going to use "Local" time, as it will set the time of your server to match whatever time it is locally to the physical location of that server (adjusted with this offset). So say its 10pm local time where your server is located and you have these settings, then the game will be running at 5pm. Even after a restart the server will adjust to the local time minus offset.

 

I hope that's not too confusing?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...