Posted: Sat May 29, 2010 12:48 am Post subject:
SHP problem
I recently downloaded Mig Eater's excellent "Allied Airfield" shp I then took my best shot at coding it into my art and rules ini files. But after testing, the
airfield is only visible on snow maps, and invisible on any other type of map.
These are the Art and Rules entries I used:
; Allied Airfield
[GAAIRCB]
Remapable=yes
Cameo=HELIICON
Foundation=3x5
Height=7
Flat=yes ; while this is a valid BuilType flag, it does nothing.
Buildup=GAAIRCBMK
BibShape=GAAIRCBBB
ZShapePointMove=60,30 ; SJM is fixing zshape/zshapelocky problems, changed from 0,0
DemandLoadBuildup=true
FreeBuildup=true
NewTheater=yes
DockingOffset0=40,-400,0
DockingOffset1=40,150,0
DockingOffset2=220,-150,0
DockingOffset3=220,400,0
ActiveAnim=GAAIRCB_A
ActiveAnimDamaged=GAAIRCB_AD
ActiveAnimZAdjust=0
ActiveAnimYSort=362
ActiveAnimTwo=GAAIRCB_B
ActiveAnimTwoDamaged=GAAIRCB_BD
ActiveAnimTwoZAdjust=0
ActiveAnimTwoYSort=362
ActiveAnimThree=GAAIRCB_C
ActiveAnimThreeDamaged=GAAIRCB_CD
ActiveAnimThreeZAdjust=-80
ActiveAnimThreeYSort=543
CanHideThings=True
CanBeHidden=False
OccupyHeight=2
AddOccupy1=-1,-1
AddOccupy2=-1,0
AddOccupy3=-2,-1
AddOccupy4=-3,-2
RemoveOccupy1=1,0
RemoveOccupy2=2,0
RemoveOccupy3=1,1
RemoveOccupy4=2,2
DamageFireOffset0=-36,23
DamageFireOffset1=-21,6
[GAAIRCBBB]
Layer=ground
; Active animation for airforce command.
[GAAIRCB_A]
Image=GAAIRCB_A ;Image=GAHPAD_A
Normalized=yes
LoopStart=0
LoopEnd=6
LoopCount=-1
Rate=100
Layer=ground
NewTheater=yes
;DetailLevel=1
Shadow=yes
; Damaged active animation for airforce command.
[GAAIRCB_AD]
Image=GAAIRCB_A ;Image=GAAIRCB_A
Normalized=yes
LoopStart=0
LoopEnd=6
LoopCount=-1
Rate=100
Layer=ground
;NewTheater=yes
;DetailLevel=1
Shadow=yes
; Active animation for airforce command.
[GAAIRCB_B]
Image=GAAIRCB_B ;Image=GAHPAD_A
Normalized=yes
LoopStart=0
LoopEnd=6
LoopCount=-1
Rate=220
Layer=ground
NewTheater=yes
;DetailLevel=1
Shadow=yes
; Damaged active animation for airforce command.
[GAAIRCB_BD]
Image=GAAIRCB_B
Normalized=yes
LoopStart=6
LoopEnd=12
LoopCount=-1
Rate=220
Layer=ground
;NewTheater=yes
;DetailLevel=1
Shadow=yes
; Active animation for airforce command.
[GAAIRCB_C]
Image=GAAIRCB_C ;Image=GAHPAD_A
Normalized=yes
LoopStart=0
LoopEnd=8
LoopCount=-1
Rate=220
Layer=ground
NewTheater=yes
;DetailLevel=1
Shadow=yes
; Damaged active animation for airforce command.
[GAAIRCB_CD]
Image=GAAIRCB_C
Normalized=yes
LoopStart=8
LoopEnd=16
LoopCount=-1
Rate=220
Layer=ground
;NewTheater=yes
;DetailLevel=1
Shadow=yes
[GAAIRCB]
UIName=Name:GAAIRCB
Name=Allied AirfieldBuildCat=Tech
Prerequisite=GAWEAP
Strength=2000
Armor=steel
Adjacent=20 ;2
TechLevel=3
Sight=5
UnitReload=yes
;UnitRepair=yes;gs this is part of reloading + being an aircraft (Repair code is oogly, only Reload got rewritten for four ports.)
Helipad=yes
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
RequiredHouses=Americans
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=3000
Points=140
Power=-50
Factory=AircraftType
Capturable=true
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=4
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=75, 270, 140
AIBuildThis=yes
NumberOfDocks=4
HasStupidGuardMode=false
Radar=yes
Spyable=yes
SuperWeapon=AmericanParaDropSpecial
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
Have I done something wrong, or could there be something wrong with the shp? Any ideas would be GREATLY appreciated. Thanks. QUICK_EDIT
Having NewTheater=yes and only having the GA which represents Artic "SnowTheater" will only allow it to show in Snow maps. So either remove NewTheater=yes or clone the shp's and rename them with GT,GU, etc. QUICK_EDIT
Thanks for the replies, Mig Eater and Cranium. I renamed the shp "GBAIRC"
and left the comment "NewTheater=yes" in place, and it is now fully visible
on all maps. The Allied Airfield was definitely worth the effort to add to my
YR. By the way, Mig, it makes a much better place to launch YOUR excellent "B-1B Lancer" bombers from than those that came with the game. I especially like way the planes take up a slightly staggered pattern on the pad. Again, Thanks for the assist!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum