Raised This Month: $32 Target: $400
 8% 

PODBots control(kick or add) automatically.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iveto69
Member
Join Date: Aug 2018
Old 04-12-2019 , 13:34   PODBots control(kick or add) automatically.
Reply With Quote #1

Hello again,

I have an other PODbot Plugin - no_human_no_bots (the author is ConnorMcLeod) transformed and it runs good. I never finished writing.
The Idea was to start PodBots as one human player connect to the server. This works.

But the bots should also will be kicked, if the humans players is >12x in the server - 13 , 14 or +... .
In my case: -5xBOTs (5x pb removebots , or BOTS_OFF or... - ?)
But when if the humans players is < 6x in the server - example 5 the humans players , оr 4 the humans players ... - BOTS_ON , or pb add - I do not know.
The plugin should scan the nomber of humans players.

Thanks !
iveto69 is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 04-13-2019 , 02:49   Re: PODBots control(kick or add) automatically.
Reply With Quote #2

There is no extra plugin needed as podbot already has that feature. Not "exactly like you want, but can be used for it.
Code:
pb_bot_quota_match 0
Simply set this one to the number of max bots in your server and comment out all the "pb add .." at the end of the config file. Also do not set "pb fillserver".
Once one player joins pb_bot_quote_match will cause the server to be filled with bots (as there is now a human player) to the max number of bots. And for each more human player a bot will be kicked. Once the last human player leaves all bots will be kicked.
__________________

Mordekay is offline
iveto69
Member
Join Date: Aug 2018
Old 04-13-2019 , 09:50   Re: PODBots control(kick or add) automatically.
Reply With Quote #3

Quote:
Originally Posted by Mordekay View Post
There is no extra plugin needed as podbot already has that feature. Not "exactly like you want, but can be used for it.
Code:
pb_bot_quota_match 0
Simply set this one to the number of max bots in your server and comment out all the "pb add .." at the end of the config file. Also do not set "pb fillserver".
Once one player joins pb_bot_quote_match will cause the server to be filled with bots (as there is now a human player) to the max number of bots. And for each more human player a bot will be kicked. Once the last human player leaves all bots will be kicked.
There is a big difference between what I want and what you offer me. I know about all the settings in the PODbot.cfg. What you offer me now -the load on the PC is considerably higher... , and hight latency, and low fps. What I want makes things differently?! The two things have nothing to do!
iveto69 is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 04-13-2019 , 10:47   Re: PODBots control(kick or add) automatically.
Reply With Quote #4

I never encountered a difference in fps or performance when i changed a cvar in the podbot config, but if you say so...
__________________

Mordekay is offline
iveto69
Member
Join Date: Aug 2018
Old 04-13-2019 , 15:21   Re: PODBots control(kick or add) automatically.
Reply With Quote #5

Quote:
Originally Posted by Mordekay View Post
I never encountered a difference in fps or performance when i changed a cvar in the podbot config, but if you say so...

With podbot config you can only control the number of bots. it does not exclude them.
For example: when a player enters, exits or re-connects- metamod plugin PODBot always checks the number of bots requested, the presence or absent bots in the game, which rises sharply ping and ... It is natural that when you have 2 bots and 3 players does not affect this on ping - but if I have 20 players at the server and at least 10-12 bots ...
I need a plugin that just monitors the number of players on the server - to exclude all bots( or metamod plugin PODBot)... , and when the players are below the specified number - to return the bots as they were before the exclusion .

Other tips and ideas do not need.

Last edited by iveto69; 04-13-2019 at 15:22.
iveto69 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-13-2019 , 16:30   Re: PODBots control(kick or add) automatically.
Reply With Quote #6

If you clearly provide the requirements for this plugin I can work on it.

But, I have a feeling podbot already covers this. IIRC, when I used it I had it configured at 6 bots, if a human joined, one left, and so on until there was 6+ humans (at which time there would be no bots).

