Jump to content


Photo

Issues with the creation of a faction

modding rotkw

  • Please log in to reply
2 replies to this topic

#1 StarlessBeseech

StarlessBeseech
  • Members
  • 5 posts

Posted 19 June 2016 - 07:42 PM

Hi everyone,

I've created a faction called "Hobbits" following the guide "adding a new faction for bfme2 and rotkw" by SquallBK, I also managed to add the powers editing science.ini but not to arrange them.Moreover when I buy a power a can't use it since it disappear as if i hadn't bought it.

Lastly i can't select none of the heroes that i've chosen even adding them in playertemplate.ini

I edit playertemplate.ini for Gandalf as hero but nothing it's happened.

My attempt was to create a faction of hobbits with Frodo,Sam,Merry, Tom Bombadil, Gandalf and Pippin as heroes creating also some units and structures from scratch.

So someone can help me doing this?With some tutorials or something?

 

 

 

The Science.ini lines interested:

Science SCIENCE_HOBBIT
  PrerequisiteSciences = None
  SciencePurchasePointCost = 0 ; note that this means "not purchasable", NOT "free"!
IsGrantable = No
Science SCIENCE_Heal  
 PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN OR SCIENCE_ELVES OR SCIENCE_DWARVES OR SCIENCE_ARNOR OR SCIENCE_HOBBIT 
Science SCIENCE_Farsight    
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ELVES OR SCIENCE_HOBBIT 
Science SCIENCE_ElvenWood   
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ELVES SCIENCE_Heal OR SCIENCE_ELVES SCIENCE_Farsight OR SCIENCE_ARNOR SCIENCE_Heal OR SCIENCE_ARNOR SCIENCE_RallyingCallMP OR SCIENCE_HOBBIT SCIENCE_Farsight 
Science SCIENCE_Rebuild   
PrerequisiteSciences = SCIENCE_GOOD SCIENCE_Heal OR SCIENCE_ElvenWood OR SCIENCE_MEN OR SCIENCE_DWARVES OR SCIENCE_ARNOR OR SCIENCE_HOBBIT 
Science SCIENCE_TomBombadil   
PrerequisiteSciences = SCIENCE_GOOD SCIENCE_EnshroudingMistSP OR SCIENCE_GOOD SCIENCE_ElvenGifts OR SCIENCE_ELVES SCIENCE_Farsight OR SCIENCE_MEN SCIENCE_RallyingCallMP OR SCIENCE_MEN SCIENCE_Rebuild OR SCIENCE_HOBBIT SCIENCE_Heal 
Science SCIENCE_HobbitAllies  
 PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ELVES SCIENCE_Heal OR SCIENCE_MEN SCIENCE_Heal OR SCIENCE_ARNOR SCIENCE_Heal OR SCIENCE_DWARVES SCIENCE_RallyingCallMP OR SCIENCE_DWARVES SCIENCE_Rebuild OR SCIENCE_HOBBIT SCIENCE_Heal 
Science SCIENCE_ArrowVolleyGood   
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN SCIENCE_Heal OR SCIENCE_MEN SCIENCE_RallyingCallMP OR SCIENCE_ELVES SCIENCE_Heal OR SCIENCE_ELVES SCIENCE_RallyingCallMP OR SCIENCE_ARNOR SCIENCE_Rebuild OR SCIENCE_ARNOR SCIENCE_RallyingCallMP OR SCIENCE_HOBBIT SCIENCE_Farsight SCIENCE_HOBBIT SCIENCE_Rebuild 
Science SCIENCE_CloudBreak   
PrerequisiteSciences = SCIENCE_GOOD SCIENCE_TomBombadil OR SCIENCE_GOOD SCIENCE_DwarvenRiches OR SCIENCE_MEN SCIENCE_TomBombadil OR SCIENCE_MEN SCIENCE_ArrowVolleyGood OR SCIENCE_ELVES SCIENCE_ArrowVolleyGood OR SCIENCE_ELVES SCIENCE_ElvenWood OR SCIENCE_DWARVES SCIENCE_DwarvenRiches OR SCIENCE_DWARVES SCIENCE_SpawnLoneTower OR SCIENCE_ARNOR SCIENCE_ArrowVolleyGood OR SCIENCE_ARNOR SCIENCE_ElvenWood OR SCIENCE_HOBBIT SCIENCE_ArrowVolleyGood OR SCIENCE_HOBBIT SCIENCE_TomBombadil 
Science SCIENCE_RohanAllies   
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN SCIENCE_TomBombadil OR SCIENCE_MEN SCIENCE_SpawnLoneTower OR SCIENCE_HOBBIT SCIENCE_ArrowVolleyGood OR SCIENCE_HOBBIT SCIENCE_ElvenWood 
Science SCIENCE_EntAllies   
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ELVES SCIENCE_ElvenWood OR SCIENCE_ELVES SCIENCE_TomBombadil OR SCIENCE_HOBBIT SCIENCE_HobbitAllies OR SCIENCE_HOBBIT SCIENCE_TomBombadil 
Science SCIENCE_Earthquake   
PrerequisiteSciences = SCIENCE_GOOD SCIENCE_CloudBreak OR SCIENCE_GOOD SCIENCE_Undermine OR SCIENCE_MEN SCIENCE_RohanAllies OR SCIENCE_MEN SCIENCE_CloudBreak OR SCIENCE_DWARVES SCIENCE_Undermine OR SCIENCE_DWARVES SCIENCE_Bombard OR SCIENCE_ARNOR SCIENCE_CloudBreak OR SCIENCE_ARNOR SCIENCE_Bombard OR SCIENCE_HOBBIT SCIENCE_RohanAllies OR SCIENCE_HOBBIT SCIENCE_CloudBreak 
Science SCIENCE_Flood   
PrerequisiteSciences = SCIENCE_GOOD SCIENCE_MenOfDaleAllies OR SCIENCE_GOOD SCIENCE_CloudBreak OR SCIENCE_ELVES SCIENCE_EntAllies OR SCIENCE_ELVES SCIENCE_CloudBreak OR SCIENCE_HOBBIT SCIENCE_EntAllies OR SCIENCE_HOBBIT SCIENCE_CloudBreak 

 

And in Commandset.ini:

CommandSet HobbitSpellBookCommandSet
1 = Command_SpellBookHeal
2 = Command_SpellBookRebuild
3 = Command_SpellBookFarsight


4 = Command_SpellBookHobbitAllies
5 = Command_SpellBookTomBombadil
6 = Command_SpellBookElvenWood
7 = Command_SpellBookArrowVolleyGood


8 = Command_SpellBookEntAllies
9 = Command_SpellBookCloudBreak
10 = Command_SpellBookRohanAllies


11 = Command_SpellBookFlood
12 = Command_SpellBookEarthquake
End


CommandSet HobbitSpellStoreCommandSet
1 = Command_PurchaseSpellHeal
2 = Command_PurchaseSpellRebuild
3 = Command_PurchaseSpellFarsight


4 = Command_PurchaseSpellTomBombadil
5 = Command_PurchaseSpellArrowVolleyGood
6 = Command_PurchaseSpellHobbitAllies
7 = Command_PurchaseSpellElvenWood


8 = Command_PurchaseSpellRohanAllies
9 = Command_PurchaseSpellEntAllies
10 = Command_PurchaseSpellCloudBreak


11 = Command_PurchaseSpellFlood
12 = Command_PurchaseSpellEarthquake
End

The order would be (from left to right, from top to bottom): Heal, Rebuild, Farsight, Summon hobbits, Tom, Arrows, Elven Wood, Ent, Cloudbreak, Rohan allies, flood and earthquake.

Instead is so:

http://imgur.com/Ai6TqzI

 

The playertemplate.ini:

PlayerTemplate FactionHobbits 
	Side = Hobbits 
	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 = HobbitPorter 
	StartingUnitOffset1 = X:30 Y:200 Z:0
	StartingUnit0 = HobbitPorter 
	StartingUnitOffset0 = X:1 Y:130 Z:0

	StartingUnitTacticalWOTR = MenPorter 
	StartingUnitTacticalWOTR = MenPorter 
	IntrinsicSciences = SCIENCE_GOOD
	IntrinsicSciencesMP = SCIENCE_HOBBIT
	SpellBook = GoodSpellBook 
	SpellBookMp = HobbitSpellBook
	PurchaseScienceCommandSet = GoodSpellStoreCommandSet
	PurchaseScienceCommandSetMP = HobbitSpellStoreCommandSet
	DisplayName = INI:FactionHobbit 
	DefaultPlayerAIType = MenSkirmishAI
	BeaconName = MultiplayerBeacon
	LightPointsUpSound = GondorLightPointsUp
	ObjectiveAddedSound = Gui_MissionObjectiveNew
	ObjectiveCompletedSound = Gui_MissionObjectiveCompleted
	InitialUpgrades = Upgrade_MenFaction 

	// 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 GondorGandalf
	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

Thanks

 

EDIT:

After trying to edit some stuff (i don't remember) I have this error launching the game:

http://imgur.com/ath7kZI


Edited by StarlessBeseech, 20 June 2016 - 09:08 AM.


#2 knight errant

knight errant
  • Members
  • 22 posts

Posted 25 June 2016 - 04:32 PM

referring to the last part, have you used the -mod command?



#3 StarlessBeseech

StarlessBeseech
  • Members
  • 5 posts

Posted 27 June 2016 - 07:55 AM

.... no i guess, what is it?






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users