Vehicle Wagon 2


Take with you a fully charged and battle-ready vehicle and take it on a rail trip. --------------------------------------------------------------------------------- Возьмите с собой полностью заряженный и готовый к бою транспорт и отправьте его в путешествие по железной дороге.

Content
5 days ago
0.17 - 2.1
28.5K
Transportation Trains Combat

b [Fixed] Crash (former autoloading station)

a month ago

I get a crash when a vehicle wagon train arrives at a station which formerly had an autoloader (destroyed by a stomper, ghost removed then station rebuilt).

Error while running event VehicleWagon2::on_train_changed_state (ID 31)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
    [C]: in function '__index'
    __VehicleWagon2__/script/autoloading.lua:110: in function <__VehicleWagon2__/script/autoloading.lua:88>
a month ago

Thanks for the report. I can see where there might be an issue. Could you share the save file that causes this crash so I can test the fix?

a month ago

Download link. Unload the tank and send the train to "Stop - Yumako" (no crash if the tank is loaded).

a month ago

Thanks. In the meantime, you might be able to fix it by mining all the track and the ramp and rebuilding it again.

a month ago

The fix is live for both 2.0 and 2.1 releases. I definitely found a place where one of my lists might not have been purged correctly when a ramp was destroyed. But also, I think there was a bug in 2.0 where some damage from stompers didn't trigger events like it should. The new version will automatically remove invalid entities if they get into the database by accident, so there won't be any more crashes even your version of the game still has that bug.

Thanks very much for the save to reproduce the issue, it helped a lot.

New response