In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGeneral Usage Support (Moderator: MordyT)register does not work
Pages: [1]   Go Down
  Print  
Author Topic: register does not work  (Read 1020 times) Bookmark and Share
Jr. Member
**
Posts: 40
Offline Offline
« on: January 10, 2010, 06:45:39 AM »

Hey guys,

I have update B3 to 1.2.1 since that it seem that !register does not work. Becouse I use still the same config but when I (or other users) type !register it comes nothing back from the console.


b3.xml
Code:
<configuration>
  <settings name="b3">
    <!-- parser defines the game: cod/cod2/cod4/cod5/iourt41/etpro/wop/smg -->
    <set name="parser">cod2</set>
    <set name="database">mysql://b3:****@localhost/b3</set>
    <set name="bot_name"> </set>
    <set name="bot_prefix"> </set>
    <set name="time_format">%I:%M%p %Z %d/%m/%y</set>
    <set name="time_zone">CET</set>
    <!-- 9 = verbose, 10 = debug, 21 = bot, 22 = console -->
    <set name="log_level">9</set>
    <set name="logfile">b3.log</set>
  </settings>
  <settings name="server">
    <set name="rcon_password">*****</set>
    <set name="port">28941</set>
    <set name="game_log">ftp://****:****@127.0.0.1/.callofduty2/main/games_mp.log</set>
    <set name="public_ip">127.0.0.1</set>
    <set name="rcon_ip">127.0.0.1</set>
    <set name="punkbuster">off</set>
  </settings>
  <settings name="messages">
    <set name="kicked_by">%s^7 was kicked by %s^7 %s</set>
    <set name="kicked">%s^7 was kicked %s</set>
    <set name="banned_by">%s^7 was banned by %s^7 %s</set>
    <set name="banned">%s^7 was banned %s</set>
    <set name="temp_banned_by">%s^7 was temp banned by %s^7 for %s^7 %s</set>
    <set name="temp_banned">%s^7 was temp banned for %s^7 %s</set>
    <set name="unbanned_by">%s^7 was un-banned by %s^7 %s</set>
    <set name="unbanned">%s^7 was un-banned %s</set>
  </settings>
  <settings name="plugins">
    <set name="external_dir">@b3/extplugins</set>
  </settings>
  <plugins>
    <plugin name="censor" priority="1" config="@b3/conf/plugin_censor.xml"/>
    <plugin name="admin" priority="2" config="@b3/conf/plugin_admin.xml"/>
    <plugin name="poweradmin" priority="3" config="@b3/conf/poweradmin.xml"/>
    <plugin name="pingwatch" priority="4" config="@b3/conf/plugin_pingwatch.xml"/>
    <plugin name="status" priority="5" config="@b3/conf/plugin_status.xml"/>
    <plugin name="welcome" priority="6" config="@b3/conf/plugin_welcome.xml"/>
    <plugin name="publist" priority="7" config="@b3/conf/plugin_publist.xml"/>
    <plugin name="xlrstats" priority="8" config="@b3/conf/xlrstats.xml"/>
    <plugin name="voting" priority="9" config="@b3/conf/voting.xml" />
    <plugin name="spamcontrol" priority="10" config="@b3/conf/plugin_spamcontrol.xml"/>
    <plugin name="ctime" priority="11" config="@b3/conf/plugin_ctime.xml"/>
    <plugin name="stats" priority="12" config="@b3/conf/plugin_stats.xml"/>
    <plugin name="adv" priority="13" config="@b3/conf/plugin_adv.xml"/>

<!--
  This is a non-standard plugin, and quite resource heavy. Please take a look in the
  B3 forums (look for XLR Extensions) for more information before enabling this.
  Extra database tables are necessary.
    <plugin name="xlrstats" priority="13" config="@b3/extplugins/conf/xlrstats.xml"/>
-->
  </plugins>
</configuration>

plugin_admin.xml
Code:
...
<set name="help-h">0</set>
<set name="register">0</set>
<set name="rules-r">0</set>
...


logfile
Code:
100110 15:30:37 CONSOLE 913:47 say;252233;18;Admin;!register
100110 15:30:37 VERBOSE Queueing event Say !register
100110 15:30:37 VERBOSE Parsing Event: Say: CensorPlugin
100110 15:30:37 VERBOSE Parsing Event: Say: AdminPlugin
100110 15:30:37 DEBUG AdminPlugin: OnSay handle 5:"!register"
100110 15:30:37 DEBUG AdminPlugin: Handle command !register
100110 15:30:37 DEBUG SELECT * FROM groups WHERE `keyword` = "user" LIMIT 1
100110 15:30:37 VERBOSE Parsing Event: Say: SpamcontrolPlugin
100110 15:30:41 CONSOLE 913:52
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: January 10, 2010, 09:08:20 AM »

Send an other b3.log showing :
you connecting to the gameserver
you being authed with punkbuster (if you have it enabled)
and showing you typing !register
Logged

Jr. Member
**
Posts: 40
Offline Offline
« Reply #2 on: January 13, 2010, 08:10:10 AM »

Hello,

I get found the error. I have change the groups in B3, so I need to fix it in the admin.py too.

replace this:
Code:
711    def cmd_register(self, data, client, cmd=None):
712        """\
713        - register youself as a basic user
714        """
715        try:
716            group = clients.Group(keyword='user')


with this:
Code:
711    def cmd_register(self, data, client, cmd=None):
712        """\
713        - register youself as a basic user
714        """
715        try:
716            group = clients.Group(keyword='sol')       // "sol" is my new group
« Last Edit: January 13, 2010, 08:30:45 AM by Unknow Soldier » Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal