Jump to content


Photo

How to add more slots to fortress?


  • Please log in to reply
2 replies to this topic

#1 skeeze123

skeeze123
  • New Members
  • 12 posts

Posted 28 December 2009 - 10:05 PM

Hello! I would like to add more heroes to my fortress but i need to have more slots. I know that i have to edit commandsetbutton.ini, and commandset.ini, but i can't find that vers! I need a help! I would be very thankful if sb would do a little tutorial.

BFME 2 of course.

Edited by skeeze123, 28 December 2009 - 10:39 PM.


#2 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 29 December 2009 - 12:53 AM

You are correct !
The fortress commandbutton needs new revive buttons and you need to edit the

CODE

CommandSet MordorFortressCommandSet
InitialVisible = 6
//Main Menu
1 = Command_ConstructMordorPorter
2 = Command_SelectRevivablesMordorFortress
3 = Command_SelectUpgradesMordorFortress
4 = Command_FireWeaponMordorFortressMagmaCauldrons
5 = Command_FireWeaponMordorFortressSpireFireball
6 = Command_Sell

//Upgrades Menu
7 = Command_PurchaseUpgradeMordorFortressDoomPyres
8 = Command_PurchaseUpgradeMordorFortressLavaMoat
9 = Command_PurchaseUpgradeMordorFortressFireArrows
10 = Command_PurchaseUpgradeMordorFortressMagmaCauldrons
11 = Command_PurchaseUpgradeMordorFortressMorgulSorcery
12 = Command_PurchaseUpgradeMordorFortressGorgorothSpire
13 = Command_RadialBack


//Hero Menu
14 = Command_RingHeroReviveSlot
15 = Command_CreateAHeroReviveSlot // Note we also need an extra slot for the Create A Hero
16 = Command_GenericReviveSlot1
17 = Command_GenericReviveSlot2
18 = Command_GenericReviveSlot3
19 = Command_GenericReviveSlot4
20 = Command_GenericReviveSlot5
21 = Command_GenericReviveSlot6
22 = Command_GenericReviveSlot7
23 = Command_GenericReviveSlot8
24 = Command_GenericReviveSlot9
25 = Command_GenericReviveSlot10
26 = Command_GenericReviveSlot11
27 = Command_GenericReviveSlot12
26 = Command_GenericReviveSlot13
27 = Command_GenericReviveSlot14 ;<<< MAKE MORE !
End
===================

Make more like this

CommandButton Command_GenericReviveSlot14
Command = REVIVE
Options = HIDE_WHILE_DISABLED CANCELABLE ;Hides button while disabled.
TextLabel = CONTROLBAR:GenericReviveHero
;ButtonImage = ***Filled in automatically! No need to specify a button image.
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipGenericReviveHero
InPalantir = No
Radial = Yes
End


==================================

AND edit this


CommandButton Command_SelectRevivablesMordorFortress
Command = PUSH_VISIBLE_COMMAND_RANGE
TextLabel = CONTROLBAR:SelectRevivablesMordorFortress
ButtonImage = UCCommon_EvilHeroes
ButtonBorderType = SYSTEM
DescriptLabel = CONTROLBAR:ToolTipCommandSelectRevivablesMordorFortress
Radial = Yes
CommandRangeStart = 13 ; This is the start of the range at #13
CommandRangeCount = 16 ; <<<< then we add 16 to get to the End
End





It may take some trial with the Command_SelectRevivablesMordorFortress
to get the range just right .. If you don't then the game will crash

#3 skeeze123

skeeze123
  • New Members
  • 12 posts

Posted 29 December 2009 - 06:53 PM

Thank you very much! It helped me a lot. :good:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users