Raised This Month: $51 Target: $400
 12% 

Automatic Bot Names


Post New Thread Reply   
 
Thread Tools Display Modes
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 03-26-2015 , 01:10   Re: Automatic Bot Names
Reply With Quote #91

CSGO not work.
__________________
nguyenbaodanh is offline
Snypr
New Member
Join Date: Apr 2015
Old 04-01-2015 , 05:21   Re: Automatic Bot Names
Reply With Quote #92

Quote:
Originally Posted by sparkie951 View Post
Nice app, just found it... Works great on my Insurgency...

Just for fun for my conservative friends, I created a Political Bot Name List...
Hi Sparkie, could you tell me which version of this Mod and Insurgency version you're using?

Cheers
8-)
Snypr is offline
sparkie951
Member
Join Date: Jul 2014
Old 04-01-2015 , 11:40   Re: Automatic Bot Names
Reply With Quote #93

Quote:
Originally Posted by Snypr View Post
Hi Sparkie, could you tell me which version of this Mod and Insurgency version you're using?

Cheers
8-)
Version 1.0
sparkie951 is offline
Derpy Hooves
Junior Member
Join Date: Aug 2012
Location: A mailbox
Old 04-15-2015 , 09:38   Re: Automatic Bot Names
Reply With Quote #94

Managed to fix it in CS:GO.

Code:
L 04/15/2015 - 06:44:13: [SM] Plugin encountered error 21: Native is not bound
L 04/15/2015 - 06:44:13: [SM] Native "BfReadShort" reported: 
L 04/15/2015 - 06:44:13: [SM] Displaying call stack trace for plugin "botnames.smx":
L 04/15/2015 - 06:44:13: [SM]   [0]  Line 468, /home/forums/content/files/6/7/6/9/6/129832.attach::UserMessage_SayText2()
Replace line 468 in the source code with this:

Code:
BfReadShort(Handle:bf); // team color
It does, however, still spam the same error message in the console, but it appears to be working fine. Though, because of that, I probably wouldn't consider it completely fixed.

Screenshot

And no, this does not remove the "BOT" prefix. I removed it by using the csgo_english.txt method.

Last edited by Derpy Hooves; 04-15-2015 at 09:41.
Derpy Hooves is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-18-2015 , 12:02   Re: Automatic Bot Names
Reply With Quote #95

Quote:
Originally Posted by Derpy Hooves View Post
Managed to fix it in CS:GO.
The fix indeed works great, I tried & applied to my server and it worked great, aside from one problem:

Error logs absolutely saturated from this plugin. Unless there is a way to fix the errors from popping, or suppress them, I'll have to remove
__________________
sneaK is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 05-21-2016 , 12:12   Re: Automatic Bot Names
Reply With Quote #96

Fixed a bunch of problems.

- "client not connected error" shouldnt appear in logs anymore.
- players shouldnt get renamed anymore.
- added a check for saytext2, if the game doesnt support it.
- removed MAX_PLAYERS. MAXPLAYERS exists in sourcemod for the same reason.
- removed FCVAR_PLUGIN from all cvars - deprecated (SM 1.8.0).
- removed unused version cvar handle.
- removed FCVAR_NOTIFY from all cvars(except version) because you dont need to notify everyone about bot renaming cvars.
- added flags FCVAR_SPONLY and FCVAR_REPLICATED for the version cvar.
- added cvar sm_botnames_delay so you can set the delay for renaming bots yourself (this delay might be needed for tf2).
- the autocreated config file is now called Automatic_Bot_Names.

botnames.txt is still required if youre not using a db. remember that.
Attached Files
File Type: sp Get Plugin or Get Source (automaticbotnames.sp - 1015 views - 16.0 KB)
__________________

Last edited by luki1412; 12-15-2016 at 16:20.
luki1412 is offline
ldooks
Junior Member
Join Date: Jan 2014
Old 05-26-2016 , 14:43   Re: Automatic Bot Names
Reply With Quote #97

Quote:
Originally Posted by luki1412 View Post
Fixed a bunch of problems.

- "client not connected error" shouldnt appear in logs anymore.
- players shouldnt get renamed anymore.
- added a check for saytext2, if the game doesnt support.
Does not work on latest insurgency patch (released today, may 26th 2016), even after applying the update to line 468. Throws the following error and bots have stock names

Code:
L 05/26/2016 - 11:47:31: SourceMod error session started
L 05/26/2016 - 11:47:31: Info (map "tell_coop") (file "errors_20160526.log")
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()

Last edited by ldooks; 05-26-2016 at 15:17.
ldooks is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 05-26-2016 , 16:13   Re: Automatic Bot Names
Reply With Quote #98

Quote:
Originally Posted by ldooks View Post
Does not work on latest insurgency patch (released today, may 26th 2016), even after applying the update to line 468. Throws the following error and bots have stock names

Code:
L 05/26/2016 - 11:47:31: SourceMod error session started
L 05/26/2016 - 11:47:31: Info (map "tell_coop") (file "errors_20160526.log")
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
L 05/26/2016 - 11:47:31: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 05/26/2016 - 11:47:31: [SM] Displaying call stack trace for plugin "botnames.smx":
L 05/26/2016 - 11:47:31: [SM]   [0]  Line 312, botnames.sp::DoBotName()
L 05/26/2016 - 11:47:31: [SM]   [1]  Line 510, botnames.sp::Event_PlayerTeam()
I fixed it for TF2. Not getting any errors on two servers. No idea whats different for Insurgency. There is no tf2 specific code.
__________________
luki1412 is offline
ldooks
Junior Member
Join Date: Jan 2014
Old 05-26-2016 , 18:28   Re: Automatic Bot Names
Reply With Quote #99

Quote:
Originally Posted by luki1412 View Post
I fixed it for TF2. Not getting any errors on two servers. No idea whats different for Insurgency. There is no tf2 specific code.

getting this error now
Code:
CreatePlayerBot: Unable to create bot BOT Christiaan - CreateFakeClient() returned NULL.
mysteriously the other error has gone away it seems?

Last edited by ldooks; 05-26-2016 at 18:29.
ldooks is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 05-27-2016 , 05:59   Re: Automatic Bot Names
Reply With Quote #100

Quote:
Originally Posted by ldooks View Post
getting this error now
Code:
CreatePlayerBot: Unable to create bot BOT Christiaan - CreateFakeClient() returned NULL.
mysteriously the other error has gone away it seems?
This plugin doesn't create bots so it is one of your other plugins or a problem with Insurgency.

Dont know what plugins youre using or what sourcemod build youre using.
__________________
luki1412 is offline
Reply



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


All times are GMT -4. The time now is 10:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode