Jump to content
Sign in to follow this  
fn_Quiksilver

Variable max ping

Recommended Posts

I'd like to implement a variable max ping that changes at certain times of day.

ie.

Peak hours (national/regional traffic) = max ping 200

Off-peak hours (worldwide) = max ping 400

For the purpose of not kicking international guests/players when server traffic is typically low (ie 3AM-3PM).

How would I go about this?

Share this post


Link to post
Share on other sites

I'll give it a shot. If I wanted to do this, this is how I would go about it

Firstly you need two research two issues

a) ascertain if the Battleye\BE.cfg can be overwritten while the server is running

b) ascertain if the server reads the updated/overwritten version of the BE.cfg when a player connects

If it can then it will be possible to write a batch file that will continously run and then when the Time parameters you have set are met, it would either

a) delete and then recreate the BE.cfg

b) move 2 versions of the BE.cfg in and out of the Battleye folder

c) simply rename the 2 versions of the BE.cfg from say something like

BE.cfg1 & BE.cfg2 to BE.cfg

Option B would probably be the best

---------------------------------------------------------

If the BE.cfg cannot be overwritten while the server is active or the server doesnt read the updated version of the BE.cfg then you are a bit stuck because you will then have to restart the server when you want to switch versions of the BE.cfg

Share this post


Link to post
Share on other sites

Fairly easy to accomplish with this: http://ibattle.org/

Just put a maxping command to happen at wished times in the scheduler.

Share this post


Link to post
Share on other sites
Fairly easy to accomplish with this: http://ibattle.org/

Just put a maxping command to happen at wished times in the scheduler.

I use BEC and had no idea I could do that, thanks.

---------- Post added at 13:56 ---------- Previous post was at 12:38 ----------

I put this in the scheduler, does this all look right?


<job id="10">
	<time>15:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5</day>
	<loop>1</loop> 
	<cmd>!PING 250</cmd>	
	<cmdtype>0</cmdtype>
</job>


<job id="11">
	<time>19:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5</day>
	<loop>1</loop> 
	<cmd>!PING 200</cmd>	
	<cmdtype>0</cmdtype>
</job>

<job id="12">
	<time>02:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>!PING 250</cmd>	
	<cmdtype>0</cmdtype>
</job>

<job id="13">
	<time>03:00:00</time>
	<delay>000000</delay>
	<day>1,2,3,4,5,6,7</day>
	<loop>1</loop> 
	<cmd>!PING 350</cmd>	
	<cmdtype>0</cmdtype>
</job>

<job id="14">
	<time>12:00:00</time>
	<delay>000000</delay>
	<day>6,7</day>
	<loop>1</loop> 
	<cmd>!PING 250</cmd>	
	<cmdtype>0</cmdtype>
</job>


<job id="15">
	<time>15:00:00</time>
	<delay>000000</delay>
	<day>6,7</day>
	<loop>1</loop> 
	<cmd>!PING 200</cmd>	
	<cmdtype>0</cmdtype>
</job>

Share this post


Link to post
Share on other sites

I put this in the scheduler, does this all look right?

No it dosent.

You need to use maxping not !PING

Also keep in mind that if your server is running some dayz|life or whatever mission and you do change the system time on the server. it might screw up the scheduler timer.

Edited by nuxil

Share this post


Link to post
Share on other sites
No it dosent.

You need to use maxping not !PING

Also keep in mind that if your server is running some dayz|life or whatever mission and you do change the system time on the server. it might screw up the scheduler timer.

Thanks! And thanks for the heads up, I was aware of that.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×