2
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 54356 times)

Offline ricard0

  • Newbie
  • *
  • Posts: 3
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #120 on: January 04, 2014, 01:47:18 AM »
The files are here:
/home/secretlegion/BigBrotherBot/Bomb/b3/conf/plugin_poweradminurt.ini
/home/secretlegion/BigBrotherBot/Bomb/b3/extplugins/__init__.py
/home/secretlegion/BigBrotherBot/Bomb/b3/extplugins/iourt41.py
/home/secretlegion/BigBrotherBot/Bomb/b3/extplugins/iourt42.py

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

B3 v1.9.1

I cant RUN IT!!! HELP MEEE PLEASE!!!

http://pastebin.com/2qtREsDf
« Last Edit: January 04, 2014, 01:51:02 AM by ricard0 »

Offline ph03n1x

  • Sr. Member
  • ****
  • Posts: 296
    • Lovers and Haters Urban Terror
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #121 on: January 04, 2014, 10:38:31 AM »
Looool! I had same problem when I first installed that plugin.
It's a simple problem: you supposed to put the folder in the /extplugins folder, not the files.

the files are supposed to be here:
/home/secretlegion/BigBrotherBot/Bomb/b3/conf/plugin_poweradminurt.ini
/home/secretlegion/BigBrotherBot/Bomb/b3/extplugins/poweradminurt/__init__.py
/home/secretlegion/BigBrotherBot/Bomb/b3/extplugins/poweradminurt/iourt41.py
/home/secretlegion/BigBrotherBot/Bomb/b3/extplugins/poweradminurt/iourt42.py


Good luck!
:)
« Last Edit: January 04, 2014, 10:40:43 AM by ph03n1x »

Offline Robz

  • Newbie
  • *
  • Posts: 3
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #122 on: January 06, 2014, 06:56:11 AM »
Alright so maybe someone out there knows what the heck is going on with this and how to fix it. Basicly I installed a fresh copy of B3 and everything and started to put together a configuration file for it alright? For some reason when I try to get Poweradminurt to run I get some weird messages in the logs and B3 just won't load it up.

Here is what it looks like in the logs:
140105 23:43:36 BOT     'Loading Plugin #2 poweradminurt [/home/urt/b3-1.9.1/b3/conf/plugin_paurt.xml]'
140105 23:43:36 INFO    'poweradminurt is not a built-in plugin (No module named poweradminurt)'
140105 23:43:36 INFO    'trying external plugin directory : /home/urt/b3-1.9.1/b3/extplugins'
140105 23:43:36 BOT     'Poweradminurt42Plugin: Loading config /home/urt/b3-1.9.1/b3/conf/plugin_paurt.xml for Poweradminurt$
140105 23:43:36 ERROR   'Error loading plugin poweradminurt'
Traceback (most recent call last):
  File "/home/urt/b3-1.9.1/b3/parser.py", line 674, in loadPlugins
    self._plugins[plugin_name] = getattr(pluginModule, '%sPlugin' % plugin_name.title())(self, plugin_conf)
  File "/home/urt/b3-1.9.1/b3/extplugins/poweradminurt/__init__.py", line 39, in __new__
    return Poweradminurt42Plugin(*args, **kwargs)
  File "/home/urt/b3-1.9.1/b3/extplugins/poweradminurt/iourt42.py", line 32, in __init__
    b3.plugin.Plugin.__init__(self, console, config)
  File "/home/urt/b3-1.9.1/b3/plugin.py", line 58, in __init__
    self.critical("The config file XML syntax is broken: %s" %e)
  File "/home/urt/b3-1.9.1/b3/config.py", line 307, in __str__
    return repr(self.value)
AttributeError: 'ConfigFileNotValid' object has no attribute 'value'
140105 23:43:36 BOT     'Loading Plugin #3 stats [/home/urt/b3-1.9.1/b3/conf/plugin_stats.xml]'

Do note that I renamed the configuration file and tried messing around with the extensions and stuff to see if I could get it to work. No dice so far...

Anyone know what is going on?

Offline ph03n1x

  • Sr. Member
  • ****
  • Posts: 296
    • Lovers and Haters Urban Terror
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #123 on: January 06, 2014, 07:08:40 AM »
Please give b3.xml and full b3.log (remove passwords) and if possible the poweradminurt.xml file.

That snippet doesn't really give any info on what the problem could be.

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 988
    • GitHub
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #124 on: January 06, 2014, 01:15:10 PM »
Please give b3.xml and full b3.log (remove passwords) and if possible the poweradminurt.xml file.

That snippet doesn't really give any info on what the problem could be.
It actually does: self.critical("The config file XML syntax is broken: %s" %e)

Please download the latest version of PoweradminUrT plugin from here: https://github.com/thomasleveil/b3-plugin-poweradminurt

Renaming the config file is ok, changing the extension is not a smart idea ^^

Offline Robz

  • Newbie
  • *
  • Posts: 3
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #125 on: January 06, 2014, 07:04:47 PM »
Alright thanks for the help guys, I think I got it. Very silly and stupid thing I found happened  :D
I tried to edit the file in Wordpad and turns out that the way it saves the file messes up the layout/format of the file. Edited it in Notepad and sent it back over FTP and it seems to have loaded in B3 now. I will post back here if I have any other issues. For now though thank you  ;)

Offline ph03n1x

  • Sr. Member
  • ****
  • Posts: 296
    • Lovers and Haters Urban Terror
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #126 on: January 06, 2014, 08:14:43 PM »
oops! I need to stop drinking before coming to forum...

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2560
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #127 on: January 06, 2014, 08:20:24 PM »
Alright thanks for the help guys, I think I got it. Very silly and stupid thing I found happened  :D
I tried to edit the file in Wordpad and turns out that the way it saves the file messes up the layout/format of the file. Edited it in Notepad and sent it back over FTP and it seems to have loaded in B3 now. I will post back here if I have any other issues. For now though thank you  ;)

Try Notepad ++ - it has an xml syntax checker as well.

Offline Robz

  • Newbie
  • *
  • Posts: 3
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #128 on: January 07, 2014, 01:52:39 AM »
That is one of the programs I was going to install soon actually. I have just been using tools like gedit on linux to check over the files. All seems good now with the plugin as it seems to load and work just fine.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #129 on: January 28, 2014, 09:39:27 AM »
UrT 4.2.018 users: Update the plugin to v1.17 or later to get the !gear command working again.

Offline retro78

  • Newbie
  • *
  • Posts: 4
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #130 on: March 22, 2014, 09:46:08 PM »
Hi!
at first let me say, that I love this plugin and its features....

But I run in a little problem with it....

My problem is not really supported, I know ;)

But the Bot feature is implemented in poweradminurt,
so here is my problem or my questions:

1. Is there an ability to disable bots (and kick them) just in time (by a command?)
I tried to kick allbots by rcon, but B3 adds them again.
-- I've got a server running, normally with up to 8 bots, but sometimes there are only 3 or 4 people and they want to play without bots... so a command to disable them temporally will by very fine...
can I add some lines to the py file, to get this commands??


2. there is a little problem with the bot function, I think: sometimes a humen player connects no bot is kicked and other times a human player connects and disconnects bevor entering a team, a bot is kicked and not added again...  <--- this is a little problem, I can live with that ;)

thx
retro78

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 988
    • GitHub
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #131 on: March 23, 2014, 12:28:23 AM »
I don't think this plugin has such feature. I recall (if I'm not mistaken) a plugin (Botplugin???) doing this very thing. Try to search in the plugin section: http://forum.bigbrotherbot.net/index.php?action=downloads;cat=4

 


Rate this page +1 at Google Search

anything