Phobos-developers / Phobos

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

Internal Error caused by custom missile. #1297

Open silentrzk opened 5 days ago

silentrzk commented 5 days ago

Description

I created a unit that spawns a missile that is animated by using a single dot voxel and placing an AttachEffect animation. It did not give me an IE at first on build 37 I think but for some reason it gave me on the latest build. The IE happens when the unit launches the missile. The IE triggers randomly, sometimes it triggers instantly the moment the unit launches a missile but sometimes it triggers after 2 or 3 more launches.

I'm using Kratos version 0.1.15

Phobos Version

Dev Build 42

Conditions to reproduce

No response

INI code

[AircraftTypes]
100=TESTMISL

[TESTMISL]
Image=HACKDUMMY ; Single dot voxel
Name=Test Missile
FireAngle=1
Strength=250
Category=AirPower
Armor=special_2
Spawned=yes
MissileSpawn=yes
ProtectedDriver=yes
TechLevel=11
Sight=0
AttachEffect.Animation=ANIMMISL
AttachEffect.PenetratesIronCurtain=yes
AttachEffect.Duration=20
EMP.Threshold=no
LegalTarget=no
Insignificant=yes
RadarInvisible=yes
Landable=yes
MoveToShroud=yes
Ammo=1
Speed=18
Owner=Allied,Soviet,Yuri
Cost=50
Points=5
ROT=32
Crewed=no
Explodes=no
GuardRange=30
MinDebris=0
MaxDebris=0
Locomotor={B7B49766-E576-11d3-9BD9-00104B972FE8}
MovementZone=Fly
ThreatPosed=10
NoShadow=yes
Selectable=no
Trainable=no
DontScore=yes
Smoke.Anim=INVISO
Smoke.ChanceRed=0
Smoke.ChanceDead=0
Missile.Custom=yes
Missile.PauseFrames=5
Missile.TiltFrames=10
Missile.PitchInitial=1
Missile.PitchFinal=1
Missile.TurnRate=1
Missile.RaiseRate=1
Missile.Acceleration=1
Missile.Altitude=1800
Missile.Damage=350
Missile.BodyLength=256
Missile.LazyCurve=no
Missile.Warhead=TestWH
Missile.TrailerAnim=INVISO
Missile.TrailerSeparation=0
Missile.TakeOffAnim=INVISO
Missile.Homing=yes
DisableAircraftAutoPitch=yes

[TestWH]
CellSpread=3
CellSpread.MaxAffect=1
PercentAtMax=.5
Wood=yes
Sparky=no
Conventional=no
Verses=200%,150%,150%,100%,80%,80%,100%,100%,50%,200%,0%
Versus.steel_t2=95%
Versus.steel_t3=95%
Versus.tesla_t2=95%
Versus.bbunker=95%
Versus.tbunker=95%
Versus.aircraft_t1=110%
Versus.aircraft_t2=95%
Versus.helicopter=100%
InfDeath=6
AnimList=TESTEXP
Bright=yes
CombatLightSize=120%
Ripple.Radius=79
Deform=10%
DeformThreshhold=300
ProneDamage=100%

[ANIMMISL] 
Translucent=no
UseNormalLight=yes
ZAdjust=-724
YSortAdjust=512
Layer=top
Rate=400
TrailerAnim=TESTTRAIL
TrailerSeperation=6
SpawnDelay=1

[TESTTRAIL] 
Translucent=yes
UseNormalLight=yes
Rate=900

Steps to reproduce

1.Just copy paste the INI code. 2. 3. ...

Expected behaviour

Should be able to launch a missile without causing IE.

Actual behaviour

It causes IE either instantly right after the unit launched a missile or after a few more launches. except.txt except.txt

Additional context

No response

Checklist

chaserli commented 3 days ago

Please verify that the issue happens when "kratos" is absent

silentrzk commented 3 days ago

Please verify that the issue happens when "kratos" is absent

My apologies. Tested just now and the issue still persists.