Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Running LUA method 'update'. #539

Closed
Mageone opened this issue May 19, 2022 · 9 comments
Closed

Error: Running LUA method 'update'. #539

Mageone opened this issue May 19, 2022 · 9 comments
Labels
bug Something isn't working Fixed (in next release) This issue is already fixed in our dev branch

Comments

@Mageone
Copy link

Mageone commented May 19, 2022

Hello,

I have this kind of error for 30 seconds and if i don't stop quick the car from this curse then the game crashes.
Any solutions? I use AD 2.0.5 and Autoload 1.7.3

C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil
2022-05-19 16:36 Error: Running LUA method 'update'.
C:/Users/Asus/Documents/My Games/FarmingSimulator2022/mods/FS22_AutoDrive/scripts/Tasks/UnloadAtDestinationTask.lua:96: attempt to compare number with nil

@Axel32019
Copy link
Collaborator

Hello @Mageone , Please attach the complete log!
Btw AD only supports the AL-specification by Achimobil, nothing else (at the moment)!

@Mageone
Copy link
Author

Mageone commented May 19, 2022

log.txt

I use AL by Achimobil v1.7.3

@Axel32019
Copy link
Collaborator

Hello @Mageone
In vehicles.xml replace all ALUnload="0" with ALUnload="1"

Axel32019 added a commit that referenced this issue May 20, 2022
@Axel32019 Axel32019 added bug Something isn't working Fixed (in next release) This issue is already fixed in our dev branch labels May 20, 2022
@Mageone
Copy link
Author

Mageone commented May 21, 2022

Many thanks! Everything is fine now!
I had this kind of error only at one map , what to do with the rest of maps? To change the vehicle files there, too?

@Axel32019
Copy link
Collaborator

Yes, to make sure it works OK.

@Mageone
Copy link
Author

Mageone commented May 23, 2022

I started the game and i bought few more trucks, i got again same errors.
I turned off the game and i did modify the vehicle file again.

It works fine now, but i have to modify the vehicle file each time when i buy more trucks now?

@Axel32019
Copy link
Collaborator

Axel32019 commented May 24, 2022

The fix will be included in next release, for the time being you need to use the dev version:
https://github.com/Stephan-S/FS22_AutoDrive/tree/dev_axel32019
Another workaround for new vehicles after buy/loan:
Change unload position, apply. After that use it.

@Mageone
Copy link
Author

Mageone commented May 25, 2022

Thank you very much for your support!
One more mention, these errors happen only with one map, the one from log file. The map mod is log free, but still something happens wrong there...

@Iwan1803
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed (in next release) This issue is already fixed in our dev branch
Projects
None yet
Development

No branches or pull requests

3 participants