GregorSamsanite / nullius

Nullius overhaul mod for Factorio
18 stars 21 forks source link

[Train Upgrader] Crash #15

Open Eldrinn-Elantey opened 1 year ago

Eldrinn-Elantey commented 1 year ago
2581.953 Error MainLoop.cpp:1284: Exception at tick 11350799: Мод Train Upgrader (1.0.2) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event train-upgrader::on_nth_tick(23)
Мод Rail Logistics Dispatcher (0.0.16) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event RailLogisticsDispatcher::script_raised_destroy (ID 80)
__RailLogisticsDispatcher__/script/SurClass.lua:581: attempt to call method 'removeDeliveryFromStop' (a nil value)
stack traceback:
    __RailLogisticsDispatcher__/script/SurClass.lua:581: in function 'removeDelivery'
    __RailLogisticsDispatcher__/script/SurClass.lua:567: in function 'removeDeliveriesBy'
    __RailLogisticsDispatcher__/script/SurClass.lua:641: in function 'removeTrain'
    __RailLogisticsDispatcher__/script/TrainClass.lua:436: in function 'handleRemoved'
    __RailLogisticsDispatcher__/control.lua:154: in function <__RailLogisticsDispatcher__/control.lua:147>
stack traceback:
    [C]: in function 'destroy'
    __train-upgrader__/scripts/upgrade.lua:218: in function 'do_upgrade_one_carriage'
    __train-upgrader__/scripts/upgrade.lua:409: in function 'try_upgrade_one_carriage'
    __train-upgrader__/scripts/upgrade.lua:428: in function 'upgrade_any_carriage'
    __train-upgrader__/scripts/tick.lua:14: in function 'check_stopped'
    __train-upgrader__/scripts/tick.lua:82: in function 'update_station'
    __train-upgrader__/scripts/tick.lua:91: in function <__train-upgrader__/scripts/tick.lua:88>
2581.953 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "Мод Train Upgrader (1.0.2) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event train-upgrader::on_nth_tick(23)
Мод Rail Logistics Dispatcher (0.0.16) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event RailLogisticsDispatcher::script_raised_destroy (ID 80)
__RailLogisticsDispatcher__/script/SurClass.lua:581: attempt to call method 'removeDeliveryFromStop' (a nil value)
stack traceback:
    __RailLogisticsDispatcher__/script/SurClass.lua:581: in function 'removeDelivery'
    __RailLogisticsDispatcher__/script/SurClass.lua:567: in function 'removeDeliveriesBy'
    __RailLogisticsDispatcher__/script/SurClass.lua:641: in function 'removeTrain'
    __RailLogisticsDispatcher__/script/TrainClass.lua:436: in function 'handleRemoved'
    __RailLogisticsDispatcher__/control.lua:154: in function <__RailLogisticsDispatcher__/control.lua:147>
stack traceback:
    [C]: in function 'destroy'
    __train-upgrader__/scripts/upgrade.lua:218: in function 'do_upgrade_one_carriage'
    __train-upgrader__/scripts/upgrade.lua:409: in function 'try_upgrade_one_carriage'
    __train-upgrader__/scripts/upgrade.lua:428: in function 'upgrade_any_carriage'
    __train-upgrader__/scripts/tick.lua:14: in function 'check_stopped'
    __train-upgrader__/scripts/tick.lua:82: in function 'update_station'
    __train-upgrader__/scripts/tick.lua:91: in function <__train-upgrader__/scripts/tick.lua:88>"
GregorSamsanite commented 1 year ago

The actual crash is happening in the other mod. All this mod does is remove a train entity, which is a core part of what the mod does, and I'm not sure that it's avoidable. The most likely fix would have to be in the other mod where it crashes after a train is destroyed. If the dev of that mod has any specific request for changes that I could make on my end to help avoid this problem, I would consider it. But I don't currently see a way that I could fix it from within Train Upgrader.

Eldrinn-Elantey commented 1 year ago

I assumed that the problem was with another mod, but I decided to notify you just in case