sperrgebiet/FS22_VehicleExplorer

Vehicle change not possible

Gillios opened this issue · 3 comments

With some vehicles I cannot continue to tap to get to the next vehicle, I only get this error message in the log:

Error: Running LUA method 'update'.
C: / Users / XXX / Documents / My Games / FarmingSimulator2022 / mods / FS22_VehicleExplorer / VehicleSort.lua: 1930: attempt to call method 'getIsControlled' (a nil value)

I don't know what kind of bug this is, but maybe it can be fixed.

I had this bug too (not sure about the error message though) and I found a gap in the UserOrder attribute of my savegame vehicles.xml, like
1,3,4,5,6 (no "2")
I fixed it in the file manually to
1,2,3,4,5
and now it works again.
Pretty sure it happened after I sold my harvester (used to be my first in the list except train, so that should have been the missing id=2).
Workaround might be to put a vehicle at the end of the list before selling.

I had a look in the code but was unable to fix it with my almost non-existing modding knowledge.
I believe it needs to be fixed though different/additional event handling of some sort. I see some "onDelete" event handling. Maybe that needs to be adjusted, or maybe there are other events in FS22 that need to be listened to.

Same Problem, see logfile.
Could not tab to nex vehicle, if current vehicle ist last in the vehicle-list
log.txt
.