Specifications
Rimworld version:
1.6
Combat Extended version:
16.7.2.0
Combat Extended source (Steam, GitHub, etc.):
Steam Workshop
Your operating system:
Windows 11
Your mod list:
Harmony
Combat Extended
Description
When certain HEDP ammunition detonates (AmmoThing.TryDetonate), the following error appears in the log:
Tried to PlayOneShot with null SoundDef
SoundDef was null for DamageDef Bullet as well as instigator Ammo_30x29mmGrenade_HEDP
This happens only during ammo detonation. Normal firing of the same ammo does not produce the error.
Observed behavior:
- Happens with 30x29mm HEDP
- Does not happen with HE ammo
- Does not happen with other calibers tested
- Occurs even when running Combat Extended only
Expected behavior
Ammo detonation should play a valid explosion sound and not produce a SoundDef null error.
To reproduce
- Start the game with Combat Extended only
- Enable dev mode
- Spawn
Ammo_30x29mmGrenade_HEDP
- Ignite the ammo until it detonates
- Observe the error in the log
Screenshots & log dumps
Relevant log snippet:
CombatExtended :: SoundDef was null for DamageDef Bullet as well as instigator Ammo_30x29mmGrenade_HEDP17923
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
CombatExtended.GenExplosionCE:DoExplosion (...)
CombatExtended.AmmoThing:TryDetonate (single)
CombatExtended.AmmoThing:TickInterval (int)
Verse.Thing:DoTick ()
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()
Tried to PlayOneShot with null SoundDef. Info=(World from (190, 0, 150), Map_0)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Sound.SoundStarter:PlayOneShot (Verse.SoundDef,Verse.Sound.SoundInfo)
Verse.Explosion:PlayExplosionSound (Verse.SoundDef)
CombatExtended.ExplosionCE:StartExplosionCE (...)
CombatExtended.GenExplosionCE:DoExplosion (...)
CombatExtended.AmmoThing:TryDetonate (single)
[√] Confirmed that my game version and load order are correct.
[√] Confirmed that I am running the appropriate and most updated version of Combat Extended and required compatibility patches.
[√] Confirmed I am not running any mods with known incompatibilities with Combat Extended.
Specifications
Rimworld version:
1.6
Combat Extended version:
16.7.2.0
Combat Extended source (Steam, GitHub, etc.):
Steam Workshop
Your operating system:
Windows 11
Your mod list:
Harmony
Combat Extended
Description
When certain HEDP ammunition detonates (AmmoThing.TryDetonate), the following error appears in the log:
Tried to PlayOneShot with null SoundDef
SoundDef was null for DamageDef Bullet as well as instigator Ammo_30x29mmGrenade_HEDP
This happens only during ammo detonation. Normal firing of the same ammo does not produce the error.
Observed behavior:
Expected behavior
Ammo detonation should play a valid explosion sound and not produce a SoundDef null error.
To reproduce
Ammo_30x29mmGrenade_HEDPScreenshots & log dumps
Relevant log snippet:
CombatExtended :: SoundDef was null for DamageDef Bullet as well as instigator Ammo_30x29mmGrenade_HEDP17923
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
CombatExtended.GenExplosionCE:DoExplosion (...)
CombatExtended.AmmoThing:TryDetonate (single)
CombatExtended.AmmoThing:TickInterval (int)
Verse.Thing:DoTick ()
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()
Tried to PlayOneShot with null SoundDef. Info=(World from (190, 0, 150), Map_0)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Sound.SoundStarter:PlayOneShot (Verse.SoundDef,Verse.Sound.SoundInfo)
Verse.Explosion:PlayExplosionSound (Verse.SoundDef)
CombatExtended.ExplosionCE:StartExplosionCE (...)
CombatExtended.GenExplosionCE:DoExplosion (...)
CombatExtended.AmmoThing:TryDetonate (single)
[√] Confirmed that my game version and load order are correct.
[√] Confirmed that I am running the appropriate and most updated version of Combat Extended and required compatibility patches.
[√] Confirmed I am not running any mods with known incompatibilities with Combat Extended.