Here's my settings
Code:
# These 2 setings below support a minimum and maximum number 
# of bots running on a server. They are ONLY LIMITS for the function 
# pb fillserver and pb removebots. The actual amount of bots might be 
# between those limits (it rely for example on how many times pb add 
# command has been used).
# Bots may be added to the server until the total number of players 
# (bots and humans) reaches the pb_maxbots value.  Each time a new player
# joins the server, a bot will be kicked from the server unless there are 
# only pb_minbots number of bots currently on the server. After players 
# disconnect from the server, bots will be automatically added back to 
# the server until the total number of players (humans and bots) reaches 
# pb_maxbots again. pb_maxbots should be AT LEAST one less than 
# the maxplayers value (otherwise no one will be able to join the server).
# You can stop this function (auto add/kick bots for entering/leaving 
# humans)) by writing pb_maxbots = 0.
# Ths function is also not working in the case if pb_bot_quota_match 
# is grater than 0 (in that case amount of bots follow the number
# humans * pb_bot_quota_match - of course in the min/maxbots limit).
# Default value for pb_bot_quota_match is 0.
# Default values for pb_minbots and pb_maxbots are 0 and 16.

pb_minbots 0
pb_maxbots 6
pb_bot_quota_match 0

pb add 100
pb add 100
pb add 100
pb add 100
pb add 100
pb add 100
__________________

Last edited by Bugsy; 04-13-2019 at 17:07.
Bugsy is offline
iveto69
Member
Join Date: Aug 2018
Old 04-14-2019 , 03:50   Re: PODBots control(kick or add) automatically.
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
If you clearly provide the requirements for this plugin I can work on it.

But, I have a feeling podbot already covers this. IIRC, when I used it I had it configured at 6 bots, if a human joined, one left, and so on until there was 6+ humans (at which time there would be no bots).

Here's my settings
Code:
# These 2 setings below support a minimum and maximum number 
# of bots running on a server. They are ONLY LIMITS for the function 
# pb fillserver and pb removebots. The actual amount of bots might be 
# between those limits (it rely for example on how many times pb add 
# command has been used).
# Bots may be added to the server until the total number of players 
# (bots and humans) reaches the pb_maxbots value.  Each time a new player
# joins the server, a bot will be kicked from the server unless there are 
# only pb_minbots number of bots currently on the server. After players 
# disconnect from the server, bots will be automatically added back to 
# the server until the total number of players (humans and bots) reaches 
# pb_maxbots again. pb_maxbots should be AT LEAST one less than 
# the maxplayers value (otherwise no one will be able to join the server).
# You can stop this function (auto add/kick bots for entering/leaving 
# humans)) by writing pb_maxbots = 0.
# Ths function is also not working in the case if pb_bot_quota_match 
# is grater than 0 (in that case amount of bots follow the number
# humans * pb_bot_quota_match - of course in the min/maxbots limit).
# Default value for pb_bot_quota_match is 0.
# Default values for pb_minbots and pb_maxbots are 0 and 16.

pb_minbots 0
pb_maxbots 6
pb_bot_quota_match 0

pb add 100
pb add 100
pb add 100
pb add 100
pb add 100
pb add 100
Hi sir Bugsy,

This 6-bot configuration is effective, but only if you expect to have 4-5 players on the server, where there will always be a bot for weaker or younger players. But if there are 10, 15, 20 or 32 players - the bots will not be there for a long time, the weaker players - too.
just, I activate 5 bots(comand pb_minbots 5) to have fun for the weaker players - but when the server is full, i prefer to example : I prefer the server to have instead of 15 players + 5bots , to be with 20 players. But if the bots are removed manually with the command pb remove #bot_id
or pb remove bot_name - their initial value will recover after the change map (my server is DeathMatch), example after 2 or 3 h ... But if the bots are removed manually - even if there are no human players, bots will not be on the server unless they are added manually again.
All of this sometimes I do it manually through the console: If the number of players exceeds a value, I get off all bots or 2-3-4, and when they drop below a given value - manually add them.
I've tested dozens of combinations with these three commands:
pb_minbots 0 (0, 1, 2 ....16)
pb_maxbots 0 (0,1,2 .....16)
pb_bot_quota_match 0 (1,2 ....16)
But the lag is very big, or else i can not do exactly that. Believe me, I use it PODBot more than 3 years and I know how to set up my configuration file.

I have these values:
pb_minbots 5
pb_maxbots 0
pb_bot_quota_match 0

Please allow the plugin to control the number of live players, and when their number exceeds a certain amount (to specify with cvars), remove the bots(pb_minbots 0 - or to specify with cvars) and when the number of live players drops below a certain amount(to specify with cvars) - to include again bots (pb_minbots 5 -or to specify with cvars) This is.

I track the number of players in the console and when there are enough players, I type the 1x command: pb remove #...<#...bot> and 1bot is aut , if the server is full - I type next command: pb remove # for next bot -and next bot is aut.... , and so 5 ор 4x. But if the players reduce their number on the server - I manually add back to the server with command pb add - I enter the command as many times as the bot I want to return to the server. These two commands have validity until the map is changed, after changemap - config fail is validity.
If possible, this plugin to performs these functions?


Excuse me for my bad English. Thanks !

Last edited by iveto69; 04-14-2019 at 06:38.
iveto69 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-14-2019 , 12:01   Re: PODBots control(kick or add) automatically.
Reply With Quote #8

To make this easier for me, can you provide a matrix for how this should work? I don't want to assume I know what you want and then have to re-do it.

Human players = 0, X bots should be there
Human players = 1, X bots should be there
Human players = 2, X bots should be there
Human players = 3, X bots should be there
Human players = 4, X bots should be there
Human players = 5, X bots should be there
Human players = 6, X bots should be there
Human players = 7, X bots should be there
Human players = 8, X bots should be there
Human players = 9, X bots should be there
Human players = 10, X bots should be there
Human players = 11, X bots should be there
Human players = 12, X bots should be there
__________________
Bugsy is offline
iveto69
Member
Join Date: Aug 2018
Old 04-14-2019 , 13:45   Re: PODBots control(kick or add) automatically.
Reply With Quote #9

Quote:
Originally Posted by Bugsy View Post
To make this easier for me, can you provide a matrix for how this should work? I don't want to assume I know what you want and then have to re-do it.

Human players = 0, X bots should be there
Human players = 1, X bots should be there
Human players = 2, X bots should be there
Human players = 3, X bots should be there
Human players = 4, X bots should be there
Human players = 5, X bots should be there
Human players = 6, X bots should be there
Human players = 7, X bots should be there
Human players = 8, X bots should be there
Human players = 9, X bots should be there
Human players = 10, X bots should be there
Human players = 11, X bots should be there
Human players = 12, X bots should be there
Yes
This is :

Human players = 0, X bots = 0
Human players = 1, X bots = 5
Human players = 2, X bots = 5
Human players = 3, X bots = 5
Human players = 4, X bots = 5
Human players = 5, X bots = 5
Human players = 6, X bots = 5
Human players = 7, X bots = 5
Human players = 8, X bots = 5
Human players = 9, X bots = 4
Human players = 10, X bots = 3
Human players = 11, X bots = 2
Human players = 12, X bots = 1
Human players = 13, X bots = 0
Human players = 14, X bots = 0
Human players = 15, X bots = 0
Human players = 16, X bots = 0
Human players = 17, X bots = 0
Human players = 18, X bots = 0
Human players = 19, X bots = 0
Human players = 20, X bots = 0

Can this be done. I hope it's not too very complicated. Thanks!

Last edited by iveto69; 04-14-2019 at 13:56.
iveto69 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-14-2019 , 19:17   Re: PODBots control(kick or add) automatically.
Reply With Quote #10

Having a hard time figuring out how to disable the automatic bot management. When my plugin kicks one, the module re-adds automatically.
__________________
Bugsy is offline
Reply


Thread Tools
Display Modes

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 12:46.


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