Godmave / vehiclehud

0 stars 2 forks source link

possible clash with Spidertron Enhancements (1.9.1) #4

Open angrypidgeon123 opened 8 months ago

angrypidgeon123 commented 8 months ago

The mod Spidertron Enhancements (1.9.1) caused a non-recoverable error. Please report this error to the mod author.

Error while running event SpidertronEnhancements::spidertron-enhancements-enter-vehicles (ID 461) The mod HUDs for vehicles (0.0.9) caused a non-recoverable error. Please report this error to the mod author.

Error while running event vehiclehud::on_player_driving_changed_state (ID 28) vehiclehud/control.lua:411: attempt to index field 'train' (a nil value) stack traceback: vehiclehud/control.lua:411: in function 'showVehicleStats' vehiclehud/control.lua:470: in function <vehiclehud/control.lua:462> stack traceback: [C]: in function 'set_driver' SpidertronEnhancements/scripts/spidertron_lib.lua:378: in function 'deserialise_spidertron' SpidertronEnhancements/scripts/hidden-spidertron.lua:244: in function 'enter_spidertron' SpidertronEnhancements/scripts/hidden-spidertron.lua:336: in function 'enter_vehicles_pressed' SpidertronEnhancements/scripts/hidden-spidertron.lua:411: in function <SpidertronEnhancements/scripts/hidden-spidertron.lua:409>

angrypidgeon123 commented 7 months ago

well I changed

max_speed = vehicle.train.max_forward_speed * 216 to max_speed = vehicle.max_forward_speed * 216

so far so good. Otherwise I'ld try checking for nil if this didn't work. Fortunately I don't use trains atm