Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » Official SBot Thread  () 3 Votes
Re: Official HL bot thread [message #216550 is a reply to message #215844] Thu, 31 August 2006 16:50 Go to previous messageGo to next message
jnz is currently offline  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 Go to previous messageGo to next message
Whitedragon is currently offline  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 #216559 is a reply to message #215844] Thu, 31 August 2006 17:09 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
ahhh, thanks!

thank you very much indeed.
Re: Official HL bot thread [message #216565 is a reply to message #215844] Thu, 31 August 2006 17:29 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
i am re-disgning the was the bot parses commands so expect a late release.
Re: Official HL bot thread [message #216577 is a reply to message #215844] Thu, 31 August 2006 19:46 Go to previous messageGo to next message
xptek is currently offline  xptek
Messages: 1410
Registered: August 2004
Location: USSA
Karma: 0
General (1 Star)
I'd suggest offering a standalone version as well. I hate having to run installers on my servers.

cause = time
Re: Official HL bot thread [message #216614 is a reply to message #215844] Fri, 01 September 2006 01:53 Go to previous messageGo to next message
Nightma12 is currently offline  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 Smile

[Updated on: Fri, 01 September 2006 01:54]

Report message to a moderator

Re: Official HL bot thread [message #216621 is a reply to message #216614] Fri, 01 September 2006 03:54 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Nightma12 wrote on Fri, 01 September 2006 09:53

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 Smile

Thanks!!! i have been waiting for weeks for a version to comeout with the latest scripts! thanks!

also i am using the fact that pinfo output infomation on all the players to my advantage. if i want a specific player the bot runs through all the lines untill the correct player name or id is found then it puts all the infomation into a struct.

and oh yeah, this is bot a bug Wink that is why why has "Start PINFO output" and "End PINFO output"


xptek wrote on Fri, 01 September 2006 03:46

I'd suggest offering a standalone version as well. I hate having to run installers on my servers.


this can be easily done.
Re: Official HL bot thread [message #216624 is a reply to message #215844] Fri, 01 September 2006 04:33 Go to previous messageGo to next message
jnz is currently offline  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 #216625 is a reply to message #215844] Fri, 01 September 2006 04:44 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
never mind found it: needs a "Sleep(50);" where "cout << player_name << endl;" was
Re: Official HL bot thread [message #216626 is a reply to message #215844] Fri, 01 September 2006 04:56 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
ok so i lied about the late release, this one is faster and more reliable, plus i have added 3 commands, !nextmap - what is the next map?

!thismap - what is this map?

!gameover - can only be used by the poeple in admins.txt.

and with the new parsing engine it is easier for me to add commands. it is also much faster than before.

if you want any commands added or have any suggestions please say!
Re: Official HL bot thread [message #216636 is a reply to message #215844] Fri, 01 September 2006 05:56 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
Quote:

and oh yeah, this is bot a bug that is why why has "Start PINFO output" and "End PINFO output"


and it often misses players out...

it loops thoug the player ID's, if id 1 is ingame, print id 1, if id is ingame print id 2, if id 3 i not ingame then quit loop

problem then is that if id 4 is also ingame.. it will skip them out

what is the point in !thismap???? lol..


and y dont u make it !next? Smile so much easier Razz
Re: Official HL bot thread [message #216645 is a reply to message #215844] Fri, 01 September 2006 06:56 Go to previous messageGo to next message
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 #216651 is a reply to message #215844] Fri, 01 September 2006 07:40 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Or just walk outside a building and look Wink

But I guess it's ok for usage in IRC, instead of for example the combined usage of the !gi/!gameinfo commands


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: Official HL bot thread [message #216668 is a reply to message #215844] Fri, 01 September 2006 08:46 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
does anybody else get this error when trying to run:

index.php?t=getfile&id=1617&private=0

i cant find what it is :S
  • Attachment: error1.jpg
    (Size: 18.57KB, Downloaded 2506 times)
Re: Official HL bot thread [message #216675 is a reply to message #215844] Fri, 01 September 2006 09:52 Go to previous messageGo to next message
Fifaheld is currently offline  Fifaheld
Messages: 349
Registered: October 2005
Karma: 0
Recruit
i become this error to...since the first beta... Huh
Re: Official HL bot thread [message #216680 is a reply to message #215844] Fri, 01 September 2006 10:13 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

I have the same error message on a pc without VC 2005 installed. On this pc (with 2005) it works properly. I think there are some build options you need to change, I got this problem myself too once, but I'm unsure on how I fixed it. I know it had to do with the build options though. Might be the manifest settings.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: Official HL bot thread [message #216711 is a reply to message #215844] Fri, 01 September 2006 15:15 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
i think i know, i need to re-compile it.
Re: Official HL bot thread [message #216714 is a reply to message #215844] Fri, 01 September 2006 15:22 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
try this exe:(2.30)


  • Attachment: HL-Bot.exe
    (Size: 44.00KB, Downloaded 72 times)
Re: Official HL bot thread [message #216719 is a reply to message #215844] Fri, 01 September 2006 15:36 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Seems to start properly now Wink

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: Official HL bot thread [message #216724 is a reply to message #215844] Fri, 01 September 2006 16:05 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
does it say "Found bad line in config" ? this is what i get with that exe, i have built a new one.

  • Attachment: HL-Bot.exe
    (Size: 184.00KB, Downloaded 61 times)
Re: Official HL bot thread [message #216729 is a reply to message #215844] Fri, 01 September 2006 16:12 Go to previous messageGo to next message
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 #217334 is a reply to message #215844] Mon, 04 September 2006 15:17 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
right after realising a load of bugs, i have fixed mosgt of them, but i cant offer a release yet as help-linux.com is not down. but when the new domain come on i will have a server for it too.

todo:

a few more sounds;

i am going to improve the plugin.txt feature to include "if" statements;

read from logs instead so you dont need rlmon.

maby shortcus as in, you type into teamchat: bapp and it will translate that into "beacon at power plant";

mIRC support i will make it optional;

maby rengaurd server, hopefully Crimson will let me. fingers crossed.

more commands for admins/mods

ladder (i have almost got this finished)

fix a memory leak, i am having trouble finding.

also i am re-writing code to make it easyer to add commands, but i also need to add code so it is easyer to get game info and add general game commands.



any suggestions you would like to make?
Re: Official HL bot thread [message #217459 is a reply to message #215844] Tue, 05 September 2006 08:50 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
expect ^^this^^ release to be a dew days as i am having trouble with the ladder.
Re: Official HL bot thread [message #217460 is a reply to message #217334] Tue, 05 September 2006 08:51 Go to previous messageGo to next message
dead6re is currently offline  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.
Re: Official HL bot thread [message #217462 is a reply to message #217460] Tue, 05 September 2006 09:04 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
dead6re wrote on Tue, 05 September 2006 16:51

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.


i am going to make use of TMSG Wink
Previous Topic: [Resolved] Few SSGM questions
Next Topic: FDS and BrenBot
Goto Forum:
  


Current Time: Mon Nov 18 19:58:36 MST 2024

Total time taken to generate the page: 0.01468 seconds