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!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugin Releases! (Moderator: MordyT)PowerAdmin for BFBC2
Pages: 1 [2]   Go Down
  Print  
Author Topic: PowerAdmin for BFBC2  (Read 3463 times) Bookmark and Share
Newbie
*
OS: Linux
Type: Renting Server, no B3
Gameservers: CS:S, BFBC2
Posts: 2
Offline Offline
« Reply #15 on: December 11, 2010, 06:44:10 PM »

Hello All,

I am having a hell of a time installing this plugin and could use some help.  I can start b3 fine, but when I enable the Poweradmin plugin b3 won't start.

I have the poweradmin .xml file in the /b3/extplugins/conf folder and the .py file in b3/extplugins.

This is the log that is printing out:

Code:
101211 17:47:33 BOT     Loading Plugin #8 poweradminbfbc2 [/home/admin/b3/b3/extplugins/conf/poweradminbfbc2.xml]
101211 17:47:33 INFO    Could not load built in plugin poweradminbfbc2 (No module named poweradminbfbc2)
101211 17:47:33 INFO    trying external plugin directory : /home/admin/b3/b3/extplugins
101211 17:47:33 CRITICAL        Error loading plugin: invalid syntax (poweradminbfbc2.py, line 59)
Traceback (most recent call last):
  File "/home/admin/b3/b3-1.4.1/b3/parser.py", line 535, in loadPlugins
  File "/home/admin/b3/b3-1.4.1/b3/parser.py", line 645, in pluginImport
  File "/home/admin/b3/b3/extplugins/poweradminbfbc2.py", line 59
     version='0.8' author='Courgette, SpacepiG, Bakes' import b3,
                        ^
 SyntaxError: invalid syntax



And this is my b3.xml file:

Code:
<configuration>
        <!--
  This is B3 main config file for BattleField Bad Company 2 !!!
  (the one you specify when you run b3 with the command : b3_run -c b3.xml)

  For any change made in this config file, you have to restart the bot.

  Whenever you can specify a file/directory path, the following shortucts
  can be used :
   @b3 : the folder where B3 code is installed in
   @conf : the folder containing this config file
  -->
        <settings name="b3">
                <!-- parser defines the game: cod/cod2/cod4/cod5/iourt41/etpro/wop/smg/bfbc2 -->
                <set name="parser">bfbc2</set>
                <set name="database">mysql://xx:xxxx@localhost/xx</set>
                <set name="bot_name">Rage Quit</set>
                <set name="bot_prefix">^0(^2b3^0)^7:</set>
                <set name="time_format">%I:%M%p %Z %m/%d/%y</set>
                <set name="time_zone">CST</set>
                <!-- 9 = verbose, 10 = debug, 21 = bot, 22 = console -->
                <set name="log_level">9</set>
                <set name="logfile">/home/admin/b3/b3/logs/b3.log</set>
        </settings>
        <settings name="bfbc2">
                <!-- BFBC2 specific settings
                        * max_say_line_length : how long do you want the lines to be restricted to
                        in the chat zone. (maximum length is 100)
                -->
                <set name="max_say_line_length">100</set>
        </settings>
        <settings name="server">
                <set name="public_ip">xx.xx.xx.xx</set>
                <set name="port">19567</set>
                <set name="rcon_ip">xx.xx.xx.xx</set>
                <set name="rcon_port">48888</set>
                <set name="rcon_password">xxxxx</set>
                <set name="timeout">3</set>
                <set name="punkbuster">on</set>
        </settings>
        <settings name="autodoc">
                <!-- Autodoc will generate a user documentation for all B3 commands
                 * type : can be one of : html, htmltable, xml
                 * maxlevel : if you want to exclude commands reserved for higher levels
                 * destination : can be a file or a ftp url
                 by default, a html documentation is created in your conf folder
                -->
                <set name="type">html</set>
                <set name="maxlevel">100</set>
                <set name="destination">/home/admin/xxxxxx/docs/commands.html</set>
                <!-- <set name="destination">C:\Users\b3\Desktop\test_doc.htm</set> -->
                <!-- <set name="destination">ftp://user:pass@somewhere.com/www/test_doc.htm</set> -->
        </settings>
        <settings name="messages">
                <set name="kicked_by">%s was kicked by %s %s</set>
                <set name="kicked">%s was kicked %s</set>
                <set name="banned_by">%s was banned by %s %s</set>
