Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
300 stars 95 forks source link

Latest Nightly building with Kratos, when aircraft crashes to a higher level terrain ground game crashes. #1361

Open itsyuribri opened 3 months ago

itsyuribri commented 3 months ago

Description

except (1).txt

My unit is using the Kratos Attachment logic and when the aircraft dies crashing to the ground, for some reason it works fine when crashing (Creating a hull using Phobos with a deathweapon) on a lower ground, but if its on a mountain or higher terrain level, the game crashes, it doesnt matter what attachmenttype is used, however it works fine in the latest dev build 43, and also if i remove the kratos attach logic when using the nightly build. It also works fine if i remove the deathweapon from the unit when using the nightly build

https://drive.google.com/file/d/1x38D_nZo-tsQm8YP_BxrcCEPk2dotSOo/view?usp=sharing (dmp file)

debug (1).log

Phobos Version

Nightly Build 28526aa9385e08cb4f456935a05226e8a511c0e0 @ refs/pull/1344/merge

Conditions to reproduce

Nightly Build 28526aa9385e08cb4f456935a05226e8a511c0e0 @ refs/pull/1344/merge

INI code

[UF22]
AttachEffectTypes=StandTrophy2System

[TROP]
DamageText.Hidden=yes
HealthText.Hidden=yes
Selectable=no
HealthBarSHP=INVISO
Image=DOTSHELL
Crewed=no
CanBeReversed=no
HunterSeeker.Ignore=yes
EVA.Lost=none
Promote.VeteranSound=none
Promote.EliteSound=none
EVA.VeteranPromoted=none
EVA.ElitePromoted=none
Insignia.Rookie=INVISO
Insignia.Veteran=INVISO
Insignia.Elite=INVISO
Primary=AALaserWeapon2
ElitePrimary=AALaserWeapon2
UIName=NOSTR:Laser Intercept Turret
Name=Laser Intercept Turret
Prerequisite=GADUMY
Armor=FakeArmor
Strength=400
Category=AFV
TargetLaser=no
TechLevel=-1
Sight=8
Speed=4  ;6
CrateGoodie=no
Crusher=yes
AutoCrush=yes
Owner=Neutral
AIBuildThis=no
Cost=10
Points=1
ROT=5
IsSelectableCombatant=yes
Interceptor=true
Interceptor.Weapon=0
Interceptor.CanTargetHouses=enemies
Interceptor.GuardRange=7
Interceptor.DeleteOnIntercept=false        ; boolean
Interceptor.WeaponReplaceProjectile=false  ; boolean
Interceptor.WeaponCumulativeDamage=false   ; boolean
Interceptor.KeepIntact=false               ; boolean
Maxdebris=3
AllowedToStartInMultiplayer=no
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Destroyer
ThreatPosed=0
Turret=yes
OpportunityFire=yes

[StandTrophy2System]
Stand.Type=TROP
Stand.Offset=0,0,0
Stand.PromoteFormMaster=yes
Stand.ExperienceToMaster=1
Stand.SameTarget=no
Stand.SameLoseTarget=no
Stand.DrawLayer=Top
Stand.ZOffset=12
Stand.VirtualUnit=yes
Stand.IsOnTurret=yes

Steps to reproduce

1. 2. 3. ...

Expected behaviour

creating a hull regardless of terrain height

Actual behaviour

crashes

Additional context

When crashing on a lower ground https://imgur.com/a/Hmco8Wc

When crashing on a higher ground https://imgur.com/a/BqffP5l

Checklist