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 Jan 23, 2025 1:18 am
All times are UTC + 0
Yuri Airpad Crashes The Game ?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
adamstrange
Chem Warrior


Joined: 07 Mar 2013

PostPosted: Sat Dec 07, 2024 9:12 pm    Post subject:  Yuri Airpad Crashes The Game ? Reply with quote  Mark this post and the followings unread

I don't know if this code is complete because I downloaded it from YR ARGENTINA'S site.
When the game goes to the loading screen, around 5 seconds later you see the computer's cursor so you know it crashed.

FROM THE INCLUDED CODES

[YAAIRPAD]
Remapable=yes
Cameo=YAAIRPADICON
Foundation=3x2
Height=7
Flat=yes ; while this is a valid BuilType flag, it does nothing.
Buildup=YAAIRPADMK
BibShape=YAAIRPADBB
ZShapePointMove=60,30 ; SJM is fixing zshape/zshapelocky problems, changed from 0,0
DemandLoadBuildup=true
FreeBuildup=true
NewTheater=yes
DockingOffset0=0,-128,0      ;-80,80,0
DockingOffset1=0,128,0       ;-80,-208,0
DockingOffset2=256,-128,0    ;208,80,0
DockingOffset3=256,128,0     ;208,-208,0
CanHideThings=True
CanBeHidden=False
OccupyHeight=3
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

------------------------------------------------------

Rules.ini

Put this in the [BuldingsTypes] section

XX=YAAIRPAD   (XX is a free number there)

------------------------------------------------------

And now put this somewhere in the rulesmd.ini:

[YAAIRPAD]
UIName=Name:YAAIRPAD
Name=Yuris Airpad
BuildCat=Tech
Prerequisite=YAREFN,YACNST
Strength=450
Armor=steel
Adjacent=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
ForbiddenHouses=Americans
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=450
Points=40
Power=-25
Factory=AircraftType
Capturable=true
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
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
NumberOfDocks=1
HasStupidGuardMode=false
Radar=no
Spyable=no
ImmuneToPsionics=no ; defaults to yes for buildings, no for others

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat Dec 07, 2024 9:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

AIBasePlanningSide= should be 2 (0=Allied, 1=Soviet, 2=Yuri) and NumberOfDocks= should be 4

These two issues will mean that the AI wont be able to build it and you'll only be able to build 1 plane, neither of them should cause a crash tho.

Have you added the building and the anims to the appropriate lists? And what (if any) troubleshooting/testing have you tried?

_________________



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
adamstrange
Chem Warrior


Joined: 07 Mar 2013

PostPosted: Sat Dec 07, 2024 10:27 pm    Post subject: Reply with quote  Mark this post and the followings unread


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


Joined: 30 Nov 2023
Location: Germany

PostPosted: Sun Dec 08, 2024 2:03 am    Post subject: Reply with quote  Mark this post and the followings unread

[General]
PrerequisiteRadar=YAAIRPAD

[AI]
BuildHelipad=YAAIRPAD
BuildRadar=YAAIRPAD

Back to top
View user's profile Send private message
adamstrange
Chem Warrior


Joined: 07 Mar 2013

PostPosted: Sun Dec 08, 2024 4:19 am    Post subject: Reply with quote  Mark this post and the followings unread

I have been at this for around 8 hours and no matter what I do this airpad crashes the game.

I'm also wasn't sure about the aircraft vxl and wonder if that file is corrupted.

Since this airpad was made for 1 aircraft, I deleted  3 ofthe ADDOCCUPY, REMOVEOCCUPY and DOCKING OFFSET lines of code and just left the first lines.
This did not work.

When I remove all traces of this yuri airpad code, including theSHP files from the MIX, instantly the game works.
Here is the full code along with the plane that goes to the pad.

[ARTMD]

[YAAIRPAD]
Remapable=yes
Cameo=YAAIRPADICON
Foundation=3x2
Height=7
Flat=yes ; while this is a valid BuilType flag, it does nothing.
Buildup=YAAIRPADMK
BibShape=YAAIRPADBB
ZShapePointMove=60,30 ; SJM is fixing zshape/zshapelocky problems, changed from 0,0
DemandLoadBuildup=true
FreeBuildup=true
NewTheater=yes
DockingOffset0=0,-128,0      ;-80,80,0
DockingOffset1=0,128,0       ;-80,-208,0
DockingOffset2=256,-128,0    ;208,80,0
DockingOffset3=256,128,0     ;208,-208,0
CanHideThings=True
CanBeHidden=False
OccupyHeight=3
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

[RULESMD]

[AI]
BuildHelipad=GAAIRC,AMRADR,YAAIRPAD                            
BuildRadar=GAAIRC,GAAIRB,NARADR,AMRADR,NAPSIS,YAAIRPAD

