Re: Official HL bot thread [message #216550 is a reply to message #215844] |
Thu, 31 August 2006 16:50 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma: 0
|
General (3 Stars) |
|
|
i am having a problem, i have asked this before but i casnnot find the thread.
when you type "pinfo" into the fds with is the output eg:
player_id, player_name, score,
etc.
i already know this:
ID,player name,score,team,ping,ip;port,kbits,something,kills,deaths,cr edits,something
[Updated on: Thu, 31 August 2006 17:04] Report message to a moderator
|
|
|
Re: Official HL bot thread [message #216556 is a reply to message #215844] |
Thu, 31 August 2006 17:04 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma: 1
|
Colonel |
|
|
Quote: | PINFO new console command to print information about players in the game.
Data is comma delimited and is printed in the following order:
Player ID
Player Name
Player Score
Player Team
Player Ping
Player IP
Player KB/s
Player Rank (position in the player list)
Player Kills
Player Deaths
Player Money
Player Kill/Death Ratio
|
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
|
|
|
|
|
|
Re: Official HL bot thread [message #216614 is a reply to message #215844] |
Fri, 01 September 2006 01:53 |
|
Nightma12
Messages: 2593 Registered: August 2003
Karma: 0
|
General (2 Stars) Category Moderator |
|
|
I do not reccommend useing pinfo as there is a bug where it wont show all the players
EDIT: you may also wish to include this with your bot: www.aohost.co.uk/ssaow.zip
its SSAOW 1.5 upgraded to scripts.dll 2.9.2, which has all those console commands on it
[Updated on: Fri, 01 September 2006 01:54] Report message to a moderator
|
|
|
|
Re: Official HL bot thread [message #216624 is a reply to message #215844] |
Fri, 01 September 2006 04:33 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma: 0
|
General (3 Stars) |
|
|
iv run into a stupid problem, here is alittle code:
cout << "player_name - " << player_name << endl;
string pID = get_player_id((char *)player_name.c_str());
if(pID == "NULL")
{
return;
}
string id, playername;
splitstring(pID, ": ", id, playername);
playerobj *obj;
obj = get_player_obj(atoi(id.c_str()));
cout << "ID = " << obj->Player_ID << "<< score = " << obj->Player_Score << endl;
if(obj == NULL)
{
return;
}
but if i do this:
string pID = get_player_id((char *)player_name.c_str());
if(pID == "NULL")
{
return;
}
string id, playername;
splitstring(pID, ": ", id, playername);
playerobj *obj;
obj = get_player_obj(atoi(id.c_str()));
if(obj == NULL)
{
return;
}
it wont work properly. why would a "cout" affect it?
this is in the main parse function btw.
|
|
|
|
|
|
Re: Official HL bot thread [message #216645 is a reply to message #215844] |
Fri, 01 September 2006 06:56 |
|
futura83
Messages: 1285 Registered: July 2006 Location: England
Karma: 0
|
General (1 Star) Viva la Resistance! |
|
|
all someone has to do is press and hold L(default) to find out what the map they are on is called.
This is a signature. Reading this is wasting your time.
|
|
|
|
|
|
|
|
|
|
|
Re: Official HL bot thread [message #216729 is a reply to message #215844] |
Fri, 01 September 2006 16:12 |
|
futura83
Messages: 1285 Registered: July 2006 Location: England
Karma: 0
|
General (1 Star) Viva la Resistance! |
|
|
if at first it dosnt run, start the bot after your FDS has loaded up
This is a signature. Reading this is wasting your time.
|
|
|
|
|
Re: Official HL bot thread [message #217460 is a reply to message #217334] |
Tue, 05 September 2006 08:51 |
dead6re
Messages: 602 Registered: September 2003
Karma: 0
|
Colonel |
|
|
help-linux wrote on Mon, 04 September 2006 18:17 |
maby shortcus as in, you type into teamchat: bapp and it will translate that into "beacon at power plant";
|
Good luck if your going to make those work ingame.
Let all your wishes be granted except one, so you will still have something to strieve for.
|
|
|
|