The 3rd Age

Master Hero Version 1.6

Master Hero Version 1.6

1.6 of Master Hero Version ROTWK Mod for Battle for Middle Earth 2: Rise of the Witch King

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Adding A new Faction for bfme2 & rotwk

Avatar of SquallBK

SquallBK

Category: Code
Level: Beginner
Created: Monday May 28, 2007 - 6:48
Updated: Saturday June 27, 2009 - 18:31
Views: 38478
Summary: This will take you through the steps of adding a new faction for bfme2 & rotwk.

Rating

Staff says

3.3

Members say

3.9

Average

3.8/5.0

23 votes

Page 1 2 3 4 5
If you don't understand what files go where from bfme1 to bfme2, then this is a good article to read. This tutorial will take you through the steps of adding a new faction. If you want to add your new faction to the AI, then you may want to read a different article. First, the files we will be editing are-

playertemplate.ini
lotr.str
science.ini
menfortress.ini (doesn't always have to be just menfortress, but will be explained in the tutorial.)


Lets start with playertemplate.ini. Playertemplate.ini is required to be edited, or the new faction you plan on making, will not even appear playable in skirmish mode. So lets begin.

When you open up the file, you will see that pretty much everything is the same. So lets just use the Hobbits as an example for this tutorial.

first off, copy and paste the code that looks like this-


              
Code
PlayerTemplate FactionMen
Side = Men
PlayableSide = Yes
Evil = No
StartMoney = 0
MaxLevelMP = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_DEFAULT PLAYER_PURCHASE_POINTS_GRANTED )
MaxLevelSP = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_GOOD PLAYER_PURCHASE_POINTS_GRANTED )
PreferredColor = R:43 G:150 B:179
StartingBuilding = MenFortress

;------------- NO STARTING UNITS FOR YOU -------
;StartingUnit0 = GondorFighterHorde
;StartingUnitOffset0 = X:-60 Y:185 Z:0


StartingUnit1 = MenPorter
StartingUnitOffset1 = X:30 Y:200 Z:0
StartingUnit0 = MenPorter
StartingUnitOffset0 = X:1 Y:130 Z:0

StartingUnitTacticalWOTR = MenPorter ;// This unit is placed in tactical mode when playing WOTR. Add multiple lines for multiple units.
StartingUnitTacticalWOTR = MenPorter
IntrinsicSciences = SCIENCE_GOOD
IntrinsicSciencesMP = SCIENCE_MEN
SpellBook = GoodSpellBook
SpellBookMp = MenSpellBook
PurchaseScienceCommandSet = GoodSpellStoreCommandSet
PurchaseScienceCommandSetMP = MenSpellStoreCommandSet
DisplayName = INI:FactionMen
DefaultPlayerAIType = MenSkirmishAI
BeaconName = MultiplayerBeacon
LightPointsUpSound = GondorLightPointsUp
ObjectiveAddedSound = Gui_MissionObjectiveNew
ObjectiveCompletedSound = Gui_MissionObjectiveCompleted
InitialUpgrades = Upgrade_MenFaction ; Any upgrades this player template is born with.

// NOTE: It is very important that the create-a-hero be the first buildable hero, to ensure that the create-a-hero and the ring hero are always
// attached to the first two buttons in the command set.

BuildableHeroesMP = CreateAHero RohanEomer GondorBoromir RohanTheoden GondorFaramir AragornNew GondorGandalf DwarvenGimli ElvenLegolas ElvenGlorfindel ElvenHaldir ArnorCaptainStealthless
BuildableRingHeroesMP = ElvenGaladriel_RingHero
SpellStoreCurrentPowerLabel = APT:SpellStoreCurrentEvenstarPower
SpellStoreMaximumPowerLabel = APT:SpellStoreMaximumEvenstarPower
ResourceModifierObjectFilter = RESOURCE_MODIFIER_OBJECT_FILTER
ResourceModifierValues = 100 100 100 100 90 85 80 75 71 68 66
MultiSelectionPortrait = UPGondor_Army
LoadScreenMusic = Shell2MusicForLoadScreen
End


but now lets begin editing it-


              
Code


PlayerTemplate FactionHobbits ; the faction name
Side = Hobbits ; what side will your faction be on?
PlayableSide = Yes ; self explanatory, choose no, and you can't play it in the game.
Evil = No ; is your faction evil or not?
StartMoney = 0 ; how much money will your faction start off with?
MaxLevelMP = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_DEFAULT PLAYER_PURCHASE_POINTS_GRANTED ); just ignore this for now
MaxLevelSP = #DIVIDE( PLAYER_MAX_PURCHASE_POINTS_GOOD PLAYER_PURCHASE_POINTS_GRANTED ); just ignore it
PreferredColor = R:43 G:150 B:179; the preferred color of your faction. It really isn't necessary to edit this, but feel free
StartingBuilding = MenFortress ; the starting building of your faction