<set name="temp_banned_by">%s was temp banned by %s for %s %s</set>
                <set name="temp_banned">%s was temp banned for %s %s</set>
                <set name="unbanned_by">%s was un-banned by %s %s</set>
                <set name="unbanned">%s was un-banned %s</set>
        </settings>
        <settings name="plugins">
                <set name="external_dir">@b3/extplugins</set>
        </settings>
        <plugins>
                <!-- plugin order is important. Plugins that add new in-game commands all
                        depend on the admin plugin. Make sure to have the admin plugin before
                        them. -->
                <plugin name="censor" config="@conf/plugin_censor.xml"/>
                <plugin name="spamcontrol" config="@b3/conf/plugin_spamcontrol.xml"/>
                <plugin name="admin" config="@conf/plugin_admin.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="poweradminbfbc2" config="@b3/extplugins/conf/poweradminbfbc2.xml"/>

        </plugins>
</configuration>

Im not sure what other information is needed but any help is greatly appreciated.

Thanks,
Carl//8th

I figured it out, my .py file was corrupt.

Thanks,
Carl//8th
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #16 on: December 11, 2010, 08:45:53 PM »

hi,

it looks like the poweradminbfbc2.py file you got is corrupted.
Download it again
Logged

Jr. Member
**
OS: --No B3 installed--
Type: --No B3 installed--
Gameservers: BFBC2
Posts: 42
Offline Offline
« Reply #17 on: January 29, 2011, 03:33:28 AM »

Just been testing and apparently some of our guys logged into server and noticed constant teamswitching, dont know for sure if its this plugin but its the only place I recall seeing a teambalance setting.

Literally about once a second and messages to that effect when it was happening.

Ive turned the teambalance setting off in the plugin and hopefully when theres some players back on I'll see if it was this settting that was the cause.

The teambalance setting being turned on was the cause of the constant forced teamswitching of players.

Ive turned it off now.
« Last Edit: January 30, 2011, 01:54:51 PM by epiacum » Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BFBC2, CoDBO, BF3
Posts: 23
Offline Offline
WWW
« Reply #18 on: May 24, 2011, 06:15:44 AM »

guys tell me how to use maplist.txt? that is where to write? in what form? whether it is possible to write cards of different mode and whether they will be correctly loaded? just plug bfbc2mixedgames often fixate on a single map, which is very bad.
« Last Edit: May 24, 2011, 06:17:29 AM by gazgaz » Logged
Newbie
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BFBC2
Posts: 3
Offline Offline
« Reply #19 on: July 17, 2011, 11:42:27 PM »

I cant start B3 if this Plugin is activated.

In Readme is this Information:

Quote from: Readme
This plugin works for R9+ and b3 1.3+ only!

but in the py-File stands this one:
Code:
if b3Version < version.LooseVersion("1.7.0"):
    raise SystemExit("the poweradminbfbc2 plugin requires B3 v1.7+. Yours is %s" % b3Version)

there is no B3 Ver. 1.7+

Could someone upload a Version, which works for B 1.6.0, please ?

And if i change the Variavle 1.7.0 into 1.6.0 B3 wont start with this addon activated, so there is no typing error.

(btw: b3 1.6.1 wont start anyway)
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #20 on: July 18, 2011, 02:21:47 AM »

B3 1.7 is not released yet, it is under development. You can download its source files here. Not that you need to install it following the instructions of section "Source code package"
Logged

Tags:
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal