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: PowerAdminUrt 1.4.0+ for Urban Terror!  (Read 53031 times)

Offline BlumentopfErde

  • Jr. Member
  • **
  • Posts: 12
    • Bleilust
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #90 on: August 26, 2012, 09:19:28 AM »
Lastest poweradminurt plugin (v1.6.1) from my github repo will show the exact reason for players getting a warning from the name checker.

Thanks!

Regarding the player disconnecting and reconnecting on another slort, I was not able to reproduce. What versions of B3 and the poweradminurt plugins are you using ?

We use B3 V1.8.0, but we wll shortly update to 1.8.2.
But the issue is not version specific. We also had problems with versions < 1.8.

poweradminurt is V1.5.9 (we love the balancing commands! :-) )


Offline BlumentopfErde

  • Jr. Member
  • **
  • Posts: 12
    • Bleilust
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #91 on: August 26, 2012, 09:20:59 AM »
Another topic:

I remarked that you (courgette) changed the configuration file from xml to ini. Is this a new default in B3?

Oli

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #92 on: August 26, 2012, 11:41:13 AM »
I remarked that you (courgette) changed the configuration file from xml to ini. Is this a new default in B3?

This is undecided. You can still use the xml format if you prefer.

Have a look at http://forum.bigbrotherbot.net/urban-terror-4-2/%28qa%29-progress-and-tests-on-poweradminurt-plugin/msg36370/#msg36370

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #93 on: February 21, 2013, 08:05:22 PM »
Very nice plugin, the skillbalancer is very usefull.
But I would change one thing on it : I've an urban terror Bomb server, and i often need to !bal the teams, and I have the impression that the calculation of the difference of ratio and skill resets to 0 every round, round are very quick and if i balance when the skill and ratio are reseted the balance is wrong.
So I wanted to know if it was possible to change the reset at the end of half (GAME_EXIT) instead of at each round.  :)
Website of my urt server : www.frag-urt.com/

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #94 on: February 21, 2013, 08:26:15 PM »
set your log_level down to 9 in your b3.xml and you will have details about the score/skills computed for each player when balancing.
This will give you facts to (in)validate your impression

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #95 on: February 21, 2013, 08:48:16 PM »
Oh excellent work for this skillbalancer.  ;D
Website of my urt server : www.frag-urt.com/

Offline Remasters

  • Jr. Member
  • **
  • Posts: 11
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #96 on: March 04, 2013, 01:00:50 PM »
I've just upgraded my server to urbanterror 4.2 and have everything working apart fro mthis plugin.
I followed the readme to the letter but poweradmin doesn't seem to want to load

Code: [Select]
130304 11:36:38 BOT     'Loading Plugin #12 poweradminurt [/home/urbanterror/b3/conf/plugin_poweradminurt.ini]'
130304 11:36:38 INFO    'poweradminurt is not a built-in plugin (No module named poweradminurt)'
130304 11:36:38 INFO    'trying external plugin directory : /usr/local/lib/python2.6/dist-packages/b3-1.9.0-py2.6.egg/b3/extplugi$
130304 11:36:38 ERROR   'Error loading plugin poweradminurt'
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/b3-1.9.0-py2.6.egg/b3/parser.py", line 673, in loadPlugins
    pluginModule = self.pluginImport(plugin_name, plugins[s]['path'])
  File "/usr/local/lib/python2.6/dist-packages/b3-1.9.0-py2.6.egg/b3/parser.py", line 757, in pluginImport
    fp, pathname, description = imp.find_module(name, [self.config.getpath('plugins', 'external_dir')])
ImportError: No module named poweradminurt


I have "__init__.py", "iourt41.py" and "iourt42.py" in the extplugins folder and have followed the README to the letter.

Quote from: README
Installation
------------

- copy the directory extplugins/poweradminurt/ into your b3/extplugins/ directory
- copy the files from the conf folder into the folder that contains your main b3.xml config file
- add to the plugins section of your main b3 config file::

  <plugin name="poweradminurt" config="@conf/plugin_poweradminurt.ini" />

