1) The default location topkiller.py should be is on...
\3\b3\b3\extplugins
and it's config file (plugin_topkiller.xml) should be on...
\3\b3\b3\extplugins\conf
finally the line you need to add on b3.xml should be this...
<plugin name="topkiller" priority="x" config="@b3/extplugins/conf/plugin_topkiller.xml"/>
...where x is the next increased number (in addition to the last you already use...)
WARNING ! If you don't use the VERY NEXT increased number, plugin may not work at all...so if you last's plugin priority was 10 , then you must type 11 ...
This is how it works on my b3 installation.
2) Be carefull about this message as it should help you find what's wrong...
It says "Could not find built in plugin topkiller" so...you may have mispelled something here...
config="@b3/extplugins/conf/plugin_topkiller.xml
...you must use the correct location...
Strange that it's not finding it.
Here's my B3.xml excerpt:
<plugin name="chatlogger" priority="1" config="@b3/extplugins/conf/plugin_chatlogger.xml"/>
<plugin name="censor" priority="2" config="@b3/conf/plugin_censor.xml"/>
<plugin name="spamcontrol" priority="3" config="@b3/conf/plugin_spamcontrol.xml"/>
<plugin name="admin" priority="4" config="@b3/conf/plugin_admin.xml"/>
<plugin name="stats" priority="5" config="@b3/conf/plugin_stats.xml"/>
<plugin name="adv" priority="6" config="@b3/conf/plugin_adv.xml"/>
<plugin name="status" priority="7" config="@b3/conf/plugin_status.xml"/>
<plugin name="topkiller" priority="8" config="@b3/extplugins/conf/plugin_topkiller.xml"/>
<!-- <plugin name="tk" priority="9" config="@b3/conf/plugin_tk.xml"/>
-->
And inside b3bot\b3\extplugins I have the "topkiller.py" file and the .pyc file it created.
Inside \b3bot\b3\extplugins\conf I have the "plugin_topkiller.xml" file.
For what it's worth, the .xml file doesn't actually have anything in it. The contents of the xml are only the following:
<configuration plugin="topkiller">
</configuration>
This is how it was downloaded. Is this normal? If so, what else might cause it to not work?
For the sake of complete information, we also use the chatlogger plugin and the log also says that "module not found" however the chatlogger seems to be working fine.
Most recent log excerpt:
090512 10:20:56 BOT Loading Plugin #1 chatlogger [C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\extplugins\conf\plugin_chatlogger.xml]
090512 10:20:56 INFO Could not find built in plugin chatlogger, trying external plugin directories.
No module named chatlogger
090512 10:20:56 BOT ChatloggerPlugin: Loading config C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\extplugins\conf\plugin_chatlogger.xml for ChatloggerPlugin
090512 10:20:56 DEBUG ChatloggerPlugin: Using default value (chatlog) for db_table
090512 10:20:56 DEBUG ChatloggerPlugin: max age : 0 => 0 days
090512 10:20:56 INFO ChatloggerPlugin: chat log messages are kept forever
090512 10:20:56 DEBUG Register Event: Stop Process: ChatloggerPlugin
090512 10:20:56 DEBUG Register Event: Program Exit: ChatloggerPlugin
090512 10:20:56 BOT Plugin chatlogger (0.2.0 - Courgette) loaded
090512 10:20:56 BOT Loading Plugin #2 censor [C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_censor.xml]
090512 10:20:56 BOT CensorPlugin: Loading config C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_censor.xml for CensorPlugin
090512 10:20:57 DEBUG Register Event: Stop Process: CensorPlugin
090512 10:20:57 DEBUG Register Event: Program Exit: CensorPlugin
090512 10:20:57 BOT Plugin censor (2.1.0 - ThorN) loaded
090512 10:20:57 BOT Loading Plugin #3 spamcontrol [C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_spamcontrol.xml]
090512 10:20:57 BOT SpamcontrolPlugin: Loading config C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_spamcontrol.xml for SpamcontrolPlugin
090512 10:20:57 DEBUG Register Event: Stop Process: SpamcontrolPlugin
090512 10:20:57 DEBUG Register Event: Program Exit: SpamcontrolPlugin
090512 10:20:57 BOT Plugin spamcontrol (1.1.2 - ThorN) loaded
090512 10:20:57 BOT Loading Plugin #4 admin [C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_admin.xml]
090512 10:20:57 BOT AdminPlugin: Loading config C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_admin.xml for AdminPlugin
090512 10:20:57 DEBUG Register Event: Stop Process: AdminPlugin
090512 10:20:57 DEBUG Register Event: Program Exit: AdminPlugin
090512 10:20:57 BOT Plugin admin (1.3.2 - ThorN) loaded
090512 10:20:57 BOT Loading Plugin #5 stats [C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_stats.xml]
090512 10:20:57 BOT StatsPlugin: Loading config C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_stats.xml for StatsPlugin
090512 10:20:57 DEBUG AdminPlugin: Command "mapstats (mstats)" registered with cmd_mapstats for level (1, 100)
090512 10:20:57 DEBUG AdminPlugin: Command "testscore (ts)" registered with cmd_testscore for level (1, 100)
090512 10:20:57 DEBUG AdminPlugin: Command "topstats (tstats)" registered with cmd_topstats for level (9, 100)
090512 10:20:57 DEBUG Register Event: Stop Process: StatsPlugin
090512 10:20:57 DEBUG Register Event: Program Exit: StatsPlugin
090512 10:20:57 BOT Plugin stats (1.2.3 - ThorN) loaded
090512 10:20:57 BOT Loading Plugin #6 adv [C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_adv.xml]
090512 10:20:57 BOT AdvPlugin: Loading config C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_adv.xml for AdvPlugin
090512 10:20:57 VERBOSE Added crontab <bound method AdvPlugin.adv of <b3.plugins.adv.AdvPlugin instance at 0x023D24E0>> (37569488) - 0s [0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57]m -1h -1d -1M -1DOW
090512 10:20:57 DEBUG Register Event: Stop Process: AdvPlugin
090512 10:20:57 DEBUG Register Event: Program Exit: AdvPlugin
090512 10:20:57 BOT Plugin adv (1.1.2 - ThorN) loaded
090512 10:20:57 BOT Loading Plugin #7 status [C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_status.xml]
090512 10:20:57 BOT StatusPlugin: Loading config C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\conf\plugin_status.xml for StatusPlugin
090512 10:20:57 VERBOSE Added crontab <bound method StatusPlugin.update of <b3.plugins.status.StatusPlugin instance at 0x023E0508>> (37780848) - [0]s -1m -1h -1d -1M -1DOW
090512 10:20:57 DEBUG Register Event: Stop Process: StatusPlugin
090512 10:20:57 DEBUG Register Event: Program Exit: StatusPlugin
090512 10:20:57 BOT Plugin status (1.2.5 - ThorN) loaded
090512 10:20:57 BOT Loading Plugin #8 topkiller [C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\extplugins\conf\plugin_topkiller.xml]
090512 10:20:57 INFO Could not find built in plugin topkiller, trying external plugin directories.
No module named topkiller
090512 10:20:57 BOT TopkillerPlugin: Loading config C:\UserFiles\ADMIN\GameServers\cod4_2\b3bot\b3\extplugins\conf\plugin_topkiller.xml for TopkillerPlugin
090512 10:20:57 DEBUG Register Event: Stop Process: TopkillerPlugin
090512 10:20:57 DEBUG Register Event: Program Exit: TopkillerPlugin
090512 10:20:57 BOT Plugin topkiller (1.0.1 - Anubis) loaded