Checking Game Status And Player Status...

BorisBoris Join Date: 2002-12-30 Member: 11636Members
<div class="IPBDescription">How do you know when gameover, etc...</div> I was wondering if someone could direct me on how to tell what state the game is in (Gameover, who wins etc) and what state a player is in (Dead, Rein, alive).

I'm trying out some scripting features to get used to adminmod and scripting for mods in general.

I'm new to the scripting and coding so I'm wondering if someone has a compiled list of events or there is a guide on how to check the status of all settings in the game (what weapon user has, health, equipment(HA, JP,etc), upgrades done in game(weapons, armour), turret health, turret fact upgraded?, etc...)

Basically looking for ALL game events and settings. Any help would be appreciated.

Even if there is no list, can someone tell me how I can determine them manually?

Thanks in advance,

Matt

<!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo--> <!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' style='vertical-align:middle' alt='pudgy.gif'><!--endemo-->

Comments

  • Eternal_BlissEternal_Bliss Join Date: 2002-11-07 Member: 7633Members, NS1 Playtester, Contributor
    afaik you cannot know if a player is in Rein
    just dead/alive
    here are some logs:
    L 01/25/2003 - 18:59:44: Team 1 has lost.
    L 01/25/2003 - 18:59:44: Team "1" scored "0" with "2" players
    L 01/25/2003 - 18:59:44: Team "2" scored "0" with "3" players
    L 01/25/2003 - 18:59:44: (map_name "ns_eclipse") (game_version "v1.04") (game_time "246.176163") (victory_team "alien") (losing_team "marine") (winning_teamsize "3") (losing_teamsize "2")
    ^ this shows who won/lost
    L 01/25/2003 - 18:59:48: "Tw|kishu<27><XXXX><alien1team>" triggered "structure_destroyed" (type "team_armory")
    L 01/25/2003 - 18:59:30: "BL0cI< M@$TeR<8><XXX><marine1team>" triggered "structure_built" (type "team_armory")
    L 01/25/2003 - 19:33:16: "Me-|DeathWish<45><XXX><marine1team>" triggered "research_start" (type "research_advarmory")
    hope it helps you...
  • BorisBoris Join Date: 2002-12-30 Member: 11636Members
    Ya, that's a start. Thanks.

    Is that just a log from your server running? Will the server show all events? and give the codes?
  • Eternal_BlissEternal_Bliss Join Date: 2002-11-07 Member: 7633Members, NS1 Playtester, Contributor
    yup, i took the logs 2 days ago.. when i worked on my remote control/broadcast program for NS..
    the building logs are new in 1.04(and i love them)
  • BorisBoris Join Date: 2002-12-30 Member: 11636Members
    If anyone can add to this or give me more clear directions on the best way to check when a game has ended and who the losing team and winning team are it would be appreciated.

    How do you check what these variables are?:
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->L 01/25/2003 - 18:59:44: (map_name "ns_eclipse") (game_version "v1.04") (game_time "246.176163") (victory_team "alien") (losing_team "marine") (winning_teamsize "3") (losing_teamsize "2")
    ^ this shows who won/lost
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    are they server variables, are they somekind of command sent, or what? how do I check them...?

    - Matt

    PS. Looking for the coding/scripting side of how to check these...
  • Eternal_BlissEternal_Bliss Join Date: 2002-11-07 Member: 7633Members, NS1 Playtester, Contributor
    once game ends it will write those lines in the log
  • BorisBoris Join Date: 2002-12-30 Member: 11636Members
    So your saying, in order to get this info, I'm going to have to rip some info from the log files?

    Is there any other way, there must be... because coding that could get nasty

    Any suggestions on alternatives?

    PS. Also, I was wondering what has to be enabled to see this info? just log on? (for 1.04 that is)
  • Eternal_BlissEternal_Bliss Join Date: 2002-11-07 Member: 7633Members, NS1 Playtester, Contributor
    just make a client that will get the logs(logaddress command) and the program will translate that..
    like HLSW,CS/NSBot(my prog) works..
    you just need log on
  • BorisBoris Join Date: 2002-12-30 Member: 11636Members
    Can you show me some examples in your code? I'm really new @ this and that's why so many questions... Any help getting me started would be appreciated.

    Thanks,

    Matt <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo-->
  • VadakillVadakill The Almighty BSO Join Date: 2002-04-02 Member: 373Members, NS1 Playtester
    I suggest talking with [WHO]Them or VooGru since they have been writing a lot of MetaMod plugins. Also, there is a program that works with MetaMod which can parse logging events called LogD available from: <a href='http://logd.sourceforge.net/' target='_blank'>http://logd.sourceforge.net/</a>
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    <!--QuoteBegin--Eternal Bliss+Jan 27 2003, 05:31 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Eternal Bliss @ Jan 27 2003, 05:31 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> NSBot(my prog) works.. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Where can I get this?
  • Eternal_BlissEternal_Bliss Join Date: 2002-11-07 Member: 7633Members, NS1 Playtester, Contributor
    edited January 2003
    sorry but my coding is private...
    logd takes a lot of cpu(i had it on my server)
    golex, <a href='http://www.csbot.org' target='_blank'>http://www.csbot.org</a>
    but if you will want to run it for NS(and irc aswell) i suggest you wait for our next beta since it will fix many bugs i have found in my irc output
  • GoleXGoleX Join Date: 2002-11-07 Member: 7681Members
    <!--QuoteBegin--Eternal Bliss+Jan 28 2003, 08:53 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Eternal Bliss @ Jan 28 2003, 08:53 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> sorry but my coding is private...
    logd takes a lot of cpu(i had it on my server)
    golex, <a href='http://www.csbot.org' target='_blank'>http://www.csbot.org</a>
    but if you will want to run it for NS(and irc aswell) i suggest you wait for our next beta since it will fix many bugs i have found in my irc output <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Can't wait to test it.
Sign In or Register to comment.