PrerequisiteRadar=GAAIRC,NARADR,AMRADR,NAPSIS,YAAIRPAD

BUILDING LIST
541=YAAIRPAD

ANIMATION LIST

1185=YAAIRPADMK
1186=YAAIRPADBB

[AIRCRAFT FOR AIRPAD]
[DRAGONON]
UIName=Name:DRAGONON
Name=DRAGONON
Image=DRAGONON
;Image=FALC
Prerequisite=RADAR
Primary=ValhalaMissile
ElitePrimary=ValgaMissile
CanPassiveAquire=yes ; Won't try to pick up own targets
CanRetaliate=yes; Won't fire back when hit
Strength=600
Category=AirPower
Armor=light
TechLevel=3
Sight=8
RadarInvisible=no
Landable=yes
MoveToShroud=yes
Dock=YAAIRPAD
Speed=16
PitchSpeed=0.9
PitchAngle=1.5
RollAngle=50
JumpjetCrash=25 ; Climb, but down
JumpjetHeight=2575
OmniFire=yes
Owner=YuriCountry
ForbiddenHouses=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs
Cost=1500
Points=20
ROT=6
Ammo=8
PipScale=Ammo
Crewed=yes
ConsideredAircraft=yes
AirportBound=yes
Explodes=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DeathWeapon=JetCrashExplosion
MaxDebris=58
IsSelectableCombatant=yes
;VoiceSelect=IntruderSelect
;VoiceMove=IntruderMove
;VoiceAttack=IntruderAttackCommand
;VoiceCrashing=IntruderVoiceDie
DieSound=JetAirExplo
MoveSound=IntruderMoveLoop
CrashingSound=IntruderDie
ImpactLandSound=RaiderDie
;ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=20 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=IntruderTakeOff ;Taking off
AuxSound2=IntruderLanding ;Landing
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF
Fighter=yes
AllowedToStartInMultiplayer=no
ImmuneToPsionics=yes
PreventAttackMove=yes
SelfHealing=yes
GuardRange=175


[ValhalaMissile]
Damage=150
ROF=50
Range=9
Projectile=AirToGroundMissile ;GEF was AAHeatSeeker2 ; was HeatSeeker
Speed=70
Warhead=ValWH
Report=IntruderAttack
Burst=1;2


[ValgaMissile]
Damage=200
ROF=50
Range=18
Projectile=AirToGroundMissile ;GEF was AAHeatSeeker2 ; was HeatSeeker
Speed=70
Warhead=ValHeadWH
Report=IntruderAttack
Burst=1;2


[ValWH]
Wall=yes
Wood=yes
CellSpread=2
PercentAtMax=1
Verses=100%,100%,100%,100%,100%,100%,100%,100%,50%,100%,100%
Conventional=yes
InfDeath=3
AnimList=S_CLSN16,S_CLSN22,S_CLSN30,S_CLSN42,S_CLSN58
ProneDamage=75%
PenetratesBunker=yes;If shot at a bunkered tank, no means the bunker gets the damage, yes means the unit does

[ValHeadWH]
Wall=yes
Wood=yes
CellSpread=4.5
PercentAtMax=1
Verses=200%,200%,200% 200%,100%,100%,100%,150%,20%,100%,100%
Conventional=yes
Fire=yes
Rocker=yes
InfDeath=4
AnimList=S_CLSN16,S_CLSN22,S_CLSN30,S_CLSN42,S_CLSN58
ProneDamage=95%
PenetratesBunker=yes

Back to top
View user's profile Send private message
McPwny
Chem Warrior


Joined: 29 Jan 2018

PostPosted: Sun Dec 08, 2024 9:15 am    Post subject: Reply with quote  Mark this post and the followings unread

YAAIRPADMK doesnt need to be defined as an animation or given a dedicated art.ini entry since buildup animations are handled with hardcoded
settings, but YAAIRPADBB should be defined with an art.ini entry. also; even though it is a bib, you should list it instead as an active animation and
use flat=yes to make it render underneath the aircraft. bib logic actually has hardcoded stuff attached to it that you arent going to want in your building.

_________________
visit my moddb profile for .shp downloads and stuff

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


Joined: 30 Nov 2023
Location: Germany

PostPosted: Sun Dec 08, 2024 7:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

[ValHeadWH]
Wall=yes
Wood=yes
CellSpread=4.5
PercentAtMax=1
Verses=200%,200%,200% 200%,100%,100%,100%,150%,20%,100%,100%
Conventional=yes
Fire=yes
Rocker=yes
InfDeath=4
AnimList=S_CLSN16,S_CLSN22,S_CLSN30,S_CLSN42,S_CLSN58
ProneDamage=95%
PenetratesBunker=yes

Verses= ???

there is a comma missing


[DRAGONON]
DeathWeapon=JetCrashExplosion ;test it without DeathWeapon

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