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 Thu Mar 28, 2024 1:19 pm
All times are UTC + 0
could someone tell me whats wrong with this code
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [10 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Mon Nov 12, 2018 6:31 pm    Post subject:  could someone tell me whats wrong with this code
Subject description: air pad is not appearing in the building menu of the game
Reply with quote  Mark this post and the followings unread

[AAHPAD]
Remapable=yes
Cameo=PADICON
Foundation=2x2
Height=1
Flat=yes
Buildup=AAHPADMK
DemandLoadBuildup=true
FreeBuildup=true
BibShape=AAHPADBB
ZShapePointMove=60,30
NewTheater=yes
DockingOffset0=-128,-128,0
DockingOffset1=-128,128,0
DockingOffset2=128,-128,0
DockingOffset3=128,128,0
ActiveAnim=GAAIRC_A
ActiveAnimX=-31
ActiveAnimY=-13
ActiveAnimZAdjust=0
ActiveAnimYSort=362
ActiveAnimDamaged=GAAIRC_AD
CanHideThings=False
CanBeHidden=False

[BuildingType]

411=AAHPAD

[AI]

;BuildHelipad=GAAIRC,AMRADR,AAHPAD

[Allied Buildings]

;Air Pad
[AAHPAD]
UIName=name:AAHPAD
Name=Allied Air Pad
BuildCat=Tech
Prerequisite=GAPOWR,GAAIRC
Strength-250
Armor-wood
TechLevel=3
Sight=1
Adjacent=1
BaseNormal=no
UnitReload=yes
Helipad=yes
Factory=AircraftType
Owner=British,French,Germans,Americans,Alliance
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=500
Points=50
power=-25
Capturable=yes
Spyable=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
AIBuildThis=yes
NumberOfDocks=4
HasStupidGuardMode=false
ImmuneToPsionics=no ; defaults to yes for buildings, no for others




(added the string into Ra2md.csf file)

Back to top
View user's profile Send private message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Mon Nov 12, 2018 6:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Unrelated, but still:

Strength-250
Armor-wood

instead of
Strength=250
Armor=wood

The rest looks fine...
No idea.

_________________
One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done. #Tongue

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID YouTube User URL Twitter Channel URL Skype Account
WoodleMyNoodle
Cyborg Soldier


Joined: 09 Apr 2018

PostPosted: Mon Nov 12, 2018 7:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

TAK is correct, but are you having any issues that we should be aware of? Would be great if we knew what to look for.  Smile

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Mon Nov 12, 2018 7:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

There should be theater specific graphics or generic like aghpad.shp in your expandmdXX.mix (XX in 02 to 99).

Also in code:
UIName=name:AAHPAD -> UIName=Name:AAHPAD
power=-25 -> Power=-25

For strings, if you are using Ares with YR 1.001, can just use like UIName=NOSTR:Allied Air Pad, instead of using ra2md.csf, check here.

Back to top
View user's profile Send private message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Mon Nov 12, 2018 7:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

I have fixed the mistakes in the code, but it hasnt made any difference at all. Im not using any patches such as ares or npatch since im a newbie in modding and am still learning as time goes by.

Sorry i cant really tell any more wether or not i am having any issues as i dont know what to look out for

Its basically an airpad taken off the allied airforce command since having to keep building the radar annoys me so i just wanted the pad to have planes land on

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Mon Nov 12, 2018 7:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Is 411= already used in [BuildingTypes] ?

Back to top
View user's profile Send private message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Mon Nov 12, 2018 7:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

No its the last number on the buildings type list

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Mon Nov 12, 2018 7:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Make some other change in your rules file and check whether that is taking effect.

Back to top
View user's profile Send private message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Mon Nov 12, 2018 8:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

I wonder if i was to take GAAIRC_A animation and was to rename it to AAHPAD_A and use it, would it make a difference as i have tried few ways now, but it has still not appeared in my taskbar as of now


Edit: still no luck Sad

Back to top
View user's profile Send private message
Renu48
Cyborg Soldier


Joined: 11 Nov 2018

PostPosted: Mon Nov 12, 2018 10:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

final update. i finally got the code working. i am not gonna question why but few things don't make sense but it is what it is. i want to thank everyone who helped me spot few mistakes i did have i'm my code and people contributing to my mod in any shape or form.

here is my final functioning version of my code:

;Air pad
[AAHPAD]
Remapable=yes
Cameo=PADICON
Foundation=2x2
Height=1
Flat=yes
Buildup=AAHPADMK
DemandLoadBuildup=true
FreeBuildup=true
BibShape=AAHPADBB
ZShapePointMove=60,30
NewTheater=yes
DockingOffset0=-128,-128,0
DockingOffset1=-128,128,0
DockingOffset2=128,-128,0
DockingOffset3=128,128,0
ActiveAnim=GAAIRC_A
ActiveAnimX=-31
ActiveAnimY=-13
ActiveAnimZAdjust=0
ActiveAnimYSort=362
ActiveAnimDamaged=GAAIRC_AD
CanHideThings=False
CanBeHidden=False

[AAHPADBB]
Layer=ground

[BuildingType]

411=AAHPAD

[Animations]

1074=AAHPAD_A
1075=AAHPAD_AD

1076=AAHPADMK

[AI]

;BuildHelipad=GAAIRC,AMRADR,AAHPAD

[Allied Buildings]

;Allied Air Pad
[AAHPAD]
UIName=Name:AAHPAD
Name=Allied Air Pad
BuildCat=Tech
Prerequisite=RADAR
Strength=400
Armor=wood
Adjacent=2
TechLevel=3
Sight=1
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
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=500
Points=50
power=-25
Factory=AircraftType
Capturable=yes
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnim=Dbris1sm,Dbris1lg,Dbris4sm,Dbris5sm,Dbris4lg,Dbris7sm,Dbris8sm,Dbris5lg,Dbris4lg
MaxDebris=8
MinDebris=4
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=75, 270, 140
AIBuildThis=yes;GEF it's the new radar, the computer needs to be able to build it now for prereqs. AIBuildThis=no ; ;took it out at HY's request -DB To fool the player -- it's not like it's necessary.
BaseNormal=yes
NumberOfDocks=4
HasStupidGuardMode=false
RadarVisible=yes;gs put on radar even if insignificant and unowned (insignificant and owned is a UC building)
TogglePower=no
Spyable=no
ImmuneToPsionics=no ; defaults to yes for buildings, no for others

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 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.1400s ][ Queries: 11 (0.0080s) ][ Debug on ]