anyhelp would be fantastic

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #97 on: March 04, 2013, 02:01:07 PM »
you need to have "__init__.py", "iourt41.py" and "iourt42.py" in the extplugins/poweradminurt/ folder, not in the extplugins folder.

Offline Remasters

  • Jr. Member
  • **
  • Posts: 11
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #98 on: March 04, 2013, 03:06:55 PM »
I followed the readme to the letter...

LIES!!!

thanks for your help and fantastic work on this plugin.

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #99 on: April 06, 2013, 04:20:05 PM »
Hi,

I've PA 1.10 and i've a problem with the Spec check function : he don't check spectators every 2 minutes (as set in the .ini file : sinterval: 2) when the server is full, he check spec sometime when he want...
Here is a copy of the b3.log at the moment he has to check spectators and he didn't check.
But it works once on 4, sometime he check :
Code: [Select]
130329 16:16:00	DEBUG	'Poweradminurt41Plugin: Checking for idle Spectators'
130329 16:16:00 VERBOSE 'Poweradminurt41Plugin: Clients online (9) < maxplayers (11), ignoring'
or
Code: [Select]
130329 16:42:00	DEBUG	'Poweradminurt41Plugin: Checking for idle Spectators'
130329 16:42:00 DEBUG 'Poweradminurt41Plugin: Dave is allowed to idle in spec.'
130329 16:42:00 DEBUG 'Poweradminurt41Plugin: Frag|Meister is allowed to idle in spec.'
130329 16:42:00 DEBUG 'Poweradminurt41Plugin: Saucisson is allowed to idle in spec.'
So spectator are not warned every 2 minutes...  :-\
How to solve this problem ?
Website of my urt server : www.frag-urt.com/

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #100 on: April 06, 2013, 05:52:21 PM »
some of the checks such as the spectator check are ignored under some conditions :
  • for 1 min after the bot start / map start
  • for 30 sec after the round start
  • for 30 sec after a player was moved to one of the team (or spec) by admin or the team balancer
  • for 30 sec after players are swapped
  • for 30 sec after teams are shuffled

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #101 on: April 06, 2013, 11:36:47 PM »
Interesting to know!
I've an Urt server in Bomb mode, most of the round have an average of 1min, so with this system 50% of the time the spectator check is ignored because he wait 30s after a round start. How to reduce these 30s after the round start ? 
Website of my urt server : www.frag-urt.com/

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #102 on: April 06, 2013, 11:55:42 PM »
it is set in the config file under the '[teambalancer]' section, option 'timedelay'.

Else you can remove that ignore delay for the speck check all together by hacking a bit through the poweradminurt plugin code :

Open file poweradminurt/iourt41.py, search for :
Code: python [Select]

#---Spectator Checking-----------------------------------------------------------------------------
    def speccheck(self):
        self.debug('Checking for idle Spectators')
        if self.isEnabled() and (
            self.console.time() > self._ignoreTill) and self._g_maxGameClients == 0 and not self._matchmode:
            clients = self.console.clients.getList()


replace with :
Code: python [Select]

#---Spectator Checking-----------------------------------------------------------------------------
    def speccheck(self):
        self.debug('Checking for idle Spectators')
        if self.isEnabled() and self._g_maxGameClients == 0 and not self._matchmode:
            clients = self.console.clients.getList()

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #103 on: April 07, 2013, 01:12:14 AM »
Ok thanks a lot for your help, is it for this same reason that regular can't bal at all and have "Team changed recently" message ?
If i remove
Code: python [Select]
and self.ignoreCheck()
in :
Code: python [Select]
    def cmd_pabalance(self, data=None, client=None, cmd=None):
        """\
        Move as few players as needed to create teams balanced by numbers AND skill.
        Locked players are not moved.
        """
        now = self.console.time()
        sinceLast = now - self._lastbal
        if client and client.maxLevel < 20 and self.ignoreCheck() and sinceLast < 60*self._minbalinterval:
            client.message('Teams changed recently, please wait a while')
            return None
        self._balancing = True

regular will be able to !pabalance teams ?
Website of my urt server : www.frag-urt.com/

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #104 on: April 07, 2013, 01:19:23 AM »
That might be it. Let us know what you find out from your experiment

 


Rate this page +1 at Google Search