Shuttle Train Lite

by folk

A remake of the classic Shuttle Train by Simwir. A custom train you can call from anywhere and it comes to you just like a four-legged friend!

Content
4 months ago
0.15 - 2.0
1.13K
Transportation Trains

g Crash after updating blueprint sandboxes mod from 2.x to 3.x

4 months ago
(updated 4 months ago)

After updating blueprint sandboxes mod, this mod seems to crash the game with unrecoverable error:

Error while running event blueprint-sandboxes::on_configuration_changed
The mod Shuttle Train Lite (0.2.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event folk-shuttle::on_runtime_mod_setting_changed (ID 66)
__folk-shuttle__/control.lua:113: bad argument #3 of 3 to '__index' (string expected, got nil)
stack traceback:
        [C]: in function '__index'
        __folk-shuttle__/control.lua:113: in function <__folk-shuttle__/control.lua:111>
stack traceback:
        [C]: in function '__newindex'
        __blueprint-sandboxes__/scripts/migrate.lua:401: in function 'v3_0_0'
        __blueprint-sandboxes__/scripts/migrate.lua:31: in function 'Run'
        __blueprint-sandboxes__/control.lua:84: in function <__blueprint-sandboxes__/control.lua:83>
 100.617 Quitting: user-quit.
 100.829 Steam API shutdown.
 100.831 Goodbye

Here is the crosspost to blueprint sandboxes

4 months ago
(updated 4 months ago)

Here is the required patch:

113c113
<               local p = game.players[event.player_index]
---
>               local p = event.player_index and game.players[event.player_index]

(apply by piping to patch contorl.lua, for example with xclip -o, xsel or pbpaste)

I submitted the PR: https://github.com/folknor/factorio-shuttle/pull/5

4 months ago

Thank you! I've merged your patch and released 0.2.11.

Excellent work.

New response