Skip to content

Deleting Gun or Laser Turrets Causes Crash #28

@Ydamiano

Description

@Ydamiano

Error Message
The mod RailPowerSystem (1.0.9) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event RailPowerSystem::on_entity_destroyed (ID 160)
RailPowerSystem/control.lua:43: attempt to index local 'destroyed_item_data' (a nil value)
stack traceback:
RailPowerSystem/control.lua:43: in function 'f'
Hermios_Framework/control-libs.lua:20: in function <Hermios_Framework/control-libs.lua:13>

If I try to delete a gun turret OR laser turret next to rails & medium electric pole, the above crash occurs.

Steps to reproduce

  1. I have some established rail lines and power network through my oil field. It was my very first oil field and is a mess, \
  2. 50 hours later I discovered mods!
  3. Returning to this area to revamp the transportation and power grids in the area but that necessitates removing the existing light, pumpjack, medium electric line, and gun turret.
  4. I was able to place a gun turret with piercing ammo rounds at another location next to power lines and rails.
  5. Now tried removing any gun turret on the continent and still get the same issue.

Expected Behavior
The game crashes and gives the above stated error message.

Attachments
20240430044259_1
20240430044327_1
20240430044446_1
20240430044456_1

Additional Information
I haven't started building any items specific to your mods yet, since I just installed them yesterday. I do have several other mods installed but nothing that modifies gun turrets. I have seen three unrelated crashes from this mod just interacting with random rails or power lines in undeveloped areas. But I have noticed no discernible pattern to these, whereas the gun turret issue consistently occurs 100% of the time for me. Thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions