Autofuel - Refill equipment grid fuel automatically


A simple mod with a simple purpose: to refill equipment grids automatically

Tweaks
a month ago
2.0
3.80K
Transportation

b [Fixed] Non-recoverable error when disconnecting from the server

6 months ago
(updated 6 months ago)

Autofuel causes server to crash sometimes when the only player is disconnected

2696.707 Info ServerMultiplayerManager.cpp:1086: Disconnect notification for peer (1)
2696.707 Info ServerMultiplayerManager.cpp:978: updateTick(30366386) received stateChanged peerID(1) oldState(InGame) newState(DisconnectScheduled)
2696.708 Info ServerSynchronizer.cpp:613: nextHeartbeatSequenceNumber(155393) removing peer(1).
2696.710 Error MainLoop.cpp:1468: Exception at tick 30366386: The mod Autofuel - Refill equipment grid fuel automatically (1.2.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event autofuel::on_tick (ID 0)
__autofuel__/control.lua:155: attempt to index local 'player' (a nil value)
stack traceback:
    __autofuel__/control.lua:155: in function 'fuel_player'
    __autofuel__/control.lua:141: in function 'on_tick'
    __autofuel__/control.lua:82: in function <__autofuel__/control.lua:81>
2696.710 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod Autofuel - Refill equipment grid fuel automatically (1.2.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event autofuel::on_tick (ID 0)
__autofuel__/control.lua:155: attempt to index local 'player' (a nil value)
stack traceback:
    __autofuel__/control.lua:155: in function 'fuel_player'
    __autofuel__/control.lua:141: in function 'on_tick'
    __autofuel__/control.lua:82: in function <__autofuel__/control.lua:81>"
2696.710 Info ServerMultiplayerManager.cpp:808: updateTick(30366386) changing state from(InGame) to(Failed)
2696.724 Quitting: multiplayer error.
6 months ago
(updated 6 months ago)

Autofuel causes server to crash sometimes when the only player is disconnected
```
2696.707 Info ServerMultiplayerManager.cpp:1086: Disconnect notification for peer (1)
2696.707 Info ServerMultiplayerManager.cpp:978: updateTick(30366386) received stateChanged peerID(1) oldState(InGame) newState(DisconnectScheduled)
2696.708 Info ServerSynchronizer.cpp:613: nextHeartbeatSequenceNumber(155393) removing peer(1).
2696.710 Error MainLoop.cpp:1468: Exception at tick 30366386: The mod Autofuel - Refill equipment grid fuel automatically (1.2.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event autofuel::on_tick (ID 0)
autofuel/control.lua:155: attempt to index local 'player' (a nil value)
stack traceback:
autofuel/control.lua:155: in function 'fuel_player'
autofuel/control.lua:141: in function 'on_tick'
autofuel/control.lua:82: in function <autofuel/control.lua:81>
2696.710 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod Autofuel - Refill equipment grid fuel automatically (1.2.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event autofuel::on_tick (ID 0)
autofuel/control.lua:155: attempt to index local 'player' (a nil value)
stack traceback:
autofuel/control.lua:155: in function 'fuel_player'
autofuel/control.lua:141: in function 'on_tick'
autofuel/control.lua:82: in function <autofuel/control.lua:81>"
2696.710 Info ServerMultiplayerManager.cpp:808: updateTick(30366386) changing state from(InGame) to(Failed)
2696.724 Quitting: multiplayer error.
```

Thats a niche bug that I never even considered would happen. Thank you for the report, fix coming shortly.

(I dont have a dedicated server, so I cant guarantee the fix works, please let me know if it does/doesnt)

a month ago

K2SE, the mod reports an error when the train passes through the space elevator.
Error while running event autofuel::on_entity_cloned (ID 139)
autofuel/control.lua:91: attempt to index local 'entity' (a nil value)
stack traceback:
autofuel/control.lua:91: in function 'scan_grid'
autofuel/control.lua:67: in function <autofuel/control.lua:66>
stack traceback:
[C]: in function 'clone'
space-exploration/scripts/space-elevator.lua:895: in function 'space_elevator_teleport_next'
space-exploration/scripts/space-elevator.lua:665: in function 'space_elevator_teleport_start'
space-exploration/scripts/space-elevator.lua:597: in function 'callback'
space-exploration/scripts/event.lua:20: in function <space-exploration/scripts/event.lua:18>

New response