Jump to content


Photo

Remore upgrades from the structures


Best Answer Suchar, 21 March 2015 - 07:41 AM

Well, it's pretty simple.

First, find commandset.ini file, and commandset of structure you want to edit.

I will use gondorbarrackscommandset, for example.

CommandSet GondorBarracksCommandSet
  	1	= Command_ConstructGondorFighterHorde
	2 	= Command_ConstructRohanSpearmenHorde
  	3	= Command_ConstructGondorTowerShieldGuardHorde
  	4 	= Command_PurchaseUpgradeGondorBarracksLevel2
  	6	= Command_Sell
End

Just uncomment "Command_PurchaseUpgradeGondorBarracksLevel2" part of code, so it will looks like:

CommandSet GondorBarracksCommandSet
  	1	= Command_ConstructGondorFighterHorde
	2 	= Command_ConstructRohanSpearmenHorde
  	3	= Command_ConstructGondorTowerShieldGuardHorde
; 	4 	= Command_PurchaseUpgradeGondorBarracksLevel2
  	6	= Command_Sell
End

and you will be unable to upgrade barracks.

Next, find all build commands of units, that aren't avaiable at first level of structure.

In gondor barracks, it will be: "Command_ConstructGondorTowerShieldGuardHorde"

Copy it, and search for it in commandbutton.ini:

CommandButton Command_ConstructGondorTowerShieldGuardHorde
	Command				= UNIT_BUILD
	Object				= GondorTowerShieldGuardHorde
	Options				= NEED_UPGRADE CANCELABLE
	NeededUpgrade			= Upgrade_GondorBarracksLevel2
	TextLabel			= CONTROLBAR:ConstructGondorShieldGuardHorde
	ButtonImage			= BGBarracks_TowerGuard
	ButtonBorderType    		= BUILD 
	DescriptLabel       		= CONTROLBAR:ToolTipBuildGondorShieldGuardHorde
	Radial				= Yes
	InPalantir			= Yes
	ShowProductionCount		= Yes      
End

Now, we must edit that command button:

CommandButton Command_ConstructGondorTowerShieldGuardHorde
	Command				= UNIT_BUILD
	Object				= GondorTowerShieldGuardHorde
	Options				= CANCELABLE ;NEED_UPGRADE
;	NeededUpgrade			= Upgrade_GondorBarracksLevel2
	TextLabel			= CONTROLBAR:ConstructGondorShieldGuardHorde
	ButtonImage			= BGBarracks_TowerGuard
	ButtonBorderType    		= BUILD 
	DescriptLabel       		= CONTROLBAR:ToolTipBuildGondorShieldGuardHorde
	Radial				= Yes
	InPalantir			= Yes
	ShowProductionCount		= Yes      
End

As you can see, you should uncomment unnecesary parts of code, that makes units avaiable at higher level of building - "NEED_UPGRADE" and "NeededUpgrade            = Upgrade_GondorBarracksLevel2"

And that's it!

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 yakuzaBoss

yakuzaBoss
  • Members
  • 85 posts

Posted 20 March 2015 - 09:12 PM

How to totally remore structure upgrades and how to unlock all the units and unit upgrades?



#2 Suchar

Suchar

    Suchy

  • Members
  • 100 posts
  • Location:Poland
  • Projects:PRO MOD
  •  Lonely coder

Posted 21 March 2015 - 07:41 AM   Best Answer

Well, it's pretty simple.

First, find commandset.ini file, and commandset of structure you want to edit.

I will use gondorbarrackscommandset, for example.

CommandSet GondorBarracksCommandSet
  	1	= Command_ConstructGondorFighterHorde
	2 	= Command_ConstructRohanSpearmenHorde
  	3	= Command_ConstructGondorTowerShieldGuardHorde
  	4 	= Command_PurchaseUpgradeGondorBarracksLevel2
  	6	= Command_Sell
End

Just uncomment "Command_PurchaseUpgradeGondorBarracksLevel2" part of code, so it will looks like:

CommandSet GondorBarracksCommandSet
  	1	= Command_ConstructGondorFighterHorde
	2 	= Command_ConstructRohanSpearmenHorde
  	3	= Command_ConstructGondorTowerShieldGuardHorde
; 	4 	= Command_PurchaseUpgradeGondorBarracksLevel2
  	6	= Command_Sell
End

and you will be unable to upgrade barracks.

Next, find all build commands of units, that aren't avaiable at first level of structure.

In gondor barracks, it will be: "Command_ConstructGondorTowerShieldGuardHorde"

Copy it, and search for it in commandbutton.ini:

CommandButton Command_ConstructGondorTowerShieldGuardHorde
	Command				= UNIT_BUILD
	Object				= GondorTowerShieldGuardHorde
	Options				= NEED_UPGRADE CANCELABLE
	NeededUpgrade			= Upgrade_GondorBarracksLevel2
	TextLabel			= CONTROLBAR:ConstructGondorShieldGuardHorde
	ButtonImage			= BGBarracks_TowerGuard
	ButtonBorderType    		= BUILD 
	DescriptLabel       		= CONTROLBAR:ToolTipBuildGondorShieldGuardHorde
	Radial				= Yes
	InPalantir			= Yes
	ShowProductionCount		= Yes      
End

Now, we must edit that command button:

CommandButton Command_ConstructGondorTowerShieldGuardHorde
	Command				= UNIT_BUILD
	Object				= GondorTowerShieldGuardHorde
	Options				= CANCELABLE ;NEED_UPGRADE
;	NeededUpgrade			= Upgrade_GondorBarracksLevel2
	TextLabel			= CONTROLBAR:ConstructGondorShieldGuardHorde
	ButtonImage			= BGBarracks_TowerGuard
	ButtonBorderType    		= BUILD 
	DescriptLabel       		= CONTROLBAR:ToolTipBuildGondorShieldGuardHorde
	Radial				= Yes
	InPalantir			= Yes
	ShowProductionCount		= Yes      
End

As you can see, you should uncomment unnecesary parts of code, that makes units avaiable at higher level of building - "NEED_UPGRADE" and "NeededUpgrade            = Upgrade_GondorBarracksLevel2"

And that's it!



#3 yakuzaBoss

yakuzaBoss
  • Members
  • 85 posts

Posted 21 March 2015 - 07:52 AM

Thanks so much for the exhaustive answer  :thumbsupxd:

Do I have to edit also the lotr.str for example for the descriptions of the upgrades?



#4 Suchar

Suchar

    Suchy

  • Members
  • 100 posts
  • Location:Poland
  • Projects:PRO MOD
  •  Lonely coder

Posted 21 March 2015 - 12:46 PM

Yes, I forgot about it. Without it, it will look strange  :p

 

Find "CONTROLBAR:ToolTipBuildGondorShieldGuardHorde" in lotr.str

CONTROLBAR:ToolTipBuildGondorShieldGuardHorde
"Requires Level 2 Barracks \n Strong vs. Cavalry"
END

You can edit this description so it will looks like:

CONTROLBAR:ToolTipBuildGondorShieldGuardHorde
"Strong vs. Cavalry"
END

:thumbsuphappy:



#5 yakuzaBoss

yakuzaBoss
  • Members
  • 85 posts

Posted 22 March 2015 - 09:28 AM

It worked! Thanks a lot  :thumbsupxd:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users