Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 7:38 pm
All times are UTC + 0
SHP problem
Moderators: Global Moderators, Media Hut Moderators, Red Alert 2 Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
ra2yraddict
Vehicle Driver


Joined: 19 Feb 2010
Location: USA

PostPosted: Sat May 29, 2010 12:48 am    Post subject:  SHP problem Reply with quote  Mark this post and the followings unread

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

Rules:
1152=GAAIRCB
1153=GAAIRCB_A
1154=GAAIRCB_B
1155=GAAIRCB_C
1156=GAAIRCBBB
1157=GAAIRCBMK

[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. Smile

Back to top
View user's profile Send private message
Cranium
Defense Minister


Joined: 05 Dec 2009
Location: USA

PostPosted: Sat May 29, 2010 1:11 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message Visit poster's website Skype Account
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat May 29, 2010 1:19 am    Post subject: Reply with quote  Mark this post and the followings unread

What are the names you used for the shp files?

If it only works on snow maps then I presume they are the same as what you have used in the ini code (i.e. they start with GA).

Because you are using NewTheater=yes tho the files should all start GG.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
ra2yraddict
Vehicle Driver


Joined: 19 Feb 2010
Location: USA

PostPosted: Sun May 30, 2010 5:09 am    Post subject:   Reply with quote  Mark this post and the followings unread

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!
Very Happy

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1430s ][ Queries: 11 (0.0075s) ][ Debug on ]