Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Bots Plugin for Urban Terror  (Read 32436 times)

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Bots Plugin for Urban Terror
« on: November 06, 2010, 06:39:02 PM »
I created a plugin to control the number of bot on a server.

My project starts with a realization: An empty server attracting nobody.
The plugin add/remove bots from server depending to the configuration and the number of "real" players.

I had lot of problem during my developement and tests, because B3 invents Connect/disconnect events from bots, sometimes bot eave the server without reason, loss of synchr beetween B3 and Rcon players and more...

So, now my plugin work but I've add control of the plugin, if he don't work correctly see b3.log.

In the archive I've added new bots for UrT


http://forum.bigbrotherbot.net/downloads/?sa=downfile&id=120


« Last Edit: December 12, 2011, 05:14:23 PM by Beber888 »
Python, Php, UrT SourceCode

Offline grosbedo

  • Former Dev. (senate)
  • Sr. Member
  • *****
  • Posts: 258
Re: Bots Plugin for Urban Terror
« Reply #1 on: November 07, 2010, 11:17:48 AM »
Excuse me but I can't see the purpose of this plugin. Isn't this functionnality supposed to be the same as bot_minplayers already does ?

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #2 on: November 07, 2010, 11:40:38 AM »
Yes but bot_minplayers add bot and that's all. (what are the caracteristics and name of this bots ?)

My plugin add and remove bots to have already 8 players on the server; and il there is 9 real players so there is no bot on the server.
Python, Php, UrT SourceCode

Offline Witch

  • Full Member
  • ***
  • Posts: 116
Re: Bots Plugin for Urban Terror
« Reply #3 on: November 07, 2010, 01:18:59 PM »
Yes nice idea i can tell.
but note that bots are not showed in a server player lists.
And also dont forget that bots amkes server laggy...

But with a servers who have very good and stable connection i think few bots woud not make such a lags. ;)

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #4 on: November 07, 2010, 01:56:26 PM »
bots are listen in /rcon players.
Python, Php, UrT SourceCode

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #5 on: November 23, 2010, 06:45:31 PM »
There was an error, set bot_enable "1" is to put in autoexec.cfg instead of server.cfg.
Python, Php, UrT SourceCode

Offline n9mhq

  • Newbie
  • *
  • Posts: 1
Re: Bots Plugin for Urban Terror
« Reply #6 on: January 10, 2011, 10:41:06 AM »
I tried your bot plugin and all the bots names show up on my server, but when I choose the blue team a red bot leaves not a bot on blue side. When I disconnect, the red bot that left reconnected back on the red side. I noticed when another person online joined the server and choose the blue side yet another red bot disconnected leaving only two red bots. Do you have any idea why this is happening?

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #7 on: January 10, 2011, 09:02:41 PM »
Python, Php, UrT SourceCode

Offline ShootingBlanks

  • Newbie
  • *
  • Posts: 7
Re: Bots Plugin for Urban Terror
« Reply #8 on: January 11, 2011, 04:23:35 PM »
I prefer to use this plugin over the poweradminurt or just adding bots in the server.cfg. For some reason this seams to make Urban Terror more stable than the bot_minplayers setting in poweradminurt.
My problem is that the bots seem to fade away.  I start the server and have have 4 bots, they come and go as people play and it's perfect.  But when no people join for a while, the server ends up with no people and no bots.  ??? 
I have bot_minplayers set to 0 and bots_enabled true in poweradminurt,

Thanks,
Frank.

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #9 on: January 11, 2011, 04:57:13 PM »
The reason that I add/remove bots it's that bots are here to busy the server but I don't want they are always here. I prefer 8 "real" players as instead of 4 bots/4 players.

