Results 1 to 10 of 11

Thread: Analyzing COD2/COD4 logfiles; Documentation out there?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Why not look at the code that actually produces said logs?

    Onconnect:
    PHP Code:
    logPrint("J;" lpselfguid ";" lpselfnum ";" self.name "\n"); 
    Ondisconnect:
    PHP Code:
    logPrint("Q;" lpselfguid ";" lpselfnum ";" self.name "\n"); 
    Ondamage:
    PHP Code:
    logPrint("D;" lpselfGuid ";" lpselfnum ";" lpselfteam ";" lpselfname ";" lpattackGuid ";" lpattacknum ";" lpattackerteam ";" lpattackname ";" sWeapon ";" iDamage ";" sMeansOfDeath ";" sHitLoc "\n"); 
    Onkill:
    PHP Code:
    logPrint("K;" lpselfguid ";" lpselfnum ";" lpselfteam ";" lpselfname ";" lpattackguid ";" lpattacknum ";" lpattackerteam ";" lpattackname ";" sWeapon ";" iDamage ";" sMeansOfDeath ";" sHitLoc "\n"); 
    (note: in both ondamage/onkill self is the victim
    deathmatch onwingame:
    PHP Code:
    logPrint("W;;" guid ";" name "\n"); 
    team deathmatch onwin/onlosegame
    PHP Code:
            logPrint("W;" winningteam winners "\n");
            
    logPrint("L;" losingteam losers "\n"); 
    in which the losers/winners are formatted as following:
    PHP Code:
                if((isDefined(player.pers["team"])) && (player.pers["team"] == winningteam))
                        
    winners = (winners ";" lpGuid ";" player.name);
                else if((
    isDefined(player.pers["team"])) && (player.pers["team"] == losingteam))
                        
    losers = (losers ";" lpGuid ";" player.name); 
    sd onbombplanted:
    PHP Code:
    logPrint("A;" lpselfguid ";" lpselfnum ";" other.pers["team"] + ";" other.name ";" "bomb_plant" "\n"); 
    sd onbombdefused:
    PHP Code:
    logPrint("A;" lpselfguid ";" lpselfnum ";" other.pers["team"] + ";" other.name ";" "bomb_defuse" "\n"); 
    I dont see anything in the source code for ctf or hq related gametypes so it might be impossible to catch those events by just looking at the logs
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following 3 Users Say Thank You to IzNoGoD For This Useful Post:

    CaptainSlow (24th September 2015),kung foo man (24th September 2015),Ni3ls (24th September 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •