Railwave


Adds a smart train stop with built-in load, unload, depot, and fuel station logic.

Content
3 days ago
2.0
194
Trains

g error report

3 days ago

Love the concept, haven't got it to work so far (specifically the fuel setup - trains never go to the fuel station even though the checkbox for external fuel is ticked)

anyway, I just clicked the toggle on a train for setting it to automatic instead of manual schedule, and it crashed.

This is a K2SO run.

The mod Railwave (0.1.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event railwave::on_nth_tick(1)
railwave/control.lua:1674: attempt to call field 'deepcopy' (a nil value)
stack traceback:
railwave/control.lua:1674: in function 'copy_temporary_schedule_records'
railwave/control.lua:1721: in function 'validate_train_group_template'
railwave/control.lua:3600: in function 'validate_managed_train'
railwave/control.lua:3635: in function 'process_train_validation_queue'
railwave/control.lua:3979: in function <railwave/control.lua:3976>

3 days ago

I deleted all my trains and recreated them after this, and now everything is working (fuel supply etc too)

3 days ago

actually I get deepcopy exceptions any time you modify a train that is already managed by railwave.
eg: have a train with layout LC1 sitting at a depot, then add a 2nd carriage to it. crash.

The mod Railwave (0.1.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event railwave::on_nth_tick(1)
railwave/control.lua:1674: attempt to call field 'deepcopy' (a nil value)
stack traceback:
railwave/control.lua:1674: in function 'copy_temporary_schedule_records'
railwave/control.lua:1721: in function 'validate_train_group_template'
railwave/control.lua:3600: in function 'validate_managed_train'
railwave/control.lua:3635: in function 'process_train_validation_queue'
railwave/control.lua:3979: in function <railwave/control.lua:3976>

3 days ago

if this was on github i'd make a pull request, but the fix wasn't complicated since there was only 1 deepcopy in the codebase. (copy_temporary_schedule_records)

thanks for the awesome mod, I think it fills a really empty space in train management

3 days ago

Thank you for the detailed report. I was able to replicate it, and hopefully I fixed it.
try 0.1.5

New response