Mogli12 / VehicleControlAddon

Farming Simulator 22: Smoother steering with the key board and more...
336 stars 180 forks source link

Vehicle.lua error (2672) #818

Closed ornellino closed 1 year ago

ornellino commented 2 years ago

Hi, from the last release in the log I have this error:

2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value)

every time I enter in a vehicle, if I detach the implement:

2022-02-10 14:29 :53 [dbg20 lp1689] 1050/86: getting working width... 2022-02-10 14:29 :53 [dbg20 lp1689] 1050/86: has NO work area. 2022-02-10 14:29 :53 [dbg20 lp1689] 3300/-: getting working width... 2022-02-10 14:29 :53 [dbg20 lp1689] 3300/-: has NO work area. 2022-02-10 14:29 :53 [dbg20 lp1689] 3300/-: working width is 0.0. 2022-02-10 14:29 :53 [dbg20 lp1689] K165/-: getting working width... 2022-02-10 14:29 :53 [dbg20 lp1689] K165/-: aiMarkers: left=15.00, right=-15.00 (width 30.00) 2022-02-10 14:29 :53 [dbg20 lp1689] K165/-: working width is 30.0. 2022-02-10 14:29 :53 [dbg20 lp1689] 1050/86: working width is 30.0. 2022-02-10 14:29 :53 [dbg18 lp1689] startAt: value 4 is disabled 2022-02-10 14:29 :53 [dbg18 lp1689] laneOffset: value -2 is disabled 2022-02-10 14:29 :53 [dbg18 lp1689] laneOffset: value -1 is disabled 2022-02-10 14:29 :53 [dbg18 lp1689] laneOffset: value 1 is disabled 2022-02-10 14:29 :53 [dbg18 lp1689] laneOffset: value 2 is disabled

when I re attach the implement it gives me a same error loop

2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'. dataS/scripts/vehicles/Vehicle.lua(2672) : attempt to index field 'targetObject' (a number value) 2022-02-10 14:29 Error: Running LUA method 'update'.

until I change vehicle or detach the implement.

Andrea

jason0611 commented 2 years ago

Looks very much like courseplay. Have you tried it out with only VCA in your mod-folder?

ornellino commented 2 years ago

No, I've tried without course play, same behavior, then I've tried without VCA and the game works fine.

ornellino commented 2 years ago

I've solved, another mod (freezetime) makes the error if used with VCA. I Just removed it. Thanks Andrea

Mogli12 commented 2 years ago

I do not believe that this problem is caused by VCA. It seems that some other mod manipulated the events of the action bindings. VCA uses the standard functions to this.

Gecko774 commented 2 years ago

@ornellino you don't need to delete freeze time, just change the keyboard layout.

For example, with FreezeTime from shift right to minus. Then both mods will work

ornellino commented 2 years ago

Thanks @Gecko774, I will try!