Checking Game Status And Player Status...
Boris
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-->
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
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...
Is that just a log from your server running? Will the server show all events? and give the codes?
the building logs are new in 1.04(and i love them)
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...
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)
like HLSW,CS/NSBot(my prog) works..
you just need log on
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-->
Where can I get this?
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
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.