Jump to content


Yamaneco

Member Since 27 Feb 2012
Offline Last Active Mar 17 2016 09:36 PM

Topics I've Started

Bug with Fire Munitions

27 February 2012 - 03:10 PM

BFME II.

I have a bug with Flaming Munitions (upgrade of the fortress of Mordor). If i purchase it, then after buy Lata Moat, Flaming Munitions again available for buy, button is active, but i see text "This upgrade has already been purchased." and pressing on button in vain.

In a file upgrade.ini I have found out these lines:

////---- MORDOR ---------------------------------------------------------------------

////Mordor Fortress Upgrades
Upgrade Upgrade_MordorFortressFireArrowsTrigger //// You actually buy this one, which gives the one below to the whole castle
	Type			= PLAYER;OBJECT
	BuildCost		= MORDOR_FIREARROWS_BUILDCOST
	BuildTime		= MORDOR_FIREARROWS_BUILDTIME
	DisplayName			= UPGRADE:FortressFireArrows
	ResearchSound	= UpgradeMordorFortressFlamingMunitions
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

Upgrade Upgrade_MordorFortressMorgulSorceryTrigger
	Type				= OBJECT
	BuildCost			= MORDOR_MORGULSORCERY_BUILDCOST
	BuildTime			= MORDOR_MORGULSORCERY_BUILDTIME
	DisplayName			= UPGRADE:FortressMorgulSorcery
	ResearchSound		= UpgradeMordorFortressMorgulSorcery
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

Upgrade Upgrade_MordorFortressMorgulSorcery
	Type			= OBJECT
	BuildCost		= MORDOR_MORGULSORCERY_BUILDCOST
	BuildTime		= MORDOR_MORGULSORCERY_BUILDTIME
	DisplayName			= UPGRADE:FortressMorgulSorcery
;ResearchSound	= UpgradeMordorFortressMorgulSorcery
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

Upgrade Upgrade_MordorFortressDoomPyres
	Type			= OBJECT
	BuildCost		= MORDOR_DOOMPYRES_BUILDCOST
	BuildTime		= MORDOR_DOOMPYRES_BUILDTIME
	DisplayName			= UPGRADE:FortressDoomPyres
	ResearchSound	= UpgradeMordorFortressDoomPyres
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

Upgrade Upgrade_MordorFortressMagmaCauldrons
	Type			= OBJECT
	BuildCost		= MORDOR_MAGMACAULDRONS_BUILDCOST
	BuildTime		= MORDOR_MAGMACAULDRONS_BUILDTIME
	DisplayName			= UPGRADE:FortressMagmaCauldrons
	ResearchSound	= UpgradeMordorFortressMagmaCauldron
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

Upgrade Upgrade_MordorFortressLavaMoat
	Type			= OBJECT
	BuildCost		= MORDOR_LAVAMOAT_BUILDCOST
	BuildTime		= MORDOR_LAVAMOAT_BUILDTIME
	DisplayName			= UPGRADE:FortressLavaMoat
	ResearchSound	= UpgradeMordorFortressLavaMoat
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

////Mordor Fortress Monument
Upgrade Upgrade_MordorFortressGorgorothSpire
	Type			= OBJECT
	BuildCost		= MORDOR_GORGOROTHSPIRE_BUILDCOST
	BuildTime		= MORDOR_GORGOROTHSPIRE_BUILDTIME
	DisplayName		= UPGRADE:FortressGorgonothSpire
	ResearchCompleteEvaEvent	= UpgradeGorgonothSpire
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

;--------------------------

Source:
---------------------------------
Upgrade Upgrade_MordorFortressFireArrowsTrigger //// You actually buy this one, which gives the one below to the whole castle
	Type			= PLAYER;OBJECT
	BuildCost		= MORDOR_FIREARROWS_BUILDCOST
	BuildTime		= MORDOR_FIREARROWS_BUILDTIME
	DisplayName			= UPGRADE:FortressFireArrows
	ResearchSound	= UpgradeMordorFortressFlamingMunitions
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

I have changed type player to type object and have received it:

Upgrade Upgrade_MordorFortressFireArrowsTrigger //// You actually buy this one, which gives the one below to the whole castle
	Type			= OBJECT;PLAYER
	BuildCost		= MORDOR_FIREARROWS_BUILDCOST
	BuildTime		= MORDOR_FIREARROWS_BUILDTIME
	DisplayName			= UPGRADE:FortressFireArrows
	ResearchSound	= UpgradeMordorFortressFlamingMunitions
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK;;AI_UPGRADEHEURISTIC_FORTRESS
End

And almost all is good. Button "Fire Munitions" doesn't become again active after purchase "Lava Moat".
But there is much more awful problem.
Archers on the barricades attached to a fort, don't receive fiery arrows.

Somebody can help me? :?:

P.S. Sorry for bad english.