.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Releases, Installers, Docs & Coding
Releases, Installers, Docs & Coding Where the official development happens

Reply
 
Thread Tools
"Kick Bot" and AMX
Old
  (#1)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default "Kick Bot" and AMX - 16-06-2004

sPlOrYgOn, remember I started a thread talking about using "kick bot" would disable lots of features of amx? and you said that this had happened to you.

When I was looking at the FakeFull (from OLO) code last night, I noticed FF uses different method to kick bots and that would not affect anything of AMX. I tried to use that on PB, but I failed... Here is the code

PB
Code:
sprintf (cmd, "kick \"%s\"\n", STRING (bots[i].pEdict->v.netname));
SERVER_COMMAND (cmd); // kick the bot using (kick "name")
FF
Code:
Void RemoveFakeClient() {
	...
	SERVER_COMMAND(UTIL_VarArgs("kick \"%s\"\n",STRING(pFake->pEdict->v.netname)));
	...
}
 
char* UTIL_VarArgs(char *format, ...) {
	va_list argptr;
	static char string[1024];
	va_start (argptr, format);
	vsprintf (string, format, argptr);
	va_end (argptr);
	return string;
}
I don't if this is the reason caused the problem, so could you please take a look at this? Thank you very much.


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: "Kick Bot" and AMX
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: "Kick Bot" and AMX - 16-06-2004

well all he does is instead of using the standard library function he made his own that does pretty much the same thing.. except return it instead of putting it into a variable which we pass to it..
  
Reply With Quote
Re: "Kick Bot" and AMX
Old
  (#3)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: "Kick Bot" and AMX - 16-06-2004

hummm...OK, but why that problem doesn't happen when FF kick a bot?


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: "Kick Bot" and AMX
Old
  (#4)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: "Kick Bot" and AMX - 16-06-2004

probably something with freeing the bot's info from the game after the kick...
FF doesn't do much except have a "client" stay in spectator mode..
Maybe it's because we don't clear the address of the bot's edict from the bot array when the bot leaves..
  
Reply With Quote
Re: "Kick Bot" and AMX
Old
  (#5)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: "Kick Bot" and AMX - 16-06-2004

Thanks for the quick replies sPlOrYgOn.

Since lots of bot servers use AMX/AM/... and with auto-kick enabled, I hope this can be fixed in the near future.


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Re: "Kick Bot" and AMX
Old
  (#6)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: "Kick Bot" and AMX - 16-06-2004

I would advise to reset cleanly the whole bot structure immediately after a bot is kicked... and check for any pending external dependencies that could cause trouble.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: "Kick Bot" and AMX
Old
  (#7)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: "Kick Bot" and AMX - 16-06-2004

heres a test dll for you g4s
I've memset the bot's slot on the array to 0 when he leaves...
http://www.mapzap.org/podbot/podbotBETA.zip
  
Reply With Quote
Re: "Kick Bot" and AMX
Old
  (#8)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: "Kick Bot" and AMX - 16-06-2004

thanks sPlOrYgOn, unfortuantly it doesn't work, just same as before.
it can be simply tested by the welcome message. after I kick a bot and join the server, welcome display doesn't show up, and the respawn stops working,...
i think there's something wrong with player id handling. after a bot is kicked, player ids are messed up so that amx is not enable to find such a player with certain playerid. anyways, thank you for compiling the test dll. i'll try to go through the source and see what i can find out.
damn i cant help too much!>


Last edited by g4s : Tomorrow at 12:01.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com