Skip to content

[Bug]: HEDP ammo detonation logs "SoundDef was null for DamageDef Bullet" #4499

@wzw79248

Description

@wzw79248

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

  1. Start the game with Combat Extended only
  2. Enable dev mode
  3. Spawn Ammo_30x29mmGrenade_HEDP
  4. Ignite the ammo until it detonates
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions