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 2:13 am
All times are UTC + 0
Enabling Sandbags
Moderators: Global Moderators, Red Alert 2 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
A.Romanov
Civilian


Joined: 06 Aug 2015
Location: Kremlin, Moscow

PostPosted: Thu Aug 06, 2015 4:16 pm    Post subject:  Enabling Sandbags Reply with quote  Mark this post and the followings unread

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.

Here's the code I've added:

Art.ini:
Code:

;Allied Sandbags
[GASAND]
Cameo=SANDBAGICON
Foundation=1x1
ToOverlay=GASAND
DamageLevels=2
NewTheater=yes

;Soviet Sandbags
[NASAND]
Cameo=SANDBAGICON
Foundation=1x1
ToOverlay=NASAND
DamageLevels=2
NewTheater=yes


Rules.ini:
Code:

;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

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Fri Aug 07, 2015 12:03 am    Post subject: Reply with quote  Mark this post and the followings unread

Hey  Smile  ,

1 this is all you need=

[GASAND]
Cameo=SBAGICON
Foundation=1x1
ToOverlay=GASAND
DamageLevels=2
NewTheater=yes

; 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 Smile


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.

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Aug 07, 2015 6:06 am    Post subject: Reply with quote  Mark this post and the followings unread

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

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Fri Aug 07, 2015 5:41 pm    Post subject:   Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
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



+1

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.1872s ][ Queries: 11 (0.0074s) ][ Debug on ]