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 ForumsGame specific SupportBattle Field Bad Company 2 (Moderator: MordyT)Patch for Map Pack 7 and Vietnam map names
Pages: [1]   Go Down
  Print  
Author Topic: Patch for Map Pack 7 and Vietnam map names  (Read 1594 times) Bookmark and Share
Former Dev. (senate)
*****
OS: Linux
Type: Home user
Gameservers: BFBC2
Posts: 37
Offline Offline
« on: December 18, 2010, 09:10:05 PM »

To make B3 understand the map names from Map Pack 7 and Vietnam expansion patch the following file:

file: b3/parsers/bfbc2.py

Around line 377 adjust to look like:
Code:
        elif mapname.startswith('Levels/MP_012'):
            return 'Port Valdez'

        elif mapname.startswith('Levels/BC1_Oasis'):
            return 'Oasis'

        elif mapname.startswith('Levels/BC1_Harvest_Day'):
            return 'Harvest Day'

        elif mapname.startswith('Levels/MP_SP_002'):
            return 'Cold War'

        elif mapname.startswith('Levels/MP_SP_005'):
            return 'Heavy Metal'

        elif mapname.startswith('Levels/nam_mp_002'):
            return 'Vantage Point'

        elif mapname.startswith('Levels/nam_mp_003'):
            return 'Hill 137'

        elif mapname.startswith('Levels/nam_mp_005'):
            return 'Cao Son Temple'

        elif mapname.startswith('Levels/nam_mp_006'):
            return 'Phu Bai Valley'

        else:
            self.warning('unknown level name \'%s\'. Please report this on B3 forums' % mapname)
            return mapname

and the next function down around line 430:
Code:
        elif mapname.startswith('port valdez'):
            return 'Levels/MP_012'

        elif mapname.startswith('oasis'):
            return 'Levels/BC1_Oasis'

        elif mapname.startswith('harvest day'):
            return 'Levels/BC1_Harvest_Day'

        elif mapname.startswith('cold war'):
            return 'Levels/MP_SP_002'

        elif mapname.startswith('heavy metal'):
            return 'Levels/MP_SP_005'

        elif mapname.startswith('vantage point'):
            return 'levels/nam_mp_002'

        elif mapname.startswith('hill 137'):
            return 'levels/nam_mp_003'

        elif mapname.startswith('cao son temple'):
            return 'levels/nam_mp_005'

        elif mapname.startswith('phu bai valley'):
            return 'levels/nam_mp_006'

        else:
            self.warning('unknown level name \'%s\'. Please make sure you have entered a valid mapname' % mapname)
            return mapname

restart B3 after saving changes.
Logged


Beta Testers
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: BFBC2, MOH, ALL
Posts: 24
Offline Offline
WWW
« Reply #1 on: December 19, 2010, 10:18:38 AM »

I am using the B3 non-installer and I don't have a parsers folder or a bfbc2.py file, can you guide me how to update for Vietnam and Map Pack 7?
Logged

RCON Hosting Services - http://rconhostingservices.net

Beta Testers
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 3 CoD4, 1 MoH, 1 BC2, and 2 BO
Posts: 158
Offline Offline
WWW
« Reply #2 on: December 19, 2010, 03:36:58 PM »

Can we get a github update that includes this fix for the windows installers that don't have the parser .pys please?
Logged

Former Dev. (senate)
*****
OS: Linux
Type: Home user
Gameservers: BFBC2
Posts: 37
Offline Offline
« Reply #3 on: December 19, 2010, 11:14:12 PM »

I guess xlr8or will have to merge it into github - ditto for the windows builds..

I posted this info a while back in the developer forum but nobody picked it up so i posted it here
im not sure whats going on with B3 dev but I havn't been able to get any of my code into the main github repo for a while now.

Sorry folks
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #4 on: December 20, 2010, 10:32:33 AM »

Your changes are already in my dev repository. Would be much easier if you apply the changes to your github clone though and send me a pull request, that way I don't have to add it manually.
Logged

Beta Testers
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 3 CoD4, 1 MoH, 1 BC2, and 2 BO
Posts: 158
Offline Offline
WWW
« Reply #5 on: December 20, 2010, 05:02:12 PM »

until i figure out how to install via source code, I'll wait until this is merged with the windows installer versions.
Logged

Jr. Member
**
OS: --No B3 installed--
Type: --No B3 installed--
Gameservers: BFBC2
Posts: 42
Offline Offline
« Reply #6 on: January 22, 2011, 03:16:17 PM »

I just set up 1.4.1

Are these changes in 1.4.1 or do I need to do this mod?
Logged
Tags: bfbc2  map pack 7  vietnam 
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal