Induction Charging deprecated

by Raeon

Power your equipment grid whilst in range of power poles, albeit at a price.

Content
3 years ago
1.1
21.7K
Armor

b Compatibility issue with Spidertron Enhancements mod

3 years ago
(updated 3 years ago)

When used with mods.factorio.com/mod/SpidertronEnhancements the game crashes whenever player switches from Spidertron to engineer (mod feature, by default bound to 'U' key) when induction coil is equipped.

Error:
2892.697 Error MainLoop.cpp:1285: Exception at tick 10631446: The mod Induction Charging (2.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Induction Charging::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__Induction Charging
/control.lua:164: in function 'updateShadow'
Induction Charging/control.lua:280: in function <Induction Charging/control.lua:272>
2901.540 Quitting: user-quit.

3 years ago

This happens because there is no check to make sure the entity with the grid is still valid, and SpidertronEnhancements puts the player in/out of a spidertron rather than simply moving the player/spidertron to a new location.

    shadow.teleport(tracker.entity.position) -- The entity here is the player...or the spidertron, if it has coils equipped

New response