;------------- NO STARTING UNITS FOR YOU -------
;StartingUnit0 = GondorFighterHorde ; this would normally be the units your faction starts off with, but when any code line has a ';' in it, that usually means it will be ignored.
;StartingUnitOffset0 = X:-60 Y:185 Z:0; just ignore this


StartingUnit1 = HobbitPorter ;the porter that your faction will start with.
StartingUnitOffset1 = X:30 Y:200 Z:0
StartingUnit0 = HobbitPorter
StartingUnitOffset0 = X:1 Y:130 Z:0

StartingUnitTacticalWOTR = MenPorter ;the starting units for war of the ring.
StartingUnitTacticalWOTR = MenPorter ; same thing. You can also add the same code line for different starting units if you wish to do so
IntrinsicSciences = SCIENCE_GOOD ; will your faction use good or evil science?
IntrinsicSciencesMP = SCIENCE_HOBBIT; the science your individual faction has. It is not required to be edited, but is suggested.
SpellBook = GoodSpellBook ; evil spellbook or good spell book?
SpellBookMp = HobbitSpellBook; The individual spellbook for your faction.
PurchaseScienceCommandSet = GoodSpellStoreCommandSet
PurchaseScienceCommandSetMP = MenSpellStoreCommandSet
DisplayName = INI:FactionHobbit ; this is referencing to the lotr.str. It will be explained when we come to it.
DefaultPlayerAIType = MenSkirmishAI; I'm not 100% sure, but i'd guess that it is the strategic AI that the faction uses. But again that will have to be added.
BeaconName = MultiplayerBeacon
LightPointsUpSound = GondorLightPointsUp
ObjectiveAddedSound = Gui_MissionObjectiveNew
ObjectiveCompletedSound = Gui_MissionObjectiveCompleted
InitialUpgrades = Upgrade_MenFaction ; Any upgrades this player template is born with.

// NOTE: It is very important that the create-a-hero be the first buildable hero, to ensure that the create-a-hero and the ring hero are always
// attached to the first two buttons in the command set.

BuildableHeroesMP = CreateAHero RohanEomer GondorBoromir RohanTheoden GondorFaramir AragornNew GondorGandalf DwarvenGimli ElvenLegolas ElvenGlorfindel ElvenHaldir ArnorCaptainStealthless; the buildable heroes for your fortress.
BuildableRingHeroesMP = ElvenGaladriel_RingHero ; the ring hero for your faction.
SpellStoreCurrentPowerLabel = APT:SpellStoreCurrentEvenstarPower
SpellStoreMaximumPowerLabel = APT:SpellStoreMaximumEvenstarPower
ResourceModifierObjectFilter = RESOURCE_MODIFIER_OBJECT_FILTER
ResourceModifierValues = 100 100 100 100 90 85 80 75 71 68 66
MultiSelectionPortrait = UPGondor_Army
LoadScreenMusic = Shell2MusicForLoadScreen
End

Links / Downloads

 HitsAdded
preconverted INI Packages5280May 28, 2007 - 14:39

Comments

Display order: Newest first | Page: 1, 2, 3

Elaryan - Saturday January 3, 2009 - 19:03

i need help!! my heroes do not apear..help me!!

Zarmoz - Monday December 22, 2008 - 5:00

Thank you for this good tutorial, i had to fix the Childobject in the HobbitPorter.ini,
but i made it work.... anyway, good tutorial. 5/5!

Fist of Sauron - Wednesday October 29, 2008 - 15:21

Thank you! This is awsome, but I was wondering if there is a way to use CAH with the new faction?

morjin - Wednesday October 8, 2008 - 11:00

hmm lotr.str really isnt there.. onyl lotr.csf. maybe its coz i got the dutch version (dutch.big)

rutger - Monday August 11, 2008 - 5:11

can't find lotr.strg only lotr.csf

Arathern - Monday June 30, 2008 - 1:11

Cant find "hobbits" in faction team... Why not?

Haldor - Wednesday June 25, 2008 - 18:15

where is playertemplate.ini?

--------

ah, sorry i found it

m@tt (Team Chamber Member) - Monday May 5, 2008 - 16:20

You mean SCIENCE_ANGBAND surely?

galentv - Monday May 5, 2008 - 6:38

will the mod be in english if i take english.big?
(or for example spanish if i take spanish.big?)

--------

The game cannot find SIENCE_ANGBAND!
what shall i do?

--------

The menu wont show up when i start the mod! wich is the menu file .big file? (and is it anymore required file?)

eidolon174 - Monday April 7, 2008 - 9:08

Thanks , my mod is better with this tutorial.

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
9:22:02