thankyou
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: Hardcore Infantry Only Plugin for BF3  (Read 17975 times)

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Re: Hardcore Infantry Only Plugin for BF3
« Reply #45 on: December 14, 2012, 01:43:08 AM »
This error sounds like B3 trying to read a .ini or .cfg config file which is empty

There are many .ini + .cfg files around, to which are you referring to Courgette?
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Hardcore Infantry Only Plugin for BF3
« Reply #46 on: December 14, 2012, 10:14:15 AM »
one of the config file for your B3 plugins. As far as I know B3 does not read .ini or .cfg files from yoru game server.
If you look at the lines before that error in your b3.log, you might be able to tell from which plugin it may be.

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Re: Hardcore Infantry Only Plugin for BF3
« Reply #47 on: December 14, 2012, 12:28:47 PM »
I'm really not sure where or what Courgette mate..
B3 is running perfectly, but when I add the line for the Infantry plugin, B3 won't start back up

This is the debug info where she starts to crash

Code: [Select]
121214 11:26:42	BOT    	'Plugin censor (3.0 - ThorN) loaded'
121214 11:26:42 BOT     'Loading Plugin #2 admin [F:\\bf3\\extplugins\\plugin_admin.xml]'
121214 11:26:42 BOT     'AdminPlugin: Loading config F:\\bf3\\extplugins\\plugin_admin.xml for AdminPlugin'
121214 11:26:42 DEBUG 'Register Event: Stop Process: AdminPlugin'
121214 11:26:42 DEBUG 'Register Event: Program Exit: AdminPlugin'
121214 11:26:42 BOT     'Plugin admin (1.12.1 - ThorN, xlr8or, Courgette) loaded'
121214 11:26:42 BOT     'Loading Plugin #3 spamcontrol [F:\\bf3\\extplugins\\plugin_spamcontrol.xml]'
121214 11:26:42 BOT     'SpamcontrolPlugin: Loading config F:\\bf3\\extplugins\\plugin_spamcontrol.xml for SpamcontrolPlugin'
121214 11:26:42 DEBUG 'Register Event: Stop Process: SpamcontrolPlugin'
121214 11:26:42 DEBUG 'Register Event: Program Exit: SpamcontrolPlugin'
121214 11:26:42 BOT     'Plugin spamcontrol (1.1.2 - ThorN) loaded'
121214 11:26:42 BOT     'Loading Plugin #4 hardcoreinfantry [F:\\bf3\\conf\\hardcoreinfantry.py]'
121214 11:26:42 INFO 'hardcoreinfantry is not a built-in plugin (No module named hardcoreinfantry)'
121214 11:26:42 INFO 'trying external plugin directory : F:\\bf3\\extplugins'
121214 11:26:42 BOT     'HardcoreinfantryPlugin: Loading config F:\\bf3\\conf\\hardcoreinfantry.py for HardcoreinfantryPlugin'
121214 11:26:42 CRITICAL 'Error loading plugin: File contains no section headers.\nfile: F:\\bf3\\conf\\hardcoreinfantry.py, line: 25\n"__version__ = \'0.1\'\\n"'
Traceback (most recent call last):
  File "b3\parser.pyo", line 628, in loadPlugins
  File "F:\bf3\extplugins\hardcoreinfantry.py", line 39, in __init__
  File "b3\plugin.pyo", line 56, in __init__
  File "b3\plugin.pyo", line 93, in loadConfig
  File "b3\config.pyo", line 290, in load
  File "b3\config.pyo", line 251, in load
  File "ConfigParser.pyo", line 316, in readfp
  File "ConfigParser.pyo", line 504, in _read
MissingSectionHeaderError: File contains no section headers.
file: F:\bf3\conf\hardcoreinfantry.py, line: 25
"__version__ = '0.1'\n"

Line 25 in the hardcoreinfantry.py =

[23] # 0.1   - Initial release
[24]
[25]__version__ = '0.1'
[26]__author__  = 'Freelander'
« Last Edit: December 14, 2012, 01:59:21 PM by Glock »
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Hardcore Infantry Only Plugin for BF3
« Reply #48 on: December 14, 2012, 01:50:21 PM »
why is there a '[23]' on that line ? from the plugin .py file as found in the download section you should have :

Quote
# 0.1   - Initial release

__version__ = '0.1'
__author__  = 'Freelander'

and not
Quote
[23] # 0.1   - Initial release

__version__ = '0.1'
__author__  = 'Freelander'

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Re: Hardcore Infantry Only Plugin for BF3
« Reply #49 on: December 14, 2012, 01:57:28 PM »
That is me just making out to show you what line the error is on  ;)
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Hardcore Infantry Only Plugin for BF3
« Reply #50 on: December 14, 2012, 02:56:02 PM »
in your b3.xml, what config file is set for this plugin ?
can you post the content of this config file ?

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Re: Hardcore Infantry Only Plugin for BF3
« Reply #51 on: December 14, 2012, 03:14:40 PM »
Here is the B3.xml - obviously I've deliberately set some not to trigger;

