Ladderlog

From Tronwiki
(Difference between revisions)
Jump to: navigation, search
m (Edlog moved to Ladderlog)
 
(26 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
Here are the details:
 
Here are the details:
  
==START_IN==
+
==ADMIN_COMMAND==
START_IN 3
+
R648
  START_IN 2
+
  ADMIN_COMMAND <laddername> <ip> <access level> <command> <options>
  START_IN 1
+
Log what players use /admin and says what command they want to change
  START_IN 0
+
 
This is the countdown to a round starting. One use is to spawn zones.
+
==CHAT==
 +
  CHAT <player> <message>
 +
 
 +
==COMMAND==
 +
  COMMAND <authenticated name> <ip> <access level> <message>
 +
This is created with the /cmd command
 +
==DEATH_DEATHZONE==
 +
DEATH_DEATHZONE <player>
 +
 
 +
==DEATH_FRAG==
 +
DEATH_FRAG player_1 player_2
 +
DEATH_FRAG who_died by_who
 +
==DEATH_SUICIDE==
 +
DEATH_SUICIDE player_1
 +
==DEATH_TEAMKILL==
 +
DEATH_TEAMKILL <dead> <killer>
 +
DEATH_TEAMKILL who_died by_who
 +
==DEATH_BASEZONE_CONQUERED==
 +
DEATH_BASEZONE_CONQUERED <player>
 +
 
 +
==DEATH_SHOT_FRAG==
 +
added r646
 +
DEATH_SHOT_FRAG player_1 player_2
 +
DEATH_SHOT_FRAG who_died by_who
 +
==DEATH_SHOT_SUICIDE==
 +
added r646
 +
DEATH_SHOT_SUICIDE player_1
 +
==DEATH_SHOT_TEAMKILL==
 +
added r646
 +
DEATH_SHOT_TEAMKILL player_1 player_2
 +
DEATH_SHOT_TEAMKILL who_died by_who
 
==GAME_TIME==
 
==GAME_TIME==
 
  GAME_TIME 0
 
  GAME_TIME 0
Line 16: Line 46:
 
0 At the beginning of each round. Each second it is increased by one.<br>
 
0 At the beginning of each round. Each second it is increased by one.<br>
 
Allows the script to do things to effect the grid based on time.
 
Allows the script to do things to effect the grid based on time.
 +
replaces the START_IN with
 +
GAME_TIME -3
 +
GAME_TIME -2
 +
GAME_TIME -1
 +
GAME_TIME 0
 +
 +
==INVALID_COMMAND==
 +
R647
 +
INVALID_COMMAND /ls kyle@ct 1.1.1.1 0 P4@ct
 +
INVALID_COMMAND <command> <laddername> <ip> <access level> <message>
 +
Main use it to script commands like /ls for lastSeen
 +
 +
==MATCH_WINNER==
 +
MATCH_WINNER team_gold
 +
==NEW_MATCH==
 +
NEW_MATCH
 +
==NEW_ROUND==
 +
NEW_ROUND <date> <time>
 +
 +
==NEXT_ROUND==
 +
NEXT_ROUND 3 12 ed/wildfort/octa_who-0.0.1.aamap.xml Round 3 - Octa Who?
 +
Written before the round countdow. Displays:
 +
* Number of the Round to be played
 +
* Maximun number of rounds in the match
 +
* Map to be played
 +
==NUM_HUMANS==
 +
NUM_HUMANS 2
 +
Number of actual human players at the beginning of the round. AI's and spectators not included.
 +
==ONLINE_PLAYER==
 +
ONLINE_PLAYER ct-eddie 15 5 0 0.457736 team_blue
 +
Written before each round starts,
 +
ONLINE_PLAYER <name> <red> <green> <blue> <Ping> <team>
 +
==PLAYER_ENTERED==
 +
PLAYER_ENTERED ct_emph 192.168.0.1 CT_emph
 +
PLAYER_ENTERED <playername> <ip> <displayname>
 +
==PLAYER_GRIDPOS==
 +
PLAYER_GRIDPOS 0:kyle@ct 391.776 495.64 1 0 purple_persian
 +
PLAYER_GRIDPOS mrchief 240 257.184 0 1 orange_organs
 +
PLAYER_GRIDPOS <name> <xpos> <ypos> <xdir> <ydir> <team name>
 +
 +
==PLAYER_KILLED==
 +
PLAYER_KILLED <playername> <ip> <posx> <posy> <dirx> <diry>
 +
appears after RESPAWN_PLAYER was used
 +
==PLAYER_LEFT==
 +
PLAYER_LEFT mr.parsons 192.168.0.1
 +
PLAYER_LEFT <laddername> <ip>
 +
==PLAYER_POSITION==
 +
PLAYER_POSITION 0:kyle@ct MIDFIELD
 +
PLAYER_POSITION <name> <ip> <position>
 +
 +
Positions can be
 +
*ATTACKING
 +
*CONQUERING
 +
*DEFENSE
 +
*GOAL
 +
*MIDFIELD
 +
*OFFENSE
 +
==PLAYER_RENAMED==
 +
PLAYER_RENAMED pike pike@ct 85.202.52.21 1 pike
 +
PLAYER_RENAMED <oldname> <newname> <ip> <authenticated> <newdisplayname>
 +
 
==ROUND_SCORE==
 
==ROUND_SCORE==
 
  ROUND_SCORE 2 player_1 1.2.3.4 2 team_gold 12
 
  ROUND_SCORE 2 player_1 1.2.3.4 2 team_gold 12
Line 26: Line 117:
 
* The Team the player is on
 
* The Team the player is on
 
* Team Score
 
* Team Score
==ONLINE_PLAYER==
 
ONLINE_PLAYER player_1 0.108046 1.2.3.4 2 team_gold
 
ONLINE_PLAYER player_2 0.161067 1.2.3.5 team_blue
 
Written before each round starts, Displaying:
 
* Player Name
 
* Ping
 
* Ip address
 
* The Team the player is on
 
==NUM_HUMANS==
 
NUM_HUMANS 2
 
Number of actual human players at the beginning of the round. AI's and spectators not included.
 
==NEXT_ROUND==
 
NEXT_ROUND 3 12 ed/wildfort/octa_who-0.0.1.aamap.xml Round 3 - Octa Who?
 
Written before the round countdow. Displays:
 
* Number of the Round to be played
 
* Maximun number of rounds in the match
 
* Map to be played
 
==DEATH_FRAG==
 
DEATH_FRAG player_1 1.2.3.4 player_1 1.2.3.4
 
==DEATH_SUICIDE==
 
DEATH_SUICIDE player_1 1.2.3.4
 
==DEATH_TEAMKILL==
 
DEATH_TEAMKILL player_1 1.2.3.4 player_1 1.2.3.4
 
 
==ROUND_WINNER==
 
==ROUND_WINNER==
 
  ROUND_WINNER team_blue
 
  ROUND_WINNER team_blue
==MATCH_WINNER==
+
==START_IN==
  MATCH_WINNER team_gold
+
  START_IN 3
 +
START_IN 2
 +
START_IN 1
 +
START_IN 0
 +
This is the countdown to a round starting. One use is to spawn zones.
 +
USE GAME_TIME now
 +
 
 
==TIME==
 
==TIME==
 
  TIME 2007-08-06 11:37:52
 
  TIME 2007-08-06 11:37:52
==NEW_ROUND==
 
NEW_ROUND
 
==NEW_MATCH==
 
NEW_MATCH
 
==PLAYER_POSITION==
 
PLAYER_POSITION player_1 1.2.3.4 OFFENSE
 

Latest revision as of 18:08, 15 April 2009

edlog.txt is the log file where we throw any information that is needed by our script.
It is based on ladderlog.txt to feed ladder information into the mysql database. With some extra features to enable us to have more information that the current ladderlog.txt gave us. It kind of evolved from there.
Here are the details:

Contents

ADMIN_COMMAND

R648

ADMIN_COMMAND <laddername> <ip> <access level> <command> <options> 

Log what players use /admin and says what command they want to change

CHAT

CHAT <player> <message>

COMMAND

COMMAND <authenticated name> <ip> <access level> <message>

This is created with the /cmd command

DEATH_DEATHZONE

DEATH_DEATHZONE <player>

DEATH_FRAG

DEATH_FRAG player_1 player_2 

DEATH_FRAG who_died by_who

DEATH_SUICIDE

DEATH_SUICIDE player_1

DEATH_TEAMKILL

DEATH_TEAMKILL <dead> <killer>

DEATH_TEAMKILL who_died by_who

DEATH_BASEZONE_CONQUERED

DEATH_BASEZONE_CONQUERED <player>

DEATH_SHOT_FRAG

added r646

DEATH_SHOT_FRAG player_1 player_2

DEATH_SHOT_FRAG who_died by_who

DEATH_SHOT_SUICIDE

added r646

DEATH_SHOT_SUICIDE player_1

DEATH_SHOT_TEAMKILL

added r646

DEATH_SHOT_TEAMKILL player_1 player_2 

DEATH_SHOT_TEAMKILL who_died by_who

GAME_TIME

GAME_TIME 0
GAME_TIME 1
GAME_TIME 2
GAME_TIME 3

0 At the beginning of each round. Each second it is increased by one.
Allows the script to do things to effect the grid based on time. replaces the START_IN with

GAME_TIME -3
GAME_TIME -2
GAME_TIME -1
GAME_TIME 0

INVALID_COMMAND

R647

INVALID_COMMAND /ls kyle@ct 1.1.1.1 0 P4@ct

INVALID_COMMAND <command> <laddername> <ip> <access level> <message> Main use it to script commands like /ls for lastSeen

MATCH_WINNER

MATCH_WINNER team_gold

NEW_MATCH

NEW_MATCH

NEW_ROUND

NEW_ROUND <date> <time>

NEXT_ROUND

NEXT_ROUND 3 12 ed/wildfort/octa_who-0.0.1.aamap.xml Round 3 - Octa Who?

Written before the round countdow. Displays:

  • Number of the Round to be played
  • Maximun number of rounds in the match
  • Map to be played

NUM_HUMANS

NUM_HUMANS 2

Number of actual human players at the beginning of the round. AI's and spectators not included.

ONLINE_PLAYER

ONLINE_PLAYER ct-eddie 15 5 0 0.457736 team_blue

Written before each round starts, ONLINE_PLAYER <name> <red> <green> <blue> <Ping> <team>

PLAYER_ENTERED

PLAYER_ENTERED ct_emph 192.168.0.1 CT_emph

PLAYER_ENTERED <playername> <ip> <displayname>

PLAYER_GRIDPOS

PLAYER_GRIDPOS 0:kyle@ct 391.776 495.64 1 0 purple_persian
PLAYER_GRIDPOS mrchief 240 257.184 0 1 orange_organs

PLAYER_GRIDPOS <name> <xpos> <ypos> <xdir> <ydir> <team name>

PLAYER_KILLED

PLAYER_KILLED <playername> <ip> <posx> <posy> <dirx> <diry>

appears after RESPAWN_PLAYER was used

PLAYER_LEFT

PLAYER_LEFT mr.parsons 192.168.0.1

PLAYER_LEFT <laddername> <ip>

PLAYER_POSITION

PLAYER_POSITION 0:kyle@ct MIDFIELD

PLAYER_POSITION <name> <ip> <position>

Positions can be

  • ATTACKING
  • CONQUERING
  • DEFENSE
  • GOAL
  • MIDFIELD
  • OFFENSE

PLAYER_RENAMED

PLAYER_RENAMED pike pike@ct 85.202.52.21 1 pike

PLAYER_RENAMED <oldname> <newname> <ip> <authenticated> <newdisplayname>

ROUND_SCORE

ROUND_SCORE 2 player_1 1.2.3.4 2 team_gold 12
ROUND_SCORE 4 player_2 1.2.3.5 4 team_blue 16

Written at the end of each round. A record is written for each player present.
Displaying:

  • The points accumulated for the round
  • Player Name
  • Ip address
  • The Team the player is on
  • Team Score

ROUND_WINNER

ROUND_WINNER team_blue

START_IN

START_IN 3
START_IN 2
START_IN 1
START_IN 0

This is the countdown to a round starting. One use is to spawn zones. USE GAME_TIME now

TIME

TIME 2007-08-06 11:37:52
Personal tools