Repository navigation
Create unit anim crash issue #2354
Description
Description
Game crashes as soon as the unit is created with CreateUnit= and summoned through DestroyAnim initialized by AutoDeath.Behavior=kill
Phobos Version
v0.5-alpha1
Conditions to reproduce
The unit is summoned by an invoker sw with owner set to invoker type using the ini code provided below
INI code
[TSSAPC]
UIName=Name:TSSAPC
Name=Nod Subterranean APC
Image=TSSAPC
Prerequisite=NODWEAP,NODTECH
Strength=300
MoveToShroud=no
Category=Transport
DeployTime=.022
Armor=light
Turret=no
IsTilter=yes
TechLevel=6
Sight=6
PipScale=Passengers
Speed=5
CrateGoodie=no
Owner=NodCountry,SovietCountry
AllowedToStartInMultiplayer=no
Cost=1500
Soylent=750
Bounty.Value=300
Points=30
ROT=5
Crusher=yes
Passengers=5
Passengers.SyncOwner=false
Passengers.SyncOwner.RevertOnExit=true
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=TSHVRSelect
VoiceMove=TSHVRMove
VoiceAttack=TSHVRAttack
VoiceFeedback=
DieSound=GenVehicleDie
CrushSound=TankCrush
MaxDebris=5
MinDebris=1
Locomotor={4A582743-9839-11d1-B709-00A024DDAFD1}
MovementZone=Subterannean
ThreatPosed=20 ; This value MUST be 0 for all building addons
DamageSparks=yes
DamageParticleSystems=SparkSys,SmallGreySSys
DamageSmokeParticleSystems=SmallGreySSys
DamageSparksParticleSystems=SparkSys
Weight=4
;SpecialThreatValue=1
ZFudgeColumn=7
ZFudgeTunnel=13
Size=3
Bunkerable=no; Units default to yes, others default to no
SizeLimit=2
EnterTransportSound=EnterTransport
LeaveTransportSound=ExitTransport
Trainable=no
VeteranAbilities=STRONGER
EliteAbilities=SELF_HEAL,FASTER,ROF,FIREPOWER
ImmuneToVeins=no
ImmuneToPoison=yes
ImmuneToRadiation=yes
;SelfHealing=yes
SelfHealing.CombatDelay=150
IsSelectableCombatant=no
LeadershipRating=1
;Cloakable=yes
CloakingSpeed=10
Cloakable.Stages=10
GroupAs=TSSAPC
Experience.FromPassengers=false
Experience.PromotePassengers=false
InsigniaType=NODRANKTYPE
[TSSAPCX]
$Inherits=TSSAPC
UIName=Name:TSSAPC
Name=Nod Subterranean APC
Image=TSSAPC
Immune=yes
LegalTarget=no
Armor=godlike_armor
TechLevel=11
Crewed=yes
MaxDebris=0
MinDebris=0
DieSound=Dummy
Explosion=ISHI3D
DestroyAnim=SAPC_CREATION
DestroyAnim.Random=no
InitialPayload.Types=TSNE1,TSE3,ELCAD
InitialPayload.Nums=2,2,1
Survivor.Side0=GENSOLDIER
Survivor.Side1=GENSOLDIER
Survivor.Side2=GENSOLDIER
Survivor.Side3=GENSOLDIER
Survivor.Side4=GENSOLDIER
Survivor.Side5=GENSOLDIER
Survivor.Side6=GENSOLDIER
Survivor.Side7=GENSOLDIER
Survivor.Pilots=2
Survivor.RookiePilotChance=100%
Survivor.VeteranPilotChance=100%
Survivor.ElitePilotChance=100%
Survivor.RookiePassengerChance=100%
Survivor.VeteranPassengerChance=100%
Survivor.ElitePassengerChance=100%
AutoDeath.Behavior=kill
AutoDeath.AfterDelay=200
[TSSAPCY]
$Inherits=TSSAPC
UIName=Name:TSSAPC
Name=Nod Subterranean APC
Image=TSSAPC
TechLevel=11
AutoDeath.Behavior=vanish
AutoDeath.AfterDelay=200
[SAPC_CREATION]
Image=INVISO
Start=0
End=1
CreateUnit=TSSAPCY
CreateUnit.Facing=0
CreateUnit.RandomFacing=no
CreateUnit.InheritFacings=yes
CreateUnit.InheritTurretFacings=no
CreateUnit.RemapAnim=no
CreateUnit.Mission=Guard
CreateUnit.AIMission=Retreat
CreateUnit.Owner=Invoker
CreateUnit.ConsiderPathfinding=no
CreateUnit.AlwaysSpawnOnGround=yes
CreateUnit.SpawnParachutedInAir=no
CreateUnit.SpawnHeight=-1
CreateUnit.SpawnAnim=ISHI3D
MakeInfantryOwner=invokerSteps to reproduce
1.Set up an invoker sw type with owner set to invoker
2.Use the provided ini code above
3.Test on any map
...
Expected behaviour
The unit should ''die'', release its passengers that will go into hunt and summon the new unit that retreats underground and vanishes shortly after
Actual behaviour
The moment the unit ''dies'' and releases its passengers the game crashes with no new unit seen its original location shortly before the crash window pops up
Additional context
Full dump and all logs in here: https://drive.google.com/file/d/1SsGOpcjT1KNzBwe7ybegCyCBofV3KwRP/view?usp=sharing
Checklist
- The issue happens on the latest official version of Phobos and wasn't fixed yet.
- I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
- I added a very descriptive title to this issue.
- I used the GitHub search and read the issue list to find a similar issue and didn't find it.
- I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).
Activity
Coronia commentedon Sep 10, 2026
can't see the dump. Could you upload a log for it?
Coronia commentedon Sep 10, 2026
looking at the code you should change
CreateUnit.Ownertovictim, asAutoDeath.Behavior=killdoesn't have a damage owner set. See if it still crash with this changeRhosalth7 commentedon Sep 10, 2026
Check the link again, should work now
Rhosalth7 commentedon Sep 10, 2026
Ok that works, although doesn't explain why the previous method now crashes when it worked before on b48