Dont run this in the server, run it from a config file:
Code: Select all
SPAWN_SCRIPT race_rotation.php
LADDER_LOG_WRITE_ALL 1
EDIT: it will rotate after 1 rounds instead of 3. try MATCH_WINNER ?
Code: Select all
SPAWN_SCRIPT race_rotation.php
LADDER_LOG_WRITE_ALL 1
Code: Select all
SPAWN_SCRIPT race_rotation.php
LADDER_LOG_WRITE_ALL 1
Code: Select all
/admin include start.cfg
RA: Exterernal command 'race_rotation.cfg' not found anywhere in <datapath>/scripts/.
RA: Command LADDER_LOG_WRITE_ALL unknown.
Yeah, scripts started that way need to be in <system data path>/scripts (which already exists, so it should be easy to find) or <user data path>/scripts (which you'd need to create).snake wrote:RA: Exterernal command 'race_rotation.cfg' not found anywhere in <datapath>/scripts/.
Well, the whole thing hinges on running the correct version of the server that actually can write the entries the script expects into the ladderlog. You probably need a recent sty, I don't think we have them on the mainline.snake wrote:RA: Command LADDER_LOG_WRITE_ALL unknown.
What he needed was ROUND_COMMENCING for that script and based on what he said below he must have sty+ct since that is only part of sty+ctZ-Man wrote:Well, the whole thing hinges on running the correct version of the server that actually can write the entries the script expects into the ladderlog. You probably need a recent sty, I don't think we have them on the mainline.snake wrote:RA: Command LADDER_LOG_WRITE_ALL unknown.
really there should be no need for LADDERLOG_WRITE_ALL for a small script like thissnake wrote:I added ladderlog_write_ROUND_COMMENCING 1 in the server cfg and it loaded correctly. Only it didnt make a difference Im still not getting anything from the script.
Code: Select all
tail -f $ladderlog | $parser | $tron --resourcedir $resourcedir --userconfigdir $userconfigdir --vardir $vardir | tee -a $log
Code: Select all
tail -f $ladderlog | $parser | tee -a ${cmds} | $tron --resourcedir $resourcedir --userconfigdir $userconfigdir --vardir $vardir | tee -a $log
Code: Select all
tail -f $ladderlog | $parser