logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,581
Total Threads: 8,669
Posts: 94,548

Administrators:
DeeZire, Redemption

There are currently 52 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


LOTR: Battle For Middle Earth I & II Editing Discuss any modding related issues to do with the Lord Of The Rings: Battle For Middle Earth I and II RTS games here.

Reply
 
LinkBack Thread Tools
Old 07-09-2005, 11:16 PM   #1 (permalink)
Member
 
Join Date: Jan 2005
Posts: 51
Default Upgrade Pains

I've been able to get upgrades to work beautifully, but for some reason this one won't budge. Here is the relevant code:

Code:
CommandButton Command_PurchaseUpgradeISD1
  Command          = OBJECT_UPGRADE
  Upgrade          = Upgrade_ImperatorISD1
  Options	   = OK_FOR_MULTI_SELECT CANCELABLE
  TextLabel        = CONTROLBAR:UpgradeISD1
  ButtonImage      = UIISD1
  ButtonBorderType = UPGRADE
  DescriptLabel    = CONTROLBAR:ToolTipUpgradeISD1
  InPalantir	   = Yes
End
This is the button for the upgrade that is in the units commandset which references to:

Code:
Upgrade Upgrade_ImperatorISD1
	DisplayName       = UPGRADE:ISD1
	Type              = OBJECT
	Tooltip		= TOOLTIP:ISD1
	BuildCost		= 5
	BuildTime		= 10.0
	ResearchSound	= UpgradeFlamingArrows
	UpgradeFX		= FX:GenericBuildingUpgrade
End
And finally the code within the units ini file:
Code:
;;;;;;;;;;;;;;;;;;;;;Class I Upgrade;;;;;;;;;;;;;;;;;;;;;;;;;;;;

 	Behavior = SubObjectsUpgrade ModuleTag_ShowISD1 
		TriggeredBy	= Upgrade_ImperatorISD1
		ShowSubObjects	= QUADL QUADR ISD1
	End

	Behavior = WeaponSetUpgrade WeaponSetUpgradeModuleTag
		TriggeredBy = Upgrade_ImperatorISD1
	End
And heres a bit that hides the subobjects so the upgrade can show them.
Code:
	Behavior = SubObjectsUpgrade ModuleTag_HideUpgrades
		TriggeredBy	= Upgrade_StructureLevel1
		HideSubObjects	= QUADL QUADR ISD1 ISD2
	End
Ok, the problem is the upgrade button is greyed out. Here are things i have tried:

- Changed it from an OBJECT upgrade to a PLAYER upgrade. This made the button clickable, but you could click it indefinitely and nothing would happen.

- I tried each of the behavior modules seperately, but no combination worked, and without any modules the button of course says "this unit cannot recieve this upgrade".

I've tried numerous other things, but nothing has worked. What could possibly be wrong? Did I forget something?
Gondolin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PDL Upgrade ed3891 Generals & Zero Hour Editing 3 07-16-2006 05:23 PM
Upgrade... Then Upgrade Again Straxovich Generals & Zero Hour Editing 3 05-28-2004 12:03 AM
OBJECT UPGRADE VS PLAYER UPGRADE Hostile Generals & Zero Hour Editing 2 05-24-2004 04:58 AM
General Pains Ultra Mod ! Ready to download @cnc-sector.com General-Pain Generals & Zero Hour Editing 19 04-05-2003 12:29 AM
Help with upgrade??? Nuker Generals & Zero Hour Editing 10 04-04-2003 07:36 PM


All times are GMT -4. The time now is 06:37 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.