Page 1 of 1

FBI file problem

Posted: 07 Sep 2005, 00:18
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.

Posted: 07 Sep 2005, 09:41
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.

Posted: 07 Sep 2005, 20:13
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.