thankyou
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 31350 times)

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #15 on: October 04, 2011, 12:12:34 PM »
Are you sure you have actived Bot on your server? En reload the map to realy enabled the bots ?

Set bot_enable "1" is to put in autoexec.cfg instead of server.cfg.

And be carefull of the poweradmins config...
« Last Edit: October 04, 2011, 12:16:29 PM by Beber888 »
Python, Php, UrT SourceCode

Offline bagu

  • Newbie
  • *
  • Posts: 9
Re: Bots Plugin for Urban Terror
« Reply #16 on: October 12, 2011, 04:47:59 PM »
Is there a way to limit addbot on only some maps ?
Like in poweradminurt :
<set name="bot_maps">ut4_abbey ut4_algiers ut4_austria ut4_riyadh ut4_uptown ut4_dressingroom ut4_mandolin ut4_prague ut4_toxic</set>

Because when i try to load ut4_terrorism5 for example, your plugin try constantly to add bots and it crash the server.

Thanks in advance.

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #17 on: October 12, 2011, 10:56:57 PM »
If you want, I have already modified my version of the plugin.
I've not released it because I don't know if interrested someone.
You have 2 cyclemap files: One for map with bots and one for map without bots.
- If you have bots one your server, you works with mapcycle.txt (with no bugging maps).
- If you have no bots and more than 8 "reals" players you disactive bots and execute mapcycle_sansbots.txt (with more maps).
- If you have less than 2 "reals" players you enabled bots and you active mapcycle.txt

But I think that adding custom map in the q3ut4 directory of you server may crash you server.
You can try and add this maps in mapcycle_sansbots.txt.

If you want this version of the plugins go on my tfp server ftp://beber888.myftp.org/
Python, Php, UrT SourceCode

Offline bagu

  • Newbie
  • *
  • Posts: 9
Re: Bots Plugin for Urban Terror
« Reply #18 on: October 13, 2011, 06:02:41 PM »
Great ! I will test this as soon as possible.

Thanks a lot.

EDIT : at this time, i can't access to your ftp ;)

EDIT2 : seem to work for the moment  :P

Last EDIT : work really well
« Last Edit: October 17, 2011, 08:27:04 PM by bagu »

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #19 on: October 21, 2011, 03:32:31 PM »
Fine !!
Python, Php, UrT SourceCode

Offline beepbeep

  • Full Member
  • ***
  • Posts: 71
Re: Bots Plugin for Urban Terror
« Reply #20 on: December 09, 2011, 10:59:04 PM »
i itried to rewrite this plugin for up to 20 bots but failed. would you be so nice to do this for me? a custom plugin?

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #21 on: December 12, 2011, 11:49:19 AM »
I've not many time but I will try it for you. I will modify this post when the plugin will be released.

I've modified the plugins for 20 bots. Test It and reports any problems...

This plugin need 2 mapcycle file (see below)

ftp://beber888.myftp.org/Bots_plugins/Bots_plugin_V1.3.1.zip
« Last Edit: December 12, 2011, 05:12:04 PM by Beber888 »
Python, Php, UrT SourceCode

Offline kidx

  • Full Member
  • ***
  • Posts: 60
Re: Bots Plugin for Urban Terror
« Reply #22 on: February 05, 2012, 03:33:52 AM »
how do i get bots to stay in my server with out ti crashing lol.

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #23 on: February 05, 2012, 12:41:26 PM »
What kind of server, wich games ?

In Urban terror, you have to have a map cycle very short, with only this maps :

ut4_abbey
ut4_algiers
ut4_austria
ut4_riyadh
ut4_prague

Python, Php, UrT SourceCode

Offline {AuGs}Reaper

  • Jr. Member
  • **
  • Posts: 11
Re: Bots Plugin for Urban Terror
« Reply #24 on: March 23, 2012, 03:26:28 AM »
If you can help me, that would be great. I did everything and after about 10 to 15 seconds, my server crashes. This is my B3 Log

