 |
|  |
 | Call the cops!! Newbs are invading |  |
|
Friend
| CT Rank: Not a CTer |
| Field's place: attack |
| Grid Name: flea |DpG| |
| GID: flea@ct/public |
| CT Wild Fort Rank: na |
| Joined: 28 Apr 2006 |
| Posts: G3616 Posts |
Location: /bin/sh
|
|
Posted: Fri Apr 28, 2006 5:09 pm |
|
i dunno what is with the latest generation of "degenerates" but its getting very hard to enjoy a good couple of rounds lately. 9/10 times lately it seems that the ppl who really want to play are outnumbered by either a noob who just installed the game, and is clue-less or some annoying punks! you've all had to see them, imposters, constant-polling etc etc.
i admit, i will tk/poll-kick in a HEARTBEAT if i catch such a person. i dont hesitate! they waste bandwidth (which most claim its too laggy anyways!) and these people are honestly just in the way! i know im not ct or admin or run the server or anything, but heck, I LOVE to compete there! just making a public call to clean those kidz out! ppppllleeeeaaaasssssseeee  |
_________________ http://respwn.us
|
 
| CT Rank: Not Ranked |
| Field's place: defense |
| Grid Name: |
| GID: loops@ct/senior |
| CT Wild Fort Rank: |
| Joined: 10 Apr 2006 |
| Posts: 5136181 Posts |
Location: france
|
|
Posted: Sun Apr 30, 2006 11:46 pm |
|
|
|
|
   
| CT Rank: Not Ranked |
| Field's place: sweeper |
| Grid Name: ct-eddie |
| GID: ed@ct/jedi |
| CT Wild Fort Rank: na |
| Joined: 22 Mar 2006 |
| Posts: 1X9362493 Posts |
Location: Wales, UK
|
|
Posted: Mon May 01, 2006 11:28 am |
|
| PTA wrote: | | Sure, but atm I don't know what the map_rotate file really does and how it interacts with the game-config. If you give me short information about that, I can try to write a PHP Script. |
The script is here:
http://tron.plantpeanuts.co.uk/viewtopic.php?t=42
It basically reads the tron log file:
/usr/local/var/games/armagetronad-dedicated/log/armagetronad.log
as the server writes to it.
if it reads "[0] Go (round 10 of 10 )"
for instance it knows that round 10 is about to start therefore get the maps ready for round 1.
it then chooses a map at randon and writes:
MAP_FILE ed/fortress/pillar-0.0.6.aamap.xml
ROUND_CENTER_MESSAGE Round 1 - Pillar"
to /usr/local/var/games/armagetronad-dedicated/var/everytime.cfg
since tron server reads everytime.cfg file and applies any settings to the next round.
The script is abit longer now (you know where to find it) but the way it works is the same. |
|
|
 
| CT Rank: Not Ranked |
| Field's place: |
| Grid Name: Racer |
| GID: PTA@ct/jedi |
| CT Wild Fort Rank: na |
| Joined: 12 Apr 2006 |
| Posts: 8T36317 Posts |
Location: Stuttgart, Germany
|
|
Posted: Mon May 01, 2006 4:41 pm |
|
ok, theres a problem:
PHP is not a good tool to work with files as streams. In fact, you either open a file for reading or writing and then you close it. I don't know a fuction that is similar with the tail-command for the map-rotating-script. One suggestion from me: a bash script, thats reads the log-file line for line (like now) and everytime a new line appears, it executes the php-file with the line as variable. Is that possible, bash-scripting-guys? If it is, then, the PHP-Script can analyse the line and write something in the everytime.cfg, this won't be a problem.
edit: another question: when does armagetron read the everytime.cfg? Cause I have to know for kick-commands, etc. at which moment the script has to write the commands in the file and when to delete them. |
|
_________________ Think different. But think!
|
   
| CT Rank: Not Ranked |
| Field's place: sweeper |
| Grid Name: ct-eddie |
| GID: ed@ct/jedi |
| CT Wild Fort Rank: na |
| Joined: 22 Mar 2006 |
| Posts: 1X9362493 Posts |
Location: Wales, UK
|
|
Posted: Mon May 01, 2006 6:24 pm |
|
| PTA wrote: | ok, theres a problem:
PHP is not a good tool to work with files as streams. In fact, you either open a file for reading or writing and then you close it. I don't know a fuction that is similar with the tail-command for the map-rotating-script. One suggestion from me: a bash script, thats reads the log-file line for line (like now) and everytime a new line appears, it executes the php-file with the line as variable. Is that possible, bash-scripting-guys? If it is, then, the PHP-Script can analyse the line and write something in the everytime.cfg, this won't be a problem.
edit: another question: when does armagetron read the everytime.cfg? Cause I have to know for kick-commands, etc. at which moment the script has to write the commands in the file and when to delete them. |
I'm no master of PHP, but this solution seems viable.
Tron server reads everytime.cfg at the end of each round. |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 2
|
|
|
|
|  |