Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!

Author Topic: ETPro !iamgod not working  (Read 1295 times)

Offline Crytiqal

  • Newbie
  • *
  • Posts: 9
    • Team-Aero
ETPro !iamgod not working
« on: February 13, 2015, 10:39:02 PM »
When starting B3 on ETPro and joining the server, I can see the startup message but typing !iamgod doesn't work.
The logfile shows this:
Code: [Select]
...
150213 21:58:39 DEBUG 'AdminPlugin: 0 superadmins found in database'
150213 21:58:39 VERBOSE 'AdminPlugin: No SuperAdmins found, enabling !iamgod'
150213 21:58:39 DEBUG 'AdminPlugin: Command "iamgod (None)" registered with cmd_iamgod for level (0, 100)'
...
150213 21:58:44 CONSOLE '21:58.44 say: <TA Crytiqal.Aero: !iamgod'
150213 21:58:44 VERBOSE 'Queueing event Say !iamgod'
150213 21:58:44 VERBOSE 'Parsing Event: Say: AdminPlugin'
150213 21:58:44 DEBUG 'AdminPlugin: OnSay handle 5:"!iamgod"'
150213 21:58:44 DEBUG 'AdminPlugin: Handle command !iamgod'
150213 21:58:44 ERROR "handler AdminPlugin could not handle event Say: AttributeError: 'NoneType' object has no attribute 'authed' [('D:\\\\python27\\\\lib\\\\site-packages\\\\b3-1.9.2-py2.7.egg\\\\b3\\\\parser.py', 1055, 'handleEvents', 'hfunc.parseEvent(event)'), ('D:\\\\python27\\\\lib\\\\site-packages\\\\b3-1.9.2-py2.7.egg\\\\b3\\\\plugin.py', 158, 'parseEvent', 'self.onEvent(event)'), ('D:\\\\python27\\\\lib\\\\site-packages\\\\b3-1.9.2-py2.7.egg\\\\b3\\\\plugin.py', 176, 'onEvent', 'self.handle(event)'), ('D:\\\\python27\\\\lib\\\\site-packages\\\\b3-1.9.2-py2.7.egg\\\\b3\\\\plugins\\\\admin.py', 296, 'handle', 'self.OnSay(event)'), ('D:\\\\python27\\\\lib\\\\site-packages\\\\b3-1.9.2-py2.7.egg\\\\b3\\\\plugins\\\\admin.py', 423, 'OnSay', 'elif not event.client.authed and command.level > 0:')]"
...

