Posted: Thu Aug 06, 2015 4:16 pm Post subject:
Enabling Sandbags
Hello everyone, I was just wondering whether someone could possibly tell me how to enable sandbags to be built for both the Allies and Soviets please, many thanks.
Note: the Soviet Sandbags are buildable, but they don't appear when placed. Although they can be sold like any other building. And I've also added the NASAND ui name to the RA2.csf file.
;Allied Sandbags
[GASAND]
UIName=Name:GASAND
Name=Sandbags
BuildCat=Combat
Strength=300
Prerequisite=GAPILE
Armor=wood
CrushSound=WallCrushSandbag
Crushable=yes
TechLevel=1
Adjacent=8
Wall=yes
Sight=1
Nominal=yes
Selectable=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=75
Insignificant=yes
Points=1
Repairable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
ThreatPosed=0 ; This value MUST be 0 for all building addons
;IsBase=no
BaseNormal=no ;psst....IsBase isn't a Rules flag
AIBuildThis=yes
GuardRange=5
;Soviet Sandbags
[NASAND]
UIName=Name:NASAND
Name=Sandbags
BuildCat=Combat
Strength=300
Prerequisite=NAHAND
Armor=wood
CrushSound=WallCrushSandbag
Crushable=yes
TechLevel=1
Adjacent=8
Wall=yes
Sight=1
Nominal=yes
Selectable=no
Owner=Russians,Confederation,Africans,Arabs,British,French,Germans,Americans,Alliance
AIBasePlanningSide=1 ;gs 0 for Good, 1 for Evil
Cost=75
Insignificant=yes
Points=1
Repairable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
ThreatPosed=0 ; This value MUST be 0 for all building addons
;IsBase=no
BaseNormal=no ;psst....IsBase isn't a Rules flag
AIBuildThis=yes
GuardRange=5
; sandbag wall
[GASAND]
UIName=Name:GASAND
Name=Sandbags
BuildCat=Combat
Strength=100
Prerequisite=BARRACKS
Armor=wood
CrushSound=WallCrushSandbag
Crushable=yes
Wall=yes
TechLevel=1
Adjacent=8
Sight=0
Nominal=yes
Selectable=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Cost=50
Insignificant=yes
Points=1
Repairable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
ThreatPosed=0 ; This value MUST be 0 for all building addons
;IsBase=no
BaseNormal=no ;psst....IsBase isn't a Rules flag
AIBuildThis=no
GuardRange=5 ;or more
This is one option because Barracks refers to all listed as PrerequisiteBarracks so Soviet, Allied and Yuri
2. If you only want it for Allied and Soviet seperately you have to use this:
[GASAND]
UIName=Name:GASAND
Name=Sandbags
BuildCat=Combat
Strength=100
Prerequisite=GACNST
Armor=wood
CrushSound=WallCrushSandbag
Crushable=yes
Wall=yes
TechLevel=1
Adjacent=8
Sight=0
Nominal=yes
Selectable=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Cost=50
Insignificant=yes
Points=1
Repairable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
ThreatPosed=0 ; This value MUST be 0 for all building addons
;IsBase=no
BaseNormal=no ;psst....IsBase isn't a Rules flag
AIBuildThis=no
GuardRange=10
(and the second building)
[SASAND] or your name for soviet wall
Image=GASAND UIName=Name:SASAND
Name=Sandbags
BuildCat=Combat
Strength=100
Prerequisite=NACNST
Armor=wood
CrushSound=WallCrushSandbag
Crushable=yes
Wall=yes
TechLevel=1
Adjacent=8
Sight=0
Nominal=yes
Selectable=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Cost=50
Insignificant=yes
Points=1
Repairable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
ThreatPosed=0 ; This value MUST be 0 for all building addons
;IsBase=no
BaseNormal=no ;psst....IsBase isn't a Rules flag
AIBuildThis=no
GuardRange=10
+ you have to ad SASAND to the building list XX=SASAND
the image= tag is very important - this is how you can clone existing buildings while keeping them all linked to one artmd.ini entry ...
3. There is another way, tell me if you need a even better but litttle bit more elaborated method. And don't worry this will work. I use similar codes myself - Bye
PS: Your Problem ocured because you linked [NASAND] in your artmd.ini to a non existing file NASAND.shp (by naming it NASAND the game assumes there is an shp image in it's folders! that is called NASAND) that is the one missing - to add it simply extract GASAND.SHP from the RA2 folder with XCC Mixer, rename it NASAND.SHP and put it in your RA2 game folder or into ecachexxmd.mix. QUICK_EDIT
There is no need to create/add a new SHP. You can simply make both use the same Overlay, while still having 2 different building entries, so you can give both a different cameo, cost whatever.
Art.ini:
;Allied Sandbags
[GASAND]
Cameo=SANDBAGICON
Foundation=1x1
ToOverlay=GASAND
DamageLevels=2
NewTheater=yes
;Soviet Sandbags
[NASAND]
Cameo=SANDBAGICON
Foundation=1x1
ToOverlay=GASAND ;let both use the same Overlay
NewTheater=yes _________________ SHP Artist of Twisted Insurrection: Nod buildings
There is no need to create/add a new SHP. You can simply make both use the same Overlay, while still having 2 different building entries, so you can give both a different cameo, cost whatever.
Art.ini:
;Allied Sandbags
[GASAND]
Cameo=SANDBAGICON
Foundation=1x1
ToOverlay=GASAND
DamageLevels=2
NewTheater=yes
;Soviet Sandbags
[NASAND]
Cameo=SANDBAGICON
Foundation=1x1
ToOverlay=GASAND ;let both use the same Overlay
NewTheater=yes
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