.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Common Questions (http://forums.bots-united.com/forumdisplay.php?f=51)
-   -   Bots rejoining after a person leaves? (http://forums.bots-united.com/showthread.php?t=2185)

Pillsbury DoughBoy 03-07-2004 06:28

Bots rejoining after a person leaves?
 
Hi,

Question1 :Is it possible to have 8 bots starting on a server, when someone joins 1 bot leaves and when it gets to 8 humans all the bots are gone.
When some humans leaves the server is it possible for the amount of humans left to be replaced by bots?

Question2: I currently have:

gamedll "addons\metamod\dlls\metamod.dll"
gamedll_linux "addons/metamod/dlls/metamod_i386.so"

In my liblist.gam if I changed it for the podbot would it make the metamod stop working?


Regards
DoughBoy

sPlOrYgOn 03-07-2004 06:32

Re: Bots rejoining after a person leaves?
 
this podbot is a metamod plugin..
set max_bots to 8 and min_bots to 0 and you'll have what you want

Pillsbury DoughBoy 03-07-2004 06:48

Re: Bots rejoining after a person leaves?
 
I forgot to mension when my bots enter the server they are named "unnamed" is it possible to change this?

sPlOrYgOn 03-07-2004 06:59

Re: Bots rejoining after a person leaves?
 
you have an old version
search around the forums and dl Release #2

Pillsbury DoughBoy 03-07-2004 07:02

Re: Bots rejoining after a person leaves?
 
I found this:

http://forums.bots-united.com/showthread.php?t=2069

But isnt that the windows version?

sPlOrYgOn 03-07-2004 07:14

Re: Bots rejoining after a person leaves?
 
http://forums.bots-united.com/showthread.php?t=1639

Pillsbury DoughBoy 03-07-2004 19:49

Re: Bots rejoining after a person leaves?
 
Ok I got the names working now thanks, however the bots still dont rejoin when someone leaves Ive got:

# Remove the comments on the 2 lines below to support a minimum and maximum
# number of bots running on a dedicated server. Bots will be added to the
# server until the total number of players (bots and humans) reaches the
# max_bots value. Each time a new player joins the server, a bot will be
# kicked from the server unless there are only min_bots 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 reaches max_bots again. You should make max_bots be AT LEAST
# one less than the maxplayers value (otherwise no one will be able to join
# your server).
min_bots 1
max_bots 6

In podbot.cfg

sPlOrYgOn 03-07-2004 20:02

Re: Bots rejoining after a person leaves?
 
you'll need the latest beta
http://www.mapzap.org/files/podbot/podbotBETA.zip

Pillsbury DoughBoy 03-07-2004 20:08

Re: Bots rejoining after a person leaves?
 
But Im using linux :s

sPlOrYgOn 03-07-2004 20:27

Re: Bots rejoining after a person leaves?
 
sorry I don't have a linux right now..
maybe if we can get someone to compile it for linux..
http://www.mapzap.org/files/podbot/podbotsrc.zip
is where the source code is..

if you want to compile you'll need to download the podbot_sdk (http://filebase.bots-united.com) and replace those source files with the ones in the zip

Pillsbury DoughBoy 03-07-2004 20:53

Re: Bots rejoining after a person leaves?
 
Bah I dont know how to do it :(, no other way? :'(

g4s 03-07-2004 22:31

Re: Bots rejoining after a person leaves?
 
I'll compile that for you IF I can make everything right again the next time(very soon) I reinstall my linux. Now both my windows and linux are messed up...>:(

Pillsbury DoughBoy 03-07-2004 22:45

Re: Bots rejoining after a person leaves?
 
:( Thanks, is it how long do youthink it will take?

g4s 03-07-2004 23:27

Re: Bots rejoining after a person leaves?
 
1 Attachment(s)
here you go, I haven't tested it - i don't have hlds installed on my system yet. just give it a try and please post a reply if it works.

*Edit* oops, forgot the file...

*Edit* Attached FIle: Removed!

Pillsbury DoughBoy 03-07-2004 23:43

Re: Bots rejoining after a person leaves?
 
Where is it lol? :o

Pillsbury DoughBoy 04-07-2004 00:36

Re: Bots rejoining after a person leaves?
 
Nope it keeps crashing the server :( cant even enter....

g4s 04-07-2004 00:54

Re: Bots rejoining after a person leaves?
 
well, I'm sorry about this. I was in a hurry.
I'll compile the dll for windows and test it first. if everything's fine, I probably made something wrong under linux. I'll try to find the problem asap. Just need some time.

Pillsbury DoughBoy 04-07-2004 00:57

Re: Bots rejoining after a person leaves?
 
Thanks for the help :)

Do you think it will be ready somtime tomorrow?

sPlOrYgOn 04-07-2004 01:00

Re: Bots rejoining after a person leaves?
 
no.. sorry it was probably my fault..
That must be the messed up source code...
please dl and compile again
http://www.mapzap.org/files/podbot/podbotsrc.zip

g4s 04-07-2004 01:12

Re: Bots rejoining after a person leaves?
 
1 Attachment(s)
I compiled that again and tested on server side only, don't know if there are any problems with clients. anyways,
Code:

POD-Bot 2.6mm    RUN  -    podbot_mm_i386.so  vR2b24    ini  Chlvl ANY
seems ok
now Pillsbury DoughBoy, you might want to try this again.

thanks sPlOrYgOn for the quick update.

Pillsbury DoughBoy 04-07-2004 01:21

Re: Bots rejoining after a person leaves?
 
The server is running ok now, but when the server starts no bots enter o_O

sPlOrYgOn 04-07-2004 01:22

Re: Bots rejoining after a person leaves?
 
after you set max_bots you have to do pb fillserver
then after that as humans join bots will leave..
and as humans leave bots will join..

Pillsbury DoughBoy 04-07-2004 01:25

Re: Bots rejoining after a person leaves?
 
pb fillserver

From rcon?

sPlOrYgOn 04-07-2004 01:27

Re: Bots rejoining after a person leaves?
 
or you can put "fillserver" at the end of your podbot.cfg..

Pillsbury DoughBoy 04-07-2004 01:28

Re: Bots rejoining after a person leaves?
 
Yay it works!! :D :D

Btw will I need to type this in everytime the map changes?

g4s 04-07-2004 01:31

Re: Bots rejoining after a person leaves?
 
pb fillserver would add bots until the number of bots equals the max_bots.

I don't think you need rcon, are you controlling the server remotely? if you are running the server on your computer, just type "pb fillserver" without quotes.

Pillsbury DoughBoy 04-07-2004 01:33

Re: Bots rejoining after a person leaves?
 
Yes I am if I added fillserver in the cfg file will it automatically do it each time a map changes?
So I dont have to do it manually?

g4s 04-07-2004 01:36

Re: Bots rejoining after a person leaves?
 
you guys are really fast...
yes the cfg would be executed on map change

sPlOrYgOn 04-07-2004 01:37

Re: Bots rejoining after a person leaves?
 
yea it'll do it every map change..
but this might change...
We're thinking about stoping podbot.cfg from being read every map change..
but don't worry because the bots should join from last map..

Pillsbury DoughBoy 04-07-2004 01:43

Re: Bots rejoining after a person leaves?
 
Oka great, and thanks very much for the support guys :) .

Perhaps this is worth a sticky for other users?

KWo 05-07-2004 00:10

Re: Bots rejoining after a person leaves?
 
Here is the specification for autoadd/kick bot function (sorry - this post will be long once again ;)). This written here is valid since podbot2.6mm R2beta25 (you can ses this number in meta list).

What do the people want? They want keep as constant the number of bots+players at the server, but sometimes this was not working correct in old PB2.5 (client connection failed - bot didn't rejoin back) - sometimes this made a server empty. Another people want the same but with the possibility of some manual control of bots on the server (some kick, some add, some removebots and some fillserver - these function have to be still avaiable). How to solve this?
Now in code is an new variable, but this variable is invisible for user-admin. I named it keep_bots_players - this variable define how many bots+players shuld be still on the server. This name is only here for explaining how this is working now and in code the name can be different.
The meaning of max_bots and min_bots - these are limits only but with possibility change them from console by:
pb max_bots {new_value}
pb min_bots {new_value}
You can define max_bots as 12 and min_bots as 2 and put 8 addbot commands in podbot.cfg - then keep_bots_players is calculated (automaticaly) as 8 - for example. If You use fillserver - this variable will
reach 12 (in our example). At the first map (server started) the first bots added to the server are from podbot.cfg - these added by addbot commands or fillserver. If there is 4 addbot commands - first will enter the game these 4 and after if there is also a fillserver command automaticaly will be added some other bots (according to min/maxbotskill min/max_bots parameters).
So - You started a game with 8 bots. One player is connected - one bot is automaticaly kicked. Player is disconnected - bot is automaticaly added. This is checked every frame - if still keep_bots_players is the same like number of bots+players.
If You decide manualy add some bot (from podbotmenu or by pb addbot from console) - bot will be added according to this what You specified (if You type pb addbot 100 2 2 3 "KWo" - just exactly this bot will be added - not some bot automaticaly). In this case keep_bots_players variable will be automaticaly incremented by 1. If You decide to kick manulay some bot - bot will be kicked (if from podbotmenu - some from selected team, if from console - exactly this You selected). In this case keep_bots_players variable will be automaticaly decremented by 1. If You decide to use fillserver and You have actualy 10 bots+players on the server - bots will
be added automaticaly until reaching max_bots = bots+players (in our example 12). In this case keep_bots_players will be overwritten by max_bots variable (12).
The same for removebots - If You decide to use this command, bots will be removed from the server until reaching min_bots = bots+players (in our example 2). In this case keep_bots_player variable will be overwritten by min_bots variable (2). Writing in console :
pb max_bots 6
will decrase (if is grater) the keep_bots_players variable to 6 and some bots will be probably kicked. Writing in console:
pb min_bots 7
will incrase (if is lower) the keep_bots_players variable to 7 and some bots will be probably added. This "probably" is depanding of actual situation on the server - if the number of human-players lets kick or add some bots in these both situations.
Connecting to the game more human-players than is actually calculated keep_bots_players will not affect this variable. If You have this variable as 10 and there is 12 human-players - of course You can't kick more bots.
All here can work automaticaly and there is still some control and possiblity of manual bots management.

The beta is avaiable here:
http://www.mapzap.org/files/podbot/podbotBETA.zip

JayBaen 05-07-2004 03:11

Re: Bots rejoining after a person leaves?
 
Works like a CHARM I say!

Lovely update. Exactly what the doctor (erm .. me) ordered .. :)

JB

Huntkillaz 05-07-2004 06:34

Re: Bots rejoining after a person leaves?
 
Quote:

Originally Posted by JayBaen
Works like a CHARM I say!

Lovely update. Exactly what the doctor (erm .. me) ordered .. :)

JB

i second that...:)=)

KWo 05-07-2004 12:06

Re: Bots rejoining after a person leaves?
 
Yes - sPlOrYgOn made really a good job. But I can't be myself if I don't find some bug. :P
I found one :
pb kick #number_of_bot_in_status
doesn't work yet - bot goes back (kick bot from console doesn't work; kick bot from podbotmenu is working OK). ;)

[EDIT]
I should write:
kick #number_of_bot_in_status
this doesn't work - pb kick#number_of_bot_in_status is not a podbot command
[/EDIT]


All times are GMT +2. The time now is 11:23.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.