120322 21:24:11   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120322 21:24:11   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120322 21:24:11   ERROR   "RCON: too much tries. Abording ('addbot python 3 blue 110 BOT5')"
120322 21:24:11   DEBUG   'RCON: Did not send any data'
120322 21:24:11   DEBUG   'Data was a string'
120322 21:24:11   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120322 21:24:11   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120322 21:24:12   ERROR   "RCON: too much tries. Abording ('addbot python 3 red 110 BOT6')"
120322 21:24:12   DEBUG   'RCON: Did not send any data'
120322 21:24:12   DEBUG   'Data was a string'
120322 21:24:12   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120322 21:24:12   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120322 21:24:12   ERROR   "RCON: too much tries. Abording ('addbot python 3 blue 110 BOT7')"
120322 21:24:12   DEBUG   'RCON: Did not send any data'
120322 21:24:12   DEBUG   'Data was a string'
120322 21:24:12   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120322 21:24:12   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120322 21:24:12   ERROR   "RCON: too much tries. Abording ('addbot python 3 red 110 BOT8')"
120322 21:24:12   DEBUG   'RCON: Did not send any data'
« Last Edit: March 23, 2012, 04:49:15 AM by {AuGs}Reaper »

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #25 on: March 23, 2012, 09:53:45 AM »
Ho ! Can you tell me version of B3, Bots plugins and aperating system.
Did you try with bots.xml as default?
Did you active bots on you server.cfg (watch console of the server if bots are enabled, also try to reload map after neabled bots).
Try without pk3 in your q3ut4 folder of your server exept the pk3 as defaut in UrT4.1.
Remove the pk3 about 300Mo of UrT 4.1.1
Python, Php, UrT SourceCode

Offline {AuGs}Reaper

  • Jr. Member
  • **
  • Posts: 11
Re: Bots Plugin for Urban Terror
« Reply #26 on: March 24, 2012, 02:01:47 AM »
Can you tell me version of B3, Bots plugins
Everything is brand new

operating system.
XP

Did you try with bots.xml as default?
Yes

Did you active bots on you server.cfg (watch console of the server if bots are enabled, also try to reload map after neabled bots).
Yes

Try without pk3 in your q3ut4 folder of your server exept the pk3 as defaut in UrT4.1.
Remove the pk3 about 300Mo of UrT 4.1.1

I did and the bots run now!! BUT! The server runs for about 5 minutes with the bot and then the server crashed.


This is my up-to-date B3 Log
120323 19:52:33   ERROR   "handler TkPlugin could not handle event Game Exit: AttributeError: 'NoneType' object has no attribute 'isvar' [('b3\\\\parser.pyo', 1002, 'handleEvents', None), ('b3\\\\plugin.pyo', 158, 'parseEvent', None), ('b3\\\\plugins\\\\tk.pyo', 311, 'onEvent', None), ('b3\\\\plugins\\\\tk.pyo', 442, 'getClientTkInfo', None)]"
120323 19:52:33   DEBUG   'PoweradminurtPlugin: Disabling the bots'
120323 19:52:33   DEBUG   'Data was a string'
120323 19:52:33   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
120323 19:52:33   CONSOLE   '------------------------------------------------------------'
120323 19:52:33   CONSOLE   'AAS shutdown.'
120323 19:52:33   WARNING   "RCON: ERROR reading: error(10054, 'An existing connection was forcibly closed by the remote host')"
Ho ! Can you tell me version of B3, Bots plugins and aperating system.
Did you try with bots.xml as default?
Did you active bots on you server.cfg (watch console of the server if bots are enabled, also try to reload map after neabled bots).
Try without pk3 in your q3ut4 folder of your server exept the pk3 as defaut in UrT4.1.
Remove the pk3 about 300Mo of UrT 4.1.1

This is a piece of my server.cfg file
//*** Other Settings ***
set g_armbands "1" //determines the behaviour of the armbandcolor (also shows on playerlist and minimap). 0=player's choice, set with cg_rgb 1=Based on teamcolor (red or blue) 2=assigned by server (random)
set sv_maxping "300" //max ping a client may have when connecting to the server
set sv_minping "0" //min ping a client may have when connecting to the server
set g_allowchat "2" //0= no chatting at all 1=teamchats only 2=all chats
set g_log "games_tdm.log" //name of the logfile. Empty ("") means no log. Log will be in the q3ut4 folder in windows. Linux uses ~/.q3a/q3ut4
set g_logsync "2" //enables/disables direct writing to the log file instead of buffered
set g_loghits "1" //log every single hit. Creates very big logs
set g_logroll "0" //create new log every now and then, instead of always using the same one
set logfile "1" //additional logging in seperate qconsole.log file. 1=buffered, 2=synced
set g_cahtime "60" //Interval in seconds of awarding points for flags in Capture and Hold gamemode

