Spidertron Enhancements


Some simple features to make your life easier whilst using a spidertron: - Enter a vehicle without leaving your spidertron - Quickly toggle between engineer and spidertron - Use spidertron remote pathfinder to navigate around lakes - Automatically sort spidertron inventories - Pipette remotes from inventory by hovering over spidertrons - Directly open the inventory of a vehicle that you are currently driving

Utilities
7 days ago
1.0 - 2.0
67.6K
Transportation

b [Fixed-1.4.4] Log error on corpse creation

3 years ago

Relevant log entry:

2026.666 Script @__SpidertronEnhancements__/scripts/create-corpse.lua:6: Spilling spidertron items onto the ground
2026.673 Error MainLoop.cpp:1285: Exception at tick 2429043: The mod Spidertron Enhancements (1.4.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event SpidertronEnhancements::on_entity_died (ID 4)
__SpidertronEnhancements__/scripts/create-corpse.lua:32: bad argument #0 of 2 to 'log' (Wrong number of arguments.)
stack traceback:
    [C]: in function 'log'
    __SpidertronEnhancements__/scripts/create-corpse.lua:32: in function 'on_spidertron_died'
    __SpidertronEnhancements__/scripts/create-corpse.lua:58: in function <__SpidertronEnhancements__/scripts/create-corpse.lua:55>

This mod looks great. Thank you for working on it.

3 years ago

Sorry about that, should be a quick fix... presumably the inventory was empty when it died?

3 years ago
(updated 3 years ago)

Reproducing the issue, it looks like it wasn't my Spidertron that died, but instead a Companion Drone. Don't know why that is considered a Spidertron, though I see other discussions on compatibility. I tried putting some items in their inventory and it still causes the error.

3 years ago
(updated 3 years ago)

[ignore]

3 years ago
(updated 3 years ago)

Oh that’s helpful, thank you! I’ll need to disable corpses for them entirely.

3 years ago

Btw for the time being you can disable corpses in the startup settings. (It will require a game restart but won’t change anything in your map except delete existing corpses).

3 years ago

Oh this was a lot more serious than I thought: any spidertron dying triggers this crash, but I didn't notice it because it specifically doesn't happen when using the mod development debugger. It is fixed now in 1.4.4.

The reason companion drones dying triggered it is because internally they are actually spidertrons :) With this mod they also leave a spidertron corpse which isn't ideal, so I'll probably remove/change that in a future update.

3 years ago
(updated 3 years ago)

Hi I have a similar problem:

The mod Spidertron Enhancements (1.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event SpidertronEnhancements::on_entity_died (ID 4)
SpidertronEnhancements/spill_on_death.lua:24: attempt to index field 'trash' (a nil value)
stack traceback:
SpidertronEnhancements/spill_on_death.lua:24: in function 'on_spidertron_died'
SpidertronEnhancements/spill_on_death.lua:36: in function <SpidertronEnhancements/spill_on_death.lua:35>

Disableing corpses did not solve the problem

3 years ago
(updated 3 years ago)

Try updating the mod 😁
Your version is extremely out of date!

https://mods.factorio.com/mod/SpidertronEnhancements/changelog Look at all these changes you’re missing out on!

3 years ago

But your newer versions are only available for 1.1

3 years ago

Oh right, well unfortunately I’m not able to support 2 versions of the game at once, especially this long after the release of 1.1. If it keeps on crashing I’m afraid you’ll have to either uninstall the mod or upgrade to 1.1.

3 years ago

No problem, I was able to update to 1.1 and now eventing works.
Thanks for the nice mod.

3 years ago

Good to hear! In more recent versions the items are placed in a spidertron corpse instead of just being spilled upon death :)

New response