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 53069 times)

Offline fab1An

  • Newbie
  • *
  • Posts: 9
  • Keep it simple.
    • Bleilust (GER)
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #30 on: March 20, 2010, 01:22:40 AM »
Okay, we will try your current dev version. The second, more mysterious but did not appear anymore today when we reactivated the plugin. Just for the record, I put a quite verbose b3.log online, there's the recursion error logged several times. I'm not sure, if it's of any interest any more, though.

http://dl.dropbox.com/u/171892/b3.log.1.zip


Addition:
Tried the dev version of the plugin. No more recursion error messages in logfile. Life is great again. Thank you!
« Last Edit: March 20, 2010, 02:12:28 AM by fab1An »
--
Signatures are profoundly overrated.

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #31 on: April 12, 2010, 01:03:53 AM »
I just got this on a fresh install of B3 v1.3 poweradminurt v1.5.1
I upgraded b3/functions.py to v1.2.2 so autodoc would work other then that its the same as my other B3 installs


Quote
100411 15:28:32   DEBUG   AdminPlugin: Command "pavote (None)" registered with cmd_pavote for level (100, 100)
100411 15:28:32   DEBUG   AdminPlugin: Command "paversion (paver)" registered with cmd_paversion for level (0, 100)
100411 15:28:32   VERBOSE   PoweradminurtPlugin: Registering events
100411 15:28:32   DEBUG   Register Event: Game Round Start: PoweradminurtPlugin
100411 15:28:32   DEBUG   Register Event: Game Exit: PoweradminurtPlugin
100411 15:28:32   DEBUG   Register Event: Client Authenticated: PoweradminurtPlugin
100411 15:28:32   DEBUG   Register Event: Client Disconnect: PoweradminurtPlugin
100411 15:28:32   DEBUG   Register Event: Client Team Change: PoweradminurtPlugin
100411 15:28:32   DEBUG   Register Event: Client Damage: PoweradminurtPlugin
100411 15:28:32   DEBUG   Register Event: Client Name Change: PoweradminurtPlugin
100411 15:28:32   VERBOSE   RCON sending (118.127.19.246:27960) g_allowvote
100411 15:28:33   DEBUG   Get cvar g_allowvote = ["g_allowvote" is:"0^7" default:"1^7"]
100411 15:28:33   VERBOSE   RCON sending (118.127.19.246:27960) sv_maxclients
100411 15:28:34   DEBUG   Get cvar sv_maxclients = ["sv_maxclients" is:"20^7" default:"8^7"]
100411 15:28:34   VERBOSE   RCON sending (118.127.19.246:27960) g_maxGameClients
100411 15:28:35   DEBUG   Get cvar g_maxGameClients = ["g_maxGameClients" is:"^7" default:"0^7"]
100411 15:28:35   INFO   STDOUT Error: invalid literal for int() with base 10: ''
  File "/home/wcsydney/b3/__init__.py", line 167, in start
    console.start()
  File "/home/wcsydney/b3/parser.py", line 333, in start
    self.startPlugins()
  File "/home/wcsydney/b3/parser.py", line 553, in startPlugins
    p.onStartup()
  File "/home/wcsydney/b3/plugin.py", line 148, in onStartup
    self.startup()
  File "/home/wcsydney/b3/extplugins/poweradminurt.py", line 218, in startup
    self._g_maxGameClients = self.console.getCvar('g_maxGameClients').getInt()
  File "/home/wcsydney/b3/cvar.py", line 54, in getInt
    return int(self.value)

100411 15:28:35   INFO   STDOUT

100411 15:28:35   INFO   STDOUT 223
100411 15:28:35   INFO   STDOUT

100411 15:28:35   BOT       Shutting down...
100411 15:28:35   VERBOSE   AdvPlugin: Warning: No handle func for AdvPlugin
100411 15:28:35   INFO   StatusPlugin: B3 stop/exit.. updating status
100411 15:28:35   DEBUG   StatusPlugin: Writing XML status to /home/wcsydney/status.xml
100411 15:28:35   DEBUG   XlrstatsPlugin: xlrstats.dumpEvent -- Type 2, Client None, Target None, Data
100411 15:28:35   DEBUG   PoweradminurtPlugin: poweradminurt.dumpEvent -- Type 2, Client None, Target None, Data
100411 15:28:35   VERBOSE   PunkbusterPlugin: Warning: No handle func for PunkbusterPlugin
100411 15:28:35   VERBOSE   FtpytailPlugin: Warning: No handle func for FtpytailPlugin
100411 15:28:35   INFO   PublistPlugin: Sending shutdown info to B3 master
100411 15:28:35   BOT       Shutting down database connections...

Code: [Select]
<plugins>
<plugin name="chatlogger" priority="1" config="@b3/extplugins/conf/plugin_chatlogger.xml"/>
<plugin name="chat" priority="2" config="@b3/extplugins/conf/plugin_chat.xml"/>
<!-- <plugin name="poweradminurt" priority="3" config="@b3/extplugins/conf/poweradminurt.xml"/> -->
<plugin name="censor" priority="4" config="@conf/plugin_censor.xml" />
<plugin name="spamcontrol" priority="5" config="@conf/plugin_spamcontrol.xml" />
<plugin name="admin" priority="6" config="@conf/plugin_admin.xml" />
<plugin name="tk" priority="7" config="@conf/plugin_tk.xml" />
<plugin name="stats" priority="8" config="@conf/plugin_stats.xml" />
<plugin name="pingwatch" priority="9" config="@conf/plugin_pingwatch.xml" />
<plugin name="adv" priority="10" config="@conf/plugin_adv.xml" />
<plugin name="status" priority="11" config="@conf/plugin_status.xml" />
<plugin name="welcome" priority="12" config="@conf/plugin_welcome.xml" />
<plugin name="punkbuster" priority="13" config="@conf/plugin_punkbuster.xml" />
<plugin name="xlrstats" priority="14" config="@b3/extplugins/conf/xlrstats.xml"/>
<plugin name="spree" priority="15" config="@b3/extplugins/conf/plugin_spree.xml"/>
<plugin name="headshotsurt" priority="16" config="@b3/extplugins/conf/headshots.xml"/>
<plugin name="ctime" priority="17" config="@b3/extplugins/conf/plugin_ctime.xml"/>
</plugins>

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #32 on: April 12, 2010, 01:05:55 AM »
B3 tries to read your server cvar called g_maxGameClients but this cvar either is not set or is not an integer

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #33 on: April 12, 2010, 01:11:06 AM »
palm plant
Quote
set g_maxGameClients ""

thanks mang

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #34 on: April 13, 2010, 04:10:03 PM »
One other question how can I change the "speccheck" from a ban to just a kick. Granted it was kind of funny poor shad got ban, but it's a little rough punishment for a player when you need to go AFK

Code: [Select]
AO2|Shad^7^7 was temp banned for 6.0 minutes^7 ^7too many warnings: ^7spectator too

all I can come up with is :
Code: [Select]
<settings name="speccheck">
<set name="sinterval">1</set>
<set name="maxspectime">10</set>
<set name="maxplayers">16</set>
<set name="maxlevel">2</set>
</settings>
Code: [Select]
<set name="spec">/spectator</set>
Code: [Select]
<set name="spectator">1h, ^7spectator too long on full server</set>


Offline iShOxX

  • Jr. Member
  • **
  • Posts: 20
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #35 on: August 27, 2010, 08:28:51 PM »
Hye guys today i installed bot and urt latest version.I tried poweradminurt but i have a problem.
<plugin name="admin" config="@conf/plugin_admin.xml"/>
    <plugin name="censor" config="@conf/plugin_censor.xml"/>
    <plugin name="spamcontrol" config="@conf/plugin_spamcontrol.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"/>
Thats my plugin list.When i have not poweradminurt in my plugin list the b3 working fine but when i put it :
<plugin name="poweradminurtr" config="@conf/poweradminurt.xml"/>
It says at end : Press the [ENTER] key.When i press it its closing.
Thats my b3.log:http://www.text-upload.com/read.php?id=906&c=4512662

Offline sgt

  • B3 Contrib/Support
  • Full Member
  • *
  • Posts: 82
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #36 on: August 27, 2010, 08:34:14 PM »
Hye guys today i installed bot and urt latest version.I tried poweradminurt but i have a problem.
<plugin name="admin" config="@conf/plugin_admin.xml"/>
    <plugin name="censor" config="@conf/plugin_censor.xml"/>
    <plugin name="spamcontrol" config="@conf/plugin_spamcontrol.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"/>
