Jump to content


Photo

Bug with Fire Munitions


  • Please log in to reply
3 replies to this topic

#1 Yamaneco

Yamaneco
  • New Members
  • 3 posts

Posted 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.

Edited by Yamaneco, 27 February 2012 - 03:12 PM.


#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 27 February 2012 - 08:42 PM

You need it as player... otherwise they can't get it.. -_-
There is a reason its called Player not Object, object is for the object that buys it, while player is for the objects belonging to the player.
Ridder Geel

#3 Yamaneco

Yamaneco
  • New Members
  • 3 posts

Posted 28 February 2012 - 09:40 AM

It is clear. But how to correct a bug?

#4 Yamaneco

Yamaneco
  • New Members
  • 3 posts

Posted 28 February 2012 - 06:08 PM

Solved.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users