Jump to content
ZombieCooKie

Problem with Scheduler.xml

Recommended Posts

I don't know whats wrong.
 
Job 0 - 18 working perfect.
If I add job 19 nothing happens anymore :(
 
 

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>	<!-- IMPORTANT: Visit www.ibattle.org for usage guides -->	<!-- Guide For Using Scheduler System: http://ibattle.org/install-and-configure/setting-up-the-scheduler/ -->		<!-- 2 Time Formats Can Be Used:		 00:00:00 - HH:MM:SS - Example, 02:30:00 would be 2:30am.  Messages using this format are sent based on the node's time.  It is recommend to set your ACP profile time to the same timezone as the node. 		 000000 - HHMMSS - Example, 003000 Is 30 Minutes From When Server Started	--><Scheduler>	<!-- show text ingame every 60 min -->	 <job id="0">         <day>1,2,3,4,5,6,7</day>         <time>20:50:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 10 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="1">         <day>1,2,3,4,5,6,7</day>         <time>20:55:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 5 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="3">         <day>1,2,3,4,5,6,7</day>         <time>20:59:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 1 Minute neu.</cmd>                <cmdtype>0</cmdtype>                 </job>	 <job id="4">         <day>1,2,3,4,5,6,7</day>         <time>00:50:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 10 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="5">         <day>1,2,3,4,5,6,7</day>         <time>00:55:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 5 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="6">         <day>1,2,3,4,5,6,7</day>         <time>00:59:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 1 Minute neu.</cmd>                <cmdtype>0</cmdtype>                 </job>	 <job id="7">         <day>1,2,3,4,5,6,7</day>         <time>04:50:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 10 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="8">         <day>1,2,3,4,5,6,7</day>         <time>04:55:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 5 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="9">         <day>1,2,3,4,5,6,7</day>         <time>04:59:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 1 Minute neu.</cmd>                <cmdtype>0</cmdtype>                 </job>	 <job id="10">         <day>1,2,3,4,5,6,7</day>         <time>08:50:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 10 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="11">         <day>1,2,3,4,5,6,7</day>         <time>08:55:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 5 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="12">         <day>1,2,3,4,5,6,7</day>         <time>08:59:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 1 Minute neu.</cmd>                <cmdtype>0</cmdtype>                 </job>	 <job id="13">         <day>1,2,3,4,5,6,7</day>         <time>12:50:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 10 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="14">         <day>1,2,3,4,5,6,7</day>         <time>12:55:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 5 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="15">         <day>1,2,3,4,5,6,7</day>         <time>12:59:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 1 Minute neu.</cmd>                <cmdtype>0</cmdtype>                 </job>	 <job id="16">         <day>1,2,3,4,5,6,7</day>         <time>16:50:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 10 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="17">         <day>1,2,3,4,5,6,7</day>         <time>16:55:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 5 Minuten neu.</cmd>                <cmdtype>0</cmdtype>                 </job><job id="18">         <day>1,2,3,4,5,6,7</day>         <time>16:59:00</time>        <runtime>000000</runtime>         <loop>1</loop>         <cmd>say -1 RESTART WARNING! Der Server startet in 1 Minute neu.</cmd>                <cmdtype>0</cmdtype>                 </job><!--<job id="19">         <day>1,2,3,4,5,6,7</day>         <time>21:10:00</time>        <runtime>001000</runtime>         <loop>25</loop>         <cmd>say -1 Bitte besuche das Forum auf ZombieCooKie.de um Informationen ueber PvP-Zonen und Events zu erhalten.</cmd>                <cmdtype>0</cmdtype>                 </job>-->   	</Scheduler>

Please help.

Share this post


Link to post
Share on other sites

are the "<!--" and "-->" markers around job 19 there by intention?

they are usually used to make comments in the code, and cause everything in between beeing ignored...

so as long as they are there job 19 won't work

Share this post


Link to post
Share on other sites

Yes, I know.

I commented it, because it doesn't work.

If it is uncommented all jobs fail :(

Edited by ZombieCooKie

Share this post


Link to post
Share on other sites

I want this message to run every 10 minutes.

The manual rads this:

 

<loop> </loop>

Defines if the schedule should be repeated or not.

If -1 is used it means it will loop forever.
If 0 is used the job will only be run once.
If 1+ , when a number higher than 0 is used, it will loop the set number of times.

Each loop interval is set in the runtime tag.

Share this post


Link to post
Share on other sites
<job id='3'>

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

<start>003045</start>

<runtime>003045</runtime>

<loop>-1</loop>

<cmd>say -1 Only ask for an admin for things related to the server (Well known arma bugs do not count!!)</cmd>

</job>

 

This is what I use for it to repeat every 30 minutes and 45 seconds, works without issues. Try using this format and change the job id, timing, and obviously what you want it to say and see if that works.

 

Edit: just realized I am running an older version of BEC and they do change the formatting for this every now and then, I'm running 1.601 for clarity.

Edited by FrostyKush

Share this post


Link to post
Share on other sites

Which server host are you with? If you have access to the BEC logs look in the error log.

 

 

I want this message to run every 10 minutes.

The manual rads this:

 

<loop> </loop>

Defines if the schedule should be repeated or not.

If -1 is used it means it will loop forever.
If 0 is used the job will only be run once.
If 1+ , when a number higher than 0 is used, it will loop the set number of times.

Each loop interval is set in the runtime tag.

 

 

So why don't you set it to -1 to always loop every 10 mins? Why specifically 25 times?

Edited by Euphobia

Share this post


Link to post
Share on other sites

I host with Vilayer.

The error-log is gone with the update to 0.53.

 

I tried -1 but the effect was the same.

Share this post


Link to post
Share on other sites

Also if you are running on a dedicated or VM you should have something like this for clean shutdowns to eliminate the possibility of the database not loading properly on restart (used to happen to me all the time with a forced close through a batch file).

Share this post


Link to post
Share on other sites

Disregard everything I said, I didn't realize this was for the standalone. I was thinking this was for the mod, I do not host a standalone server.

Share this post


Link to post
Share on other sites

I host with Vilayer.

The error-log is gone with the update to 0.53.

 

I tried -1 but the effect was the same.

 

I rent with Vilayer too after leaving Multiplay, but Multiplay's BEC hosting is better, so stuck with them for a standalone BEC server as there's more control.

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

×