I know there is a loose of synch beetween B3 and server with the number of players when bots are connected. (B3 don't count them allways very good). Watch the b3.log and look for debuging message of my plugin. If there is a loose of synch I stop add/remove bots while B3 and server aren't synchr.
Python, Php, UrT SourceCode

Offline ShootingBlanks

  • Newbie
  • *
  • Posts: 7
Re: Bots Plugin for Urban Terror
« Reply #10 on: January 12, 2011, 10:45:44 PM »
I agree, I would rather have human players and the idea behind bots is that there is SOMEONE to play against instead of empty server.  Most people probably have SHOW EMPTY set to NO in the master list also. 
Now it's been 5-6 hours since I left my servers running and there were 4 bots on each.  Now I just check and they are all empty (no bots, no players).  The bots have to stay in the game when there are no players. So unless I am doing something wrong, the code to remove bots has to be patched up a bit. IMHO

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #11 on: January 12, 2011, 11:11:47 PM »
Ok I understand well your problem, I'll have already seen this bug and had inprove my plugin but not diffuse them because it was not use except by me...
I have updated the download.

If you have already the problem try to send me b3.log in verbose mode.

Python, Php, UrT SourceCode

Offline beepbeep

  • Full Member
  • ***
  • Posts: 71
Re: Bots Plugin for Urban Terror
« Reply #12 on: April 16, 2011, 05:20:30 AM »
can you make a cusotm version of this for my server? i only need two bots not 8 :D and maybe in english? :D
« Last Edit: April 16, 2011, 05:57:52 AM by beepbeep »

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #13 on: April 23, 2011, 12:11:27 AM »
You can set the number of bot in the .xml. Configure the 8 bots and set only to play with 2 bots.
Python, Php, UrT SourceCode

Offline donmae

  • Newbie
  • *
  • Posts: 1
error Bots Plugin for Urban Terror
« Reply #14 on: October 02, 2011, 10:42:16 AM »
someone can help me?

Regulation a 0 joueurs (0 Bots, 0 Humains) T_T

111001 22:49:09   VERBOSE   "RCON sending (192.168.1.30:28970) 'players'"
111001 22:49:10   VERBOSE   'BotsPlugin: Regulation a 0 joueurs (0 Bots, 0 Humains)'
111001 22:49:10   VERBOSE   "RCON sending (192.168.1.30:28970) 'addbot python 3 blue 110 BOT1'"
111001 22:49:11   VERBOSE   'BotsPlugin: Ajout BOT1 suite probleme/arret de regul'
111001 22:49:11   VERBOSE   "RCON sending (192.168.1.30:28970) 'addbot python 3 red 110 BOT2'"
111001 22:49:12   VERBOSE   'BotsPlugin: Ajout BOT2 suite probleme/arret de regul'
111001 22:49:12   VERBOSE   "RCON sending (192.168.1.30:28970) 'addbot python 3 blue 110 BOT3'"
111001 22:49:12   VERBOSE   'BotsPlugin: Ajout BOT3 suite probleme/arret de regul'
111001 22:49:12   VERBOSE   "RCON sending (192.168.1.30:28970) 'addbot python 3 red 110 BOT4'"
111001 22:49:13   VERBOSE   'BotsPlugin: Ajout BOT4 suite probleme/arret de regul'
111001 22:49:13   VERBOSE   "RCON sending (192.168.1.30:28970) 'addbot python 3 blue 110 BOT5'"
111001 22:49:14   VERBOSE   'BotsPlugin: Ajout BOT5 suite probleme/arret de regul'
111001 22:49:14   VERBOSE   "RCON sending (192.168.1.30:28970) 'addbot python 3 red 110 BOT6'"
111001 22:49:15   VERBOSE   'BotsPlugin: Ajout BOT6 suite probleme/arret de regul'
111001 22:49:15   VERBOSE   "RCON sending (192.168.1.30:28970) 'addbot python 3 blue 110 BOT7'"
111001 22:49:16   VERBOSE   'BotsPlugin: Ajout BOT7 suite probleme/arret de regul'
111001 22:49:16   VERBOSE   "RCON sending (192.168.1.30:28970) 'addbot python 3 red 110 BOT8'"
111001 22:49:16   VERBOSE   'BotsPlugin: Ajout BOT8 suite probleme/arret de regul'
111001 22:49:31   VERBOSE   "RCON sending (192.168.1.30:28970) 'players'"
111001 22:49:32   VERBOSE   'BotsPlugin: Regulation a 0 joueurs (0 Bots, 0 Humains)'

 


Rate this page +1 at Google Search