//*** Map Rotation ***
seta g_mapcycle "mapcycle.txt" //name of mapcycle-file, located in q3ut4 directory
map ut4_abbey //what map to start with

//*** Anti Cheat ***
//pb_sv_enable //to enable PB, remove the // at the beginning of this line (only works when using Quake 3 Arena, not ioUrbanTerror)
set sv_battleye "0" //Keep this disabled, BattlEye is dead

set bot_enable "1"
reload

My Power admin file
<!-- BOTSUPPORT IS VERY UNSTABLE! IT MAY CRASH YOUR SERVER PLENTY! -->
    <settings name="botsupport">
        <!-- enable bots for the server -->
        <set name="bot_enable">True</set>
        <!-- skill level of the bots 1-5 -->
        <set name="bot_skill">4</set>
        <!-- will add bots untill this number of players is reached -->
        <set name="bot_minplayers">0</set>
        <!-- maps that have proven to be stable to support bots, be very carefull! -->
        <set name="bot_maps">ut4_abbey ut4_algiers ut4_austria ut4_riyadh ut4_uptown</set>
    </settings>


And a copy of my b3.xml file
<plugins>
    <plugin name="censor" config="@conf/plugin_censor.xml"/>
    <plugin name="spamcontrol" config="@conf/plugin_spamcontrol.xml"/>
    <plugin name="admin" config="@conf/plugin_admin.xml"/>
    <plugin name="tk" config="@conf/plugin_tk.xml"/>
    <plugin name="stats" config="@conf/plugin_stats.xml"/>
    <plugin name="pingwatch" config="@conf/plugin_pingwatch.xml"/>
    <plugin name="adv" config="@conf/plugin_adv.xml"/>
    <plugin name="status" config="@conf/plugin_status.xml"/>
    <plugin name="welcome" config="@conf/plugin_welcome.xml"/>
    <plugin name="punkbuster" config="@conf/plugin_punkbuster.xml"/>
    <plugin name="xlrstats" config="@b3/extplugins/conf/xlrstats.xml"/>
   <plugin name="bots" config="@b3/extplugins/conf/bots.xml"/>
   <plugin name="poweradminurt" priority="13" config="@b3/extplugins/conf/poweradminurt.xml"/>
  </plugins>
« Last Edit: March 24, 2012, 02:03:30 AM by {AuGs}Reaper »

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #27 on: March 25, 2012, 03:04:53 AM »
In server cfg try to set logsync 1.
bot enabled is set in autoexec.cfp (in q3ut4) and not set in server cfg. (set bot_enable "1")
I use UrT on windows XP SP3 with B3 V1.7.1

maps cysle with bots is :
Quote
ut4_abbey
ut4_algiers
ut4_austria
ut4_riyadh
ut4_prague

in poweadmin my config is :
Quote
   <settings name="botsupport">
      <!-- enable bots for the server -->
      <set name="bot_enable">True</set>
      <!-- skill level of the bots 1-5 -->
      <set name="bot_skill">4</set>
      <!-- will add bots untill this number of players is reached -->
      <set name="bot_minplayers">0</set>
      <!-- maps that have proven to be stable to support bots, be very carefull! -->
      <set name="bot_maps">ut4_abbey ut4_algiers ut4_austria ut4_riyadh ut4_uptown</set>
   </settings>

This work with all version of bots plugins.

Try with this config and tell me the result. (And no custon map and UrT v4.1.1 in q3ut4 of your server)
Python, Php, UrT SourceCode

Offline {AuGs}Reaper

  • Jr. Member
  • **
  • Posts: 11
Re: Bots Plugin for Urban Terror
« Reply #28 on: March 25, 2012, 04:30:23 AM »
I changed all that and for the first time, the server cycled the map and got half way through the second map and it crashed.

Offline Beber888

  • Moderator
  • Sr. Member
  • *
  • Posts: 179
Re: Bots Plugin for Urban Terror
« Reply #29 on: March 25, 2012, 09:31:59 AM »
I don't understand what is the problem I have the same config and have no problem with my server....
Python, Php, UrT SourceCode

 


Rate this page +1 at Google Search

anything