Thats my plugin list.When i have not poweradminurt in my plugin list the b3 working fine but when i put it :
<plugin name="poweradminurtr" config="@conf/poweradminurt.xml"/>
It says at end : Press the [ENTER] key.When i press it its closing.
Thats my b3.log:http://www.text-upload.com/read.php?id=906&c=4512662

Quote
100828 21:20:57 CRITICAL Error loading plugin: No module named poweradminurt
Traceback (most recent call last):
File "b3\parser.pyo", line 497, in loadPlugins
File "b3\parser.pyo", line 562, in pluginImport
ImportError: No module named poweradminurt

If you copied poweradminurt to extplugins folder, b3 config file should be:

Code: [Select]
<plugin name="poweradminurt" config="@b3/extplugins/conf/poweradminurt.xml"/>

Offline Maks

  • Full Member
  • ***
  • Posts: 60
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #37 on: August 27, 2010, 08:35:51 PM »
poweradmin should be on the extplugins... well guess you had the answer a couple of seconds before... :D

« Last Edit: August 27, 2010, 08:37:24 PM by Maks »

Offline iShOxX

  • Jr. Member
  • **
  • Posts: 20
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #38 on: August 27, 2010, 08:45:38 PM »
2 answers in 30 seconds :P.Thanks guys it worked.

Offline SvaRoX

  • Jr. Member
  • **
  • Posts: 10
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #39 on: August 27, 2010, 09:50:51 PM »
There is a FTP password on your b3.log link...

Offline BlackMamba

  • Full Member
  • ***
  • Posts: 55
    • BlackMamba's Blog
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #40 on: September 20, 2010, 08:32:53 PM »
I'm using the current git version 1.3.4b of the bot. When I call mute without time specification I get the following error:
Code: [Select]
ERROR   handler AdminPlugin could not handle event Say: TypeErro
r: expected string or buffer [('/home/urt/b3bot/b3/parser.py', 815, 'handleEvent
s', 'hfunc.parseEvent(event)'), ('/home/urt/b3bot/b3/plugin.py', 157, 'parseEven
t', 'self.onEvent(event)'), ('/home/urt/b3bot/b3/plugin.py', 175, 'onEvent', 'se
lf.handle(event)'), ('/home/urt/b3bot/b3/plugins/admin.py', 206, 'handle', 'self
.OnSay(event)'), ('/home/urt/b3bot/b3/plugins/admin.py', 346, 'OnSay', 'results
= command.execute(data, event.client)'), ('/home/urt/b3bot/b3/plugins/admin.py',
 1941, 'execute', 'self.func(data, client, copy.copy(self))'), ('/home/urt/b3bot
/b3/extplugins/poweradminurt.py', 920, 'cmd_pamute', "if re.match('^([0-9]+)\\s*
$', input[1]):"), ('/usr/lib/python2.5/re.py', 137, 'match', 'return _compile(pa
ttern, flags).match(string)')]

I changed line 919 from
Code: [Select]
if re.match('^([0-9]+)\s*$', input[1]):
to
Code: [Select]
if input[1] is not None and re.match('^([0-9]+)\s*$', input[1]):
Now it works fine (input[1] is not initialized if the time option is not set). I don't know if somebody else has the same problem.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #41 on: September 20, 2010, 08:40:01 PM »
thanks for the patch. Weird thing is that I did fixed !paslap and !panuke early this morning that were suffering from a similar issue.

See my github fork for this plugin : http://github.com/courgette/b3-plugin-poweradminurt

Offline BlackMamba

  • Full Member
  • ***
  • Posts: 55
    • BlackMamba's Blog
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #42 on: September 25, 2010, 04:34:24 PM »
Same bug for !slap

Line 956
Code: [Select]
if len(input[1]):
should be
Code: [Select]
if input[1] is not None:


Offline BlackMamba

  • Full Member
  • ***
  • Posts: 55
    • BlackMamba's Blog
Re: PowerAdminUrt 1.4.0+ for Urban Terror!
« Reply #44 on: September 25, 2010, 05:58:59 PM »
Oops, sry, didn't checked the current version

 


Rate this page +1 at Google Search

anything