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

[BUG_SP] Frontloader attachment gives "WorkWidthUtil.lua:190: attempt to index a nil value" #262

Closed
rgoe opened this issue Dec 30, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@rgoe
Copy link

rgoe commented Dec 30, 2021

Hi there,
having attached the Albutt frontloader roundbalefork (found in frontloader tools) to a frontloader when loading a savegame, loading stops and FS gives an error:
"C:/Users/User1/Documents/My Games/FarmingSimulator2022/mods/FS22_Courseplay/scripts/ai/WorkWidthUtil.lua:190: attempt to index a nil value"
(Also it might crash when leaving the game via menu with the tool attached leaving same error message in the log + LUA callstack (2nd attached logfile).)

My "assumption" is:
The roundbalefork is of type "dynamicMountAttacherShovel", therefore it has the "shovel"-specialization inherited from the type - but there is no definition inside the implements xml-file meaning there is also no workingWidth definition. Because of the "shovel"-specialization CP is searching for the width definition but cannot find it, therefore running in an error.

Steps to reproduce
Load savegame with mentioned tool attached to frontloader or alternatively buy tools ingame and attach, then leave game via menu option.

Actual behavior
FS throwing an error, loading stops:
"C:/Users/User1/Documents/My Games/FarmingSimulator2022/mods/FS22_Courseplay/scripts/ai/WorkWidthUtil.lua:190: attempt to index a nil value"

Expected behavior
No error/crash.

Courseplay version
7.0.0.9 from release section

Log
1st log - CP activated on an existing savegame.
log.txt

2nd log - New savegame, CP debug channels turned on, tools bought & attached, game exited via menu => error+LUA callstack, Alt F4 to quit.
log2.txt

Map
Elmcreekt

Vehicles/ implements involved
Massey Ferguson 3670
Quicke Q7M Frontloader
Albutt Roundbalefork
(All vanilla from game, no mods besides CP loaded)

Relevant script mods
CP

@rgoe rgoe added the bug Something isn't working label Dec 30, 2021
@Tensuko
Copy link
Contributor

Tensuko commented Dec 30, 2021

Duplicate

@Tensuko Tensuko closed this as completed Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants