Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

lua:458: attempt to index field 'spec_autodrive' (a nil value) #6650

Closed
adrian-pc-code opened this issue Jan 9, 2021 · 4 comments
Closed

Comments

@adrian-pc-code
Copy link

adrian-pc-code commented Jan 9, 2021

While trying to get the digestate refill going, I run into this exception

2021-01-09 16:26 :30 [info lp15811] 9620 RX (#2): Exception, stopping Courseplay driver,[C:/PATH]/FarmingSimulator2019/mods/FS19_Courseplay/FieldworkAIDriver.lua:458: attempt to index field 'spec_autodrive' (a nil value)

Tractor: 9620 RX (from the official DLC)
Implement: Premium Integral II (Base game)

2021-01-09 16:26 :30 [dbg6 lp15810] 9620 RX (#2): working width is 30.0
2021-01-09 16:26 :30 [dbg14 lp15810] 9620 RX (#2): Starting at nearest waypoint 588 (best direction) on fieldwork course
2021-01-09 16:26 :30 [dbg12 lp15810] 9620 RX (#2): PPC: initialized to waypoint 588 of 1910
2021-01-09 16:26 :30 [dbg14 lp15810] 9620 RX (#2): Too close to target (4.4m), will not perform pathfinding
2021-01-09 16:26 :30 [dbg14 lp15810] 9620 RX (#2): Starting a course, at waypoint 588, no next course set.
2021-01-09 16:26 :30 [dbg12 lp15810] 9620 RX (#2): PPC: initialized to waypoint 588 of 1910
2021-01-09 16:26 :30 [dbg14 lp15810] 9620 RX (#2): No path to fieldwork start found.
2021-01-09 16:26 :30 [dbg14 lp15810] 9620 RX (#2): change to fieldwork
2021-01-09 16:26 :30 [dbg14 lp15810] 9620 RX (#2): Starting work: turn on and lower implements.
2021-01-09 16:26 :30 [dbg14 lp15811] 9620 RX (#2): Will return to fieldwork at waypoint 587
2021-01-09 16:26 :30 [dbg14 lp15811] 9620 RX (#2): Ending work: turn off and raise implements.
2021-01-09 16:26 :30 [dbg14 lp15811] 9620 RX (#2): overriding onAIEnd() to prevent engine stop
2021-01-09 16:26 :30 [dbg14 lp15811] 9620 RX (#2): Folding Premium Integral II
2021-01-09 16:26 :30 [dbg14 lp15811] 9620 RX (#2): passing the control to AutoDrive to run the unload/refill course.
2021-01-09 16:26 LUA call stack:
2021-01-09 16:26 =C:/Users/MrE/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/base.lua (782) : printCallstack
2021-01-09 16:26 =C:/Users/MrE/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/FieldworkAIDriver.lua (458) : __index
2021-01-09 16:26 =C:/Users/MrE/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/FieldworkAIDriver.lua (440) : stopAndChangeToUnload
2021-01-09 16:26 =C:/Users/MrE/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/FieldworkAIDriver.lua (411) : checkFillLevels
2021-01-09 16:26 =C:/Users/MrE/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/FieldworkAIDriver.lua (355) : driveFieldwork
2021-01-09 16:26 =C:/Users/MrE/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/AIDriver.lua (407) : drive
2021-01-09 16:26 =[C] (4294967295)
2021-01-09 16:26 =C:/Users/MrE/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/base.lua (782) : xpcall
2021-01-09 16:26 dataS/scripts/vehicles/SpecializationUtil.lua (30)
2021-01-09 16:26 dataS/scripts/vehicles/Vehicle.lua (1306) : raiseEvent
2021-01-09 16:26 dataS/scripts/network/NetworkNode.lua (98) : update
2021-01-09 16:26 dataS/scripts/network/Server.lua (58) : updateActiveObjects
2021-01-09 16:26 dataS/scripts/BaseMission.lua (1500) : update
2021-01-09 16:26 dataS/scripts/FSBaseMission.lua (1979) : update
2021-01-09 16:26 dataS/scripts/missions/mission00.lua (469) : update
2021-01-09 16:26 dataS/scripts/main.lua (1944) : update
2021-01-09 16:26 :30 [info lp15811] 9620 RX (#2): Exception, stopping Courseplay driver, C:/Users/MrE/Documents/My Games/FarmingSimulator2019/mods/FS19_Courseplay/FieldworkAIDriver.lua:458: attempt to index field 'spec_autodrive' (a nil value)
2021-01-09 16:26 :30 [dbg3 lp15811] 9620 RX (#2): reset CollisionDetector triggers
2021-01-09 16:26 :30 [dbg3 lp15811] 9620 RX (#2): deleting CollisionDetector
2021-01-09 16:26 :30 [dbg14 lp15811] 9620 RX (#2): Ending work: turn off and raise implements.
2021-01-09 16:26 :30 [dbg14 lp15811] 9620 RX (#2): overriding onAIEnd() to prevent engine stop
2021-01-09 16:26 :30 [dbg3 lp15811] 9620 RX (#2): deleting CollisionDetector
2021-01-09 16:26 :30 [dbg2 lp15811] 9620 RX (#2): lastState: NOTHING => newState: STOPPED
2021-01-09 16:26 :30 [dbg3 lp15811] 9620 RX (#2): Removing all traffic conflicts
2021-01-09 16:26 :30 [dbg3 lp15811] 9620 RX (#2): deleting CollisionDetector
2021-01-09 16:26 :30 [dbg5 lp15811] broadcast SettingsListEvent
2021-01-09 16:26 :30 [dbg5 lp15811] vehicle:9620 RX (#2), parentName:settings, name:stopAtEnd, value:1
2021-01-09 16:26 :30 [dbg5 lp15811] SettingsListEvent:new(9620 RX (#2), stopAtEnd, settings, 1)
2021-01-09 16:26 :30 [dbg12 lp15811] 9620 RX (#2): validateCanSwitchMode(): isDriving=false, isRecording=false, recordingIsPaused=false, customField.isCreated=false ==> canSwitchMode=true

@Tensuko
Copy link
Contributor

Tensuko commented Jan 9, 2021

full logfile (attach by drag and drop) and also need more information, like, what did you try to do, what was your setting etc.
I guess you wanted to use AD to refill digestate ?

@jala15
Copy link
Contributor

jala15 commented Jan 9, 2021

Did you have "UNLOAD_OR_REFILL_WITH_AUTODRIVE" activated before, and then deleted AutoDrive mod from the game? CP doesn´t delete this setting if AD is not present anymore (might happen also when playing on a downloaded savegame / new game on map mod created with AD)

@adrian-pc-code
Copy link
Author

adrian-pc-code commented Jan 9, 2021

Interesting.... I don't remember using autodrive but I do have follow-me. Let me check... I'll also need to play a harvest to get more digestate (and a complete log). I will also check through my mods and see if any of them have autodrive

@Tensuko
Copy link
Contributor

Tensuko commented Jan 10, 2021

Autodrive is an extra mod.
The setting should only get active when you have autodrive installed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants