Railway Motor Car

by S3bulon

Adds a railway motor car as an equipment to ride the railway without placing a locomotive manually.

Content
29 days ago
1.0 - 2.0
12.1K
Trains

b Hard crash on server when switching to train mode on another surface

2 years ago
 357.906 Error MainLoop.cpp:1284: Exception at tick 59301529: The mod Railway Motor Car (0.3.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event railway-motor-car::railway-motor-car-key (ID 224)
LuaEntity belongs to surface nauvis (index 1) but a LuaEntity belonging to surface Hephaestus (index 22) was expected.
stack traceback:
        [C]: in function '__newindex'
        __railway-motor-car__/scripts/use_equipment.lua:102: in function 'mount'
        __railway-motor-car__/scripts/use_equipment.lua:131: in function <__railway-motor-car__/scripts/use_equipment.lua:121>
 357.906 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "The mod Railway Motor Car (0.3.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event railway-motor-car::railway-motor-car-key (ID 224)
LuaEntity belongs to surface nauvis (index 1) but a LuaEntity belonging to surface Hephaestus (index 22) was expected.
stack traceback:
        [C]: in function '__newindex'
        __railway-motor-car__/scripts/use_equipment.lua:102: in function 'mount'
        __railway-motor-car__/scripts/use_equipment.lua:131: in function <__railway-motor-car__/scripts/use_equipment.lua:121>"
 357.906 Info ServerMultiplayerManager.cpp:795: updateTick(59301529) changing state from(InGame) to(Failed)
2 years ago

Thanks for the report. It only occurred when the stored schedule contains a temporary stop at an other surface.
Fixed with 0.3.7

New response