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

[CSGO] What does it take to make sure there is always a bot?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blaacky
Senior Member
Join Date: Oct 2012
Old 02-02-2016 , 21:46   [CSGO] What does it take to make sure there is always a bot?
Reply With Quote #1

I've made a plugin which needs the server to have a bot to be useful. CSGO seems nazi about bots and only let them spawn when there is enough spawns. I am posting in this forum section because I'm fairly sure it should require some coding to get it working.

The error I get on some maps when using the bot_add command is this: "Could not add bot to the game: The game is full". Sometimes the bot will join but is kicked the very next tick I think.

My server cvars:
mp_limitteams 0
mp_autoteambalance 0
bot_quota 1
bot_quota_mode match
bot_join_after_player 0

Things I tried:
- The CreateFakeClient function almost seems to work accept that the bot's command rate always seems to be half of the server's tick rate. I can't use it for that reason.

- Creating more spawns OnMapStart. Doesn't seem to work. EDIT: This actually does seem to help prevent the "Could not add bot game is full" message. It doesn't prevent the other bug where the bot just leaves as soon as it enters the game.

Last edited by blaacky; 02-03-2016 at 10:49.
blaacky is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 02-02-2016 , 22:35   Re: [CSGO] What does it take to make sure there is always a bot?
Reply With Quote #2

you want 1 bot no matter how many human players are on... or you want 1 bot for every human player?
hamilton5 is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 02-03-2016 , 08:26   Re: [CSGO] What does it take to make sure there is always a bot?
Reply With Quote #3

1 bot not matter how many human players are on. It's a replay bot for my bhop timer.

Last edited by blaacky; 02-03-2016 at 08:27.
blaacky is offline
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 02-03-2016 , 12:25   Re: [CSGO] What does it take to make sure there is always a bot?
Reply With Quote #4

Got the same problem, also with my replay plugin.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Proz
AlliedModders Donor
Join Date: Apr 2005
Old 02-03-2016 , 14:04   Re: [CSGO] What does it take to make sure there is always a bot?
Reply With Quote #5

I have this issue as well, bot wont join until a real player connects

Last edited by Proz; 02-03-2016 at 14:04.
Proz is offline
aexi0n
AlliedModders Donor
Join Date: Nov 2014
Location: bhop_deluxe
Old 02-03-2016 , 14:31   Re: [CSGO] What does it take to make sure there is always a bot?
Reply With Quote #6

Well in your case Proz, you could try setting bot_join_after_player 0, so it will auto join based on the quota/fill mode without waiting for a player to be in the game.
aexi0n is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 02-03-2016 , 18:13   Re: [CSGO] What does it take to make sure there is always a bot?
Reply With Quote #7

Here is the console output:

L 02/03/2016 - 17:12:20: "!replay<7603><BOT><>" entered the game
L 02/03/2016 - 17:12:20: "!replay<7603><BOT><TERRORIST>" disconnected (reason "Kicked by Console")
L 02/03/2016 - 17:12:20: "!replay<7603><BOT>" switched from team <TERRORIST> to <Unassigned>

EDIT: Ok it turned out to be that for some reason bot_quota was still 0. I looked through my code and couldn't find out why so I changed it and it seems the problem is fixed until further notice

Last edited by blaacky; 02-03-2016 at 20:59.
blaacky 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 07:41.


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