FBI file problem

FBI file problem

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Sorn
Posts: 28
Joined: 08 Aug 2005, 07:00

FBI file problem

Post by Sorn »

Odd behaviour happens when you use the ExtractsMetal tag in FBI files. If its greater then 0, it caused my flying unit to fly to the upper left hand corner, and was not clickable or controllable.

Bad Code

Code: Select all

//Energy and metal related
	BuildCostEnergy=6849;
	BuildCostMetal=254;
	EnergyMake=8;
	EnergyStorage=0;
	EnergyUse=0.8;
	ExtractsMetal=0.003;
	MakesMetal=1;
	MetalMake=0.5;
	MetalStorage=0;
	MetalUse=1.0;
	TidalGenerator=0;
	WindGenerator=0;
Good Code

Code: Select all

//Energy and metal related	
  BuildCostEnergy=6849;
	BuildCostMetal=254;
	EnergyMake=8;
	EnergyStorage=0;
  EnergyUse=0.8;	
  ExtractsMetal=0; // If greater then 0, makes unit unuseable
  MakesMetal=0;
  MetalMake=0;
  MetalStorage=0;
  MetalUse=0;
	TidalGenerator=0;
	WindGenerator=0;
This happens with the good code as it is, but the extractsmetal was set to 0.003 and the behaviour still occured.
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

If Taspring detects the extract metal tag it assumes that the unit is a metal extracting building. Maybe it will still give it a movetype based on other stuff, not sure.
Sorn
Posts: 28
Joined: 08 Aug 2005, 07:00

Post by Sorn »

Gives someone something interesting to look into. If thats the case, then maybe buildings are trying to move all the time. 8)

One less thing to cause problems/conflicts.
Post Reply

Return to “Help & Bugs”