Code: [Select]
<?xml version="1.0"?>
<configuration>
  <settings name="b3">
    <set name="parser">bf3</set>
    <set name="database"></set>   
    <set name="bot_name"></set>
    <set name="bot_prefix"></set>
    <set name="time_format">%I:%M%p %Z %m/%d/%y</set>
    <set name="time_zone">CET</set>
    <set name="log_level">8</set>
    <set name="logfile">F:/bf3/log/b3.log</set>
  </settings>
  <settings name="server">
    <set name="rcon_password"></set>
<!-- <set name="rcon_password"></set> -->
    <set name="port"></set>
    <set name="public_ip"></set>
    <set name="rcon_ip"></set>
    <set name="punkbuster">on</set>
  </settings>
  <settings name="autodoc">
    <set name="type">html</set>
    <set name="maxlevel">80</set>
    <set name="destination">F:/bf3/b3_doc.html</set>
  </settings>
  <settings name="messages">
    <set name="kicked_by">$clientname^7 was kicked by $adminname^7 $reason</set>
    <set name="kicked">$clientname^7 was kicked $reason</set>
    <set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
    <set name="banned">$clientname^7 was banned $reason</set>
    <set name="temp_banned_by">$clientname^7 was temp banned by $adminname^7 for $banduration^7 $reason</set>
    <set name="temp_banned">$clientname^7 was temp banned for $banduration^7 $reason</set>
    <set name="unbanned_by">$clientname^7 was un-banned by $adminname^7 $reason</set>
    <set name="unbanned">$clientname^7 was un-banned $reason</set>
  </settings>
  <settings name="plugins">
    <set name="external_dir">F:/bf3/extplugins</set>
  </settings>
  <plugins>

    <plugin name="censor" config="F:/bf3/extplugins/plugin_censor.xml"/>
    <plugin name="admin" config="F:/bf3/extplugins/plugin_admin.xml"/>
    <plugin name="spamcontrol" config="F:/bf3/extplugins/plugin_spamcontrol.xml"/>
<!--<plugin name="hardcoreinfantry" config="F:/bf3/extplugins/hardcoreinfantry.py"/>-->
    <plugin name="stats" config="F:/bf3/extplugins/plugin_stats.xml"/>
    <plugin name="pingwatch" config="F:/bf3/extplugins/plugin_pingwatch.xml"/>   
    <plugin name="status" config="F:/bf3/extplugins/plugin_status.xml"/>
    <plugin name="welcome" config="F:/bf3/extplugins/plugin_welcome.xml"/>
   <plugin name="adv" config="F:/bf3/extplugins/plugin_adv.xml"/>
<plugin name="chatlogger" config="F:/bf3/extplugins/plugin_chatlogger.xml"/>
 <!-- <plugin name="weaponlimiterbf3" config="F:/bf3_1/extplugins/plugin_weaponlimiterbf3.xml"/> -->
    <plugin name="poweradminbf3" config="F:/bf3/extplugins/plugin_poweradminbf3.xml"/>
    <!-- <plugin name="xlrstats" config="F:/bf3/extplugins/xlrstats.xml"/> -->
    <!-- <plugin name="autoreg" config="@b3/extplugins/conf/autoreg.xml"/> -->

  </plugins>
</configuration>
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

Offline storm_ss

  • Jr. Member
  • **
  • Posts: 48
Re: Hardcore Infantry Only Plugin for BF3
« Reply #52 on: December 14, 2012, 04:26:07 PM »
Try this:

This is what you have in your b3 xml:

<!--<plugin name="hardcoreinfantry" config="F:/bf3/extplugins/hardcoreinfantry.py"/>-->

Change to this:

<plugin name="hardcoreinfantry" />

As it says in the readme:

Installation
------------

* copy hardcoreinfantry.py into b3/extplugins
* add to the plugins section of your main b3 config file:
```<plugin name="hardcoreinfantry" />```

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Re: Hardcore Infantry Only Plugin for BF3
« Reply #53 on: December 14, 2012, 05:30:46 PM »
Indeed.. works

I thought we still had to add the location of the plugin..   ::)
Cheers mate   ;D
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: Hardcore Infantry Only Plugin for BF3
« Reply #54 on: December 17, 2012, 10:48:57 AM »
Hey Glock, thanks for asking all is ok and hope the same for you. Glad your issue is fixed.

Note that in b3.xml plugin section, you're writing path to plugins' config files not the plugin itself. As hardcoreinfantry plugin does not have/need a config file you just skip this for this plugin.

Cheers!

 


Rate this page +1 at Google Search