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: [bfbc2] Mixed Gametypes Plugin  (Read 12222 times)

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
[bfbc2] Mixed Gametypes Plugin
« on: August 13, 2010, 05:44:39 PM »

This plugin works for BattleField Bad Company 2 only!

This plugin will take control of your maplist. You will be able to create
a maplist in the plugin config containing multiple gametypes. Just look at the
config in this package to see how you can set the maprotation.

Requirements:

- Bad Company 2 Gameserver
- B3 version 1.3.4 or higher

See download area -> category 3rd party plugins -> plugins for bfbc2
« Last Edit: November 12, 2010, 08:16:13 PM by xlr8or »

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #1 on: August 15, 2010, 12:18:46 PM »
Version 1.1.0 now has now also the ability to rotate a map on an empty server after a configurable amount of minutes.

Offline domuk

  • Jr. Member
  • **
  • Posts: 11
    • The CeltS Soldiers Clan
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #2 on: August 15, 2010, 07:58:36 PM »
Where can you find the 1.3.4 version of B3 as we are currently running 1.3.3 according to your master list as your plugin's requirements says 1.3.4 and higher?

Thanks,
Dom

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #3 on: August 15, 2010, 08:07:36 PM »
The plugin will still work on version B3 v1.3.3. I've built in a temporary workaround.

The source code of B3 v1.3.4b can be found in my repository. Windows binaries are released later with v1.3.4.

Offline preachw

  • Newbie
  • *
  • Posts: 4
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #4 on: August 21, 2010, 11:42:52 AM »
The plugin will still work on version B3 v1.3.3. I've built in a temporary workaround.

The source code of B3 v1.3.4b can be found in my repository. Windows binaries are released later with v1.3.4.

Ok we loaded this on our B3 1.3.3, hoster thru PHS. I thought I had the XML configured properly with the mixed Conquest/Rush maps roatation we want to run on our BFBC 2 server. Ran into a problem. Even though every map in the config is proceeded with either CONQUEST mp_#ofmapinfilecq 2 or RUSH mp_#ofmapinfilegr 2 the server changes it to a 16 man SQDM server rather than the 32 man mixed. I pasted a copy of my rotation below without the extra codes that are in the xml so it posts properly. How can I get this rotation to run without having to have Guardian open as well to avoid the SQDM? I want to run B3 with this plugin so I do not have to run BFBC 2 Guardian 24/7 on my home PC. Thanks in advance.
Actual rotation: CONQUEST mp_006cq 2, RUSH mp_007gr 2, CONQUEST mp_008cq 2, RUSH mp_006 2, CONQUEST mp_009cq 2, RUSH mp_004 2, CONQUEST mp_012cq 2, RUSH mp_005gr 2, CONQUEST mp_003 2, RUSH mp_008 2, CONQUEST mp_005 2, RUSH mp_012gr 2, CONQUEST mp_001 2, RUSH mp_002 2, CONQUEST mp_007 2, RUSH mp_009gr 2
-#UF# MiracleWhip
Server Admin
United Forces Gaming Clan

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #5 on: August 21, 2010, 08:48:38 PM »
I'd need a b3.log to see what's happening.

Offline preachw

  • Newbie
  • *
  • Posts: 4
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #6 on: August 27, 2010, 07:36:03 AM »
I'd need a b3.log to see what's happening.
Got it working. Apparently xml wasn't originally loaded in correct folder. Thanks

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #7 on: October 11, 2010, 01:22:32 PM »
I've got a customer that is having an issue with this plugin. It appears he has everything set up right, but when the map is supposed to change, it loads the same map again. He can change it with the command that rotates the map but it doesn't work automatically.

Here's his bfbc2mixedgames.xml:

