Vehicle Interiors

by Avlis92

Enter persistent factory interiors inside locomotives, wagons, cars, tanks and Spidertrons. Includes linked chests, exterior camera and ownership tools.

Content
2 months ago
2.1
63
Transportation Logistics Trains Manufacturing Storage

g Err in newest version

2 months ago

Hey i see you updated the mod to add draggable buttons, nice!

Getting the below err on game load, unless my i'm currently inside a vehicle, then it loads ok

The mod Vehicle Interiors (1.0.25) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event VehicleInteriors::on_configuration_changed
LuaEntity API call when LuaEntity was invalid.
stack traceback:
    [C]: in function '__index'
    __VehicleInteriors__/control.lua:1637: in function 'refresh_room_entities'
    __VehicleInteriors__/control.lua:2376: in function <__VehicleInteriors__/control.lua:2358>
2 months ago

Did you manage to reproduce the error? I can't seem to reproduce it. Could you give me more information? I think it might be caused by an old vehicle. Which game version are you playing?

2 months ago

I found a missing validity check when the mod refreshes vehicle interiors during a configuration change. It tries to read a vehicle entity that no longer exists. This does not necessarily mean its interior has been lost.

I haven’t yet confirmed why loading while inside a vehicle avoids the error. Could you tell me:

  • Which version you were using before updating to 1.0.25?
  • Whether you had any vehicles with interiors stored in your inventory or a chest when you saved?
  • Whether you use other mods that modify or manage vehicles, and your Factorio version?

These details would help narrow down the cause and test a fix that preserves existing interiors. Sorry for the trouble!

New response