This is my b3_etpro.xml:
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<!--Created by BigBrotherBot Config File Generator at http://config.bigbrotherbot.net (27 Dec 2012 - Thu 14:25:14 CET)-->
<configuration>
  <settings name="b3">
    <!--Name of the bot.-->
    <set name="bot_name">b3</set>
    <!--Ingame messages are prefixed with this code, you can use colorcodes.-->
    <set name="bot_prefix">^0[^2B3^0]^7:</set>
    <!--You can arrange the time format as specified in python's time directives.-->
    <set name="time_format">%I:%M%p %Z %m/%d/%y</set>
    <!--Set your server's timezone so all timebased lookups will show the proper time.-->
    <set name="time_zone">CET</set>
    <!--The amount of logging you want in your b3.log file. Lower numbers log more information.-->
    <set name="log_level">9</set>
    <!--Name and path of the logfile the bot will generate.<br/>@conf : the folder containing this config file-->
    <set name="logfile">@conf/logs/b3_et_propub_01.log</set>
    <!--Your game parser.-->
    <set name="parser">etpro</set>
    <!--Your database info: [mysql]://[db-user]:[db-password]@[db-server[:port]]/[db-name]-->
    <set name="database">mysql://changeme:[email protected]/changeme</set>
  </settings>
  <settings name="server">
    <!--Enter your game server's public IP.-->
    <set name="public_ip">88.159.160.153</set>
    <!--Enter your game server's rcon (admin) port.-->
    <set name="port">27962</set>
    <!--Enter your game server's rcon IP.-->
    <set name="rcon_ip">127.0.0.1</set>
    <!--Enter your rcon password.-->
    <set name="rcon_password">changeme</set>
    <!--Enter your game log URL.-->
    <set name="game_log">G:\webservers\htdocs\server\data\wolfet\server_propub_#01\etpro\server.log</set>
    <!--Delay between each log reading. Set a higher value to consume less disk ressources or bandwidth if you remotely connect (ftp or http remote log access)-->
    <set name="delay">0.33</set>
    <!--Number of lines to process per second. Set a lower value to consume less CPU ressources-->
    <set name="lines_per_second">50</set>
    <!--Select on if you use Punkbuster, otherwise select off.-->
    <set name="punkbuster">off</set>
  </settings>
  <settings name="autodoc">
    <!--Select autodoc file type you want to use.-->
    <set name="type">html</set>
    <!--If you want to exclude commands reserved for higher levels, you may enter a lower value here.-->
    <set name="maxlevel">100</set>
    <!--Select the location where you want to generate your command documentation file.-->
    <set name="destination">@conf/html/etpro/27962/b3_doc.html</set>
  </settings>
  <settings name="update">
    <!--B3 checks if a new version is available at startup. Choose here what channel you want to check against.-->
    <set name="channel">stable</set>
  </settings>
  <settings name="messages">
    <!--The message that will be displayed when a player is kicked by a mod/admin.-->
    <set name="kicked_by">$clientname^7 was kicked by $adminname^7 $reason</set>
    <!--The message that will be displayed when a player is kicked by B3.-->
    <set name="kicked">$clientname^7 was kicked $reason</set>
    <!--The message that will be displayed when a player is banned by a mod/admin.-->
    <set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
    <!--The message that will be displayed when a player is kicked by a B3.-->
    <set name="banned">$clientname^7 was banned $reason</set>
    <!--The message that will be displayed when a player is temp banned by a mod/admin.-->
    <set name="temp_banned_by">$clientname^7 was temp banned by $adminname^7 for $banduration^7 $reason</set>
    <!--The message that will be displayed when a player is temp banned by B3.-->
    <set name="temp_banned">$clientname^7 was temp banned for $banduration^7 $reason</set>
    <!--The message that will be displayed when a player is unbanned by a mod/admin.-->
    <set name="unbanned_by">$clientname^7 was un-banned by $adminname^7 $reason</set>
    <!--The message that will be displayed when a player is unbanned by B3-->
    <set name="unbanned">$clientname^7 was un-banned $reason</set>
  </settings>
  <settings name="plugins">
    <!--Enter here the path to the config folder for your external plugins.-->
    <set name="external_dir">@b3/extplugins</set>
  </settings>
  <plugins>
    <!--This plugin provides main B3 functionalities.-->
    <plugin name="admin" config="@conf/plugin_admin.xml"/>
    <!--Displays round based stats-->
    <plugin name="stats" config="@conf/plugin_stats.xml"/>
    <!--Provides Punkbuster features if enabled in server config.-->
    <plugin name="punkbuster" config="@conf/plugin_punkbuster.xml"/>
    <!--Records all player stats in your database.-->
    <plugin name="xlrstats" config="@b3/extplugins/conf/xlrstats.xml"></plugin>
    <!--Displays spawn stats-->
    <plugin name="spawnstats" config="@b3/extplugins/conf/spawnstats.xml"/>
  </plugins>
</configuration>

Please help?

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2528
Re: ETPro !iamgod not working
« Reply #1 on: February 14, 2015, 12:04:30 AM »
Please post the full b3 log, masking any passwords first.

Offline Crytiqal

  • Newbie
  • *
  • Posts: 9
    • Team-Aero
Re: ETPro !iamgod not working
« Reply #2 on: February 14, 2015, 08:28:55 PM »
I think the problem was that I was connected to the server before B3 initialized and therefor didn't "see" me and couldn't auth me.

I restarted the server and it works, although I did have to allow "b_privatemessages 2" in the server config as the console messages are pushed via pm. (Maybe you could add a note somewhere in the documentation for that and how to check if the server has it enabled).

Thank you for your time!

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: ETPro !iamgod not working
« Reply #3 on: February 14, 2015, 11:41:42 PM »
thank you for the tip about b_privatemessages. I updated B3 to show that tip in the b3.log file right after B3 starts and to also query the b_privatemessages current value. Could you give this a try and report here if it goes well? This change is available in B3 daily build 323. If that build is broken you can still go back to daily build 320.

Offline Crytiqal

  • Newbie
  • *
  • Posts: 9
    • Team-Aero
Re: ETPro !iamgod not working
« Reply #4 on: February 16, 2015, 12:44:50 AM »
I will try tomorrow :)
Thank you for the update.

PS: Is it possible to subscribe to a forum topic so that I can get notification emails when a new reply is made?

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 984
    • GitHub
Re: ETPro !iamgod not working
« Reply #5 on: February 16, 2015, 12:55:57 AM »

Offline Crytiqal

  • Newbie
  • *
  • Posts: 9
    • Team-Aero
Re: ETPro !iamgod not working
« Reply #6 on: February 16, 2015, 01:58:28 PM »
So I downloaded the b3-1.10.0dev.daily323-20150214.zip, extracted it and have my startup .bat script as follows:

timeout 10
D:\python27\python ./b3_run-script.py -c D:\python27\Lib\site-packages\b3-1.10.0dev.daily323-20150214\b3\conf\b3_et_propub_01.xml
pause

Do I need to use pyhton2.7 easy_install and use ez_setup.py ?
Because when I just point to this folder it doesn't change anything (log still shows im running 1.92).

 


Rate this page +1 at Google Search