Quote
<configuration plugin="bfbc2mixedgames">
   <settings name="settings">

      <!-- GameType mapname rounds, GameType mapname rounds (don't add 'Levels/'' in fromt of the name!)-->
        <set name="rotation">CONQUEST MP_001 1, RUSH MP_002 2, CONQUEST MP_005 1, RUSH MP_004 2, CONQUEST MP_006CQ 1, RUSH MP_009GR 2, CONQUEST MP_012CQ 1, RUSH MP_008 2</set>

      <!-- On an empty server the plugin rotates to the next level after this many minutes, 0 disables -->
      <set name="emptytime">10</set>

      <!-- Should we also rotate if 1 player is online? -->
      <set name="rotate1">True</set>

   </settings>
</configuration>

I am attaching the b3.xml and b3.log.

[attachment deleted by admin]

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #8 on: October 12, 2010, 05:05:15 PM »
Anyone have any suggestions for the above problem?

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #9 on: October 12, 2010, 08:07:27 PM »
I don't see a problem there.

The server starts at 20:34:30 hrs with map mp_001, at 20:35:01 hrs it loads the first map in rotation, which coincidentally is map mp_001.

This is normal behavior at bot start.

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #10 on: October 12, 2010, 08:23:28 PM »
I don't see a problem there.

The server starts at 20:34:30 hrs with map mp_001, at 20:35:01 hrs it loads the first map in rotation, which coincidentally is map mp_001.

This is normal behavior at bot start.

The problem is that it never loads the second map. It stays on the first map in the rotation unless he manually tells it to change. I told him to upgrade to 1.4.0 to see if that makes a difference.

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #11 on: October 12, 2010, 09:27:13 PM »
Your log covers 6 minutes, that's not enough to see what's going on.

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #12 on: October 12, 2010, 11:18:14 PM »
Your log covers 6 minutes, that's not enough to see what's going on.

Well, he said during that 6 minutes, it failed to switch when it was supposed to.

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #13 on: October 12, 2010, 11:34:47 PM »
Only thing that failed is his patience imo.

Offline Thommy

  • Newbie
  • *
  • Posts: 7
Re: [bfbc2] Mixed Gametypes Plugin
« Reply #14 on: November 04, 2010, 03:01:15 PM »
Well ... i tried it too with the 1.3.3 version. My config looks this way:
Code: [Select]
		<set name="rotation">RUSH mp_002 2, RUSH, mp_004 2, CONQUEST mp_001 2, CONQUEST mp_003 2, RUSH mp_006 2, RUSH mp_012gr 2, CONQUEST mp_005 2, CONQUEST mp_007 2, RUSH mp_009gr 2, RUSH mp_008 2, CONQUEST mp_006cq 2, CONQUEST mp_012cq 2, RUSH mp_007gr 2, RUSH mp_005gr 2, CONQUEST mp_009cq 2, CONQUEST mp_008cq 2</set>

After loading the Bot:
Code: [Select]
101104 08:27:36	VERBOSE	Bfbc2MixedgamesPlugin: Registering events
101104 08:27:36 DEBUG Register Event: Game Round Start: Bfbc2MixedgamesPlugin
101104 08:27:36 DEBUG Register Event: Client Connect: Bfbc2MixedgamesPlugin
101104 08:27:36 DEBUG Register Event: Client Disconnect: Bfbc2MixedgamesPlugin
101104 08:27:36 VERBOSE RCON (1/1) ('serverInfo',)
101104 08:27:37 DEBUG Bfbc2MixedgamesPlugin: CurRoundNr: 1, MaxRoundNrs: 2
101104 08:27:37 DEBUG Bfbc2MixedgamesPlugin: Not setting next map, rounds not completed.
101104 08:27:37 VERBOSE Bfbc2MixedgamesPlugin: Starting Empty Timer...
101104 08:27:37 DEBUG Bfbc2MixedgamesPlugin: Started

15 minutes later (i changed it to 15 minutes between rotations) it seems to me that the plugin loaded the first map the first time:
Code: [Select]
101104 08:42:37	DEBUG	Bfbc2MixedgamesPlugin: Counting: 0 players online
101104 08:42:37 DEBUG getCommand: ('admin.yell', '(b3): Rotating Map!', '2400', 'all')
101104 08:42:37 VERBOSE RCON (1/1) ('admin.yell', '(b3): Rotating Map!', '2400', 'all')
101104 08:42:42 DEBUG Bfbc2MixedgamesPlugin: Rotating Map.
101104 08:42:42 VERBOSE RCON (1/1) ('admin.runNextLevel',)
101104 08:42:42 CONSOLE ['server.onLoadingLevel', 'Levels/MP_002', '2', '2']
101104 08:42:42 DEBUG OnServerLoadinglevel: ['Levels/MP_002', '2', '2']
101104 08:42:42 VERBOSE RCON (1/1) ('serverInfo',)
101104 08:42:43 CONSOLE ['server.onLevelStarted']
101104 08:42:43 INFO Joining players...
101104 08:42:43 VERBOSE RCON (1/1) ('admin.listPlayers', 'all')
101104 08:42:43 VERBOSE Queueing event Game Round Start <b3.game.Game object at 0x01252ED0>
101104 08:42:43 VERBOSE Parsing Event: Game Round Start: Poweradminbfbc2Plugin
101104 08:42:43 VERBOSE Parsing Event: Game Round Start: Bfbc2MixedgamesPlugin
101104 08:42:43 DEBUG Bfbc2MixedgamesPlugin: Counting: 0 players online
101104 08:42:43 DEBUG Bfbc2MixedgamesPlugin: Setting next map, server is empty.
101104 08:42:43 DEBUG Bfbc2MixedgamesPlugin: Next Map: GameType: RUSH, Map: Levels/mp_002, Rounds: 2

Again 15 minutes later he should rotate again, but this time i got an error:
Code: [Select]
101104 08:57:44	DEBUG	Bfbc2MixedgamesPlugin: Counting: 0 players online
101104 08:57:44 DEBUG getCommand: ('admin.yell', '(b3): Rotating Map!', '2400', 'all')
101104 08:57:44 VERBOSE RCON (1/1) ('admin.yell', '(b3): Rotating Map!', '2400', 'all')
101104 08:57:45 VERBOSE RCON (1/1) ('admin.listPlayers', 'all')
101104 08:57:49 DEBUG Bfbc2MixedgamesPlugin: Rotating Map.
101104 08:57:49 VERBOSE RCON (1/1) ('admin.runNextLevel',)
101104 08:57:50 CONSOLE ['server.onLoadingLevel', 'Levels/MP_002', '1', '2']
101104 08:57:50 DEBUG OnServerLoadinglevel: ['Levels/MP_002', '1', '2']
101104 08:57:50 VERBOSE RCON (1/1) ('serverInfo',)
101104 08:57:51 CONSOLE ['server.onLevelStarted']
101104 08:57:51 INFO Joining players...
101104 08:57:51 VERBOSE RCON (1/1) ('admin.listPlayers', 'all')
101104 08:57:51 VERBOSE Queueing event Game Round Start <b3.game.Game object at 0x01252ED0>
101104 08:57:51 VERBOSE Parsing Event: Game Round Start: Poweradminbfbc2Plugin
101104 08:57:51 VERBOSE Parsing Event: Game Round Start: Bfbc2MixedgamesPlugin
101104 08:57:51 DEBUG Bfbc2MixedgamesPlugin: Counting: 0 players online
101104 08:57:51 DEBUG Bfbc2MixedgamesPlugin: Setting next map, server is empty.
101104 08:57:51 ERROR handler Bfbc2MixedgamesPlugin could not handle event Game Round Start: IndexError: list index out of range [('b3\\parser.pyo', 765, 'handleEvents', None), ('b3\\plugin.pyo', 157, 'parseEvent', None), ('C:\\40603\\extplugins\\bfbc2mixedgames.py', 92, 'onEvent', None), ('C:\\40603\\extplugins\\bfbc2mixedgames.py', 140, 'queueMap', None)]
And from here on the plugin seems to have quitted working. I don't understand this error-message.

/e: ehm, sorry, somehow the preview function has a scrollbar, the final post not.  ??? ;D
« Last Edit: November 04, 2010, 03:06:30 PM by Thommy »

 


Rate this page +1 at Google Search