I'm trying to design a building similar to the GDI upgrade center. However when I place the upgrade the game will occasionally display the animation and will register the fact that it was placed but the upgrade has no effect besides taking up a slot. The game doesn't even give me the buildings that use the upgrade as a prerequisite.
Anyone know why?
Rules:
Code:
; construction yard
[GACNST]
UIName=Name:GACNST
Name=Allied Construction Yard
ConstructionYard=yes
Strength=1000
Armor=concrete
TechLevel=-1
Adjacent=2
Factory=BuildingType
UndeploysInto=AMCV
Sight=8
Owner=Americans
Cost=3000
Points=80
Power=0
Capturable=false
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
MaxDebris=15
MinDebris=7
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageSmokeOffset=1470, 1060, 1078
AIBuildThis=yes
TogglePower=no
ProtectWithWall=yes
EligibileForAllyBuilding=yes ;gs This allows a building of this type to count as a sucess in building placement, but only if that option is turned on
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
Upgrades=4
; Allied power plant
[GAPOWR]
UIName=Name:GAPOWR
Name=Allied Power Plant
BuildCat=Power
Prerequisite=GACNST
Armor=wood
TechLevel=1
Owner=Americans
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=800
Points=40
Power=200
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60,gtpowexp
PowersUpBuilding=gacnst
PowersUpToLevel=-1
ThreatPosed=0 ; This value MUST be 0 for all building addons
Crewed=no
Capturable=no
Spyable=no ; A spy can do something to this, works like captureable
DieSound=PowerPlantDie
ImmuneToPsionics=yes ; defaults to yes for buildings, no for others
Drainable=no
PoweredSpecial=no
Image=GAPOWR
AIBuildThis=yes
[GADRLL]
UIName=Name:GADRLL
Name=Drill
TechLevel=1
Sight=1
Points=30
Armor=wood
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
Capturable=no
ProduceCashAmount=500 ; Amount every Delay
ProduceCashDelay=200 ; Frame delay between Amounts
WorkingSound=OilDerrickLoop
Owner=Americans
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
PowersUpBuilding=gacnst
PowersUpToLevel=-1
ThreatPosed=0 ; This value MUST be 0 for all building addons
Crewed=no
Capturable=no
Image=GADRLL
Cost=500
Power=-30
BuildCat=Resource
Prerequisite=GACNST
AIBuildThis=yes
Art:
Code:
[GACNST]
Image=GACOMM
Remapable=yes
Foundation=3x3
Height=4
Buildup=GACNSTMK
DemandLoadBuildup=true
FreeBuildup=true
NewTheater=no
CanHideThings=True
CanBeHidden=False
OccupyHeight=3
DamageFireOffset0=-24,-1
DamageFireOffset1=64,36
PowerUp1LocXX=0
PowerUp1LocYY=0
PowerUp2LocXX=0
PowerUp2LocYY=0
PowerUp3LocXX=0
PowerUp3LocYY=0
PowerUp4LocXX=0
PowerUp4LocYY=0
[GAPOWR]
Normalized=yes
Remapable=yes
Cameo=POWRICON
NewTheater=no
Start=0
LoopStart=0
LoopEnd=3
LoopCount=-1
Rate=220
DetailLevel=2
Surface=yes
[GADRLL]
Normalized=yes
Remapable=yes
Cameo=REFICON
NewTheater=no
Start=0
LoopStart=0
LoopEnd=10
LoopCount=-1
Rate=220
DetailLevel=2
Surface=yes
Thanks.