Courseplay: CombineUnloadAIDriver: CombineUnloadManager.lua:148

Created on 27 Sep 2019  路  6Comments  路  Source: Courseplay/courseplay

Using the new CombineUnloadAiDriver

Hello,

i used original vehicles. After i recorded a course from the field to a silo, i started the BigX with two unloaders.

After a few moments i was "locked" inside a tractor and wasn't able to switch to another tractor or leave it. Inside the lock stands:
2019-09-27 20:20 D:/LS19 Mods/FS19_CoursePlay6_1/CombineUnloadManager.lua:148: attempt to index a nil value 2019-09-27 20:20 Error: Running LUA method 'update'.

Here is the log: log.txt
Can't provide a screenshot. i spamed the shortcut, but nothing was saved.

Used some QOL mods and CP.

Greetings,
Knowen

Most helpful comment

Good Morning,

i made a new test this morning, with a cleaned up Mod folder.
A Log of the test (only headlands of field 7 on the Ravenport map: log.txt
Also here is a video of the test: https://youtu.be/bocPC1l77vw

Some issues occured during the test.

The first one is a small one, i guess. It seems that a front weight isn' recognized in the calculation of the distance between the combine and the unloader. You can see it at 2:20min in the Video.
fsScreen_2019_09_28_09_40_29

The second one:
The unloader drives stright back when he is full, calculated a path to the unloading course but stands still. _(Watch 8:00min)_ Untill then i only had 1 unloader. I set up a second one, which headed foreward to the combine (He needed a moment at the end, but everything whent fine. _See 11:15min_). The combine and the second unloader continues working. The first unloader follws them, cause his calculated route is crossing/matching the combine route. But he managed to unload into the silo at the end.
fsScreen_2019_09_28_09_47_10
fsScreen_2019_09_28_09_49_06

The third one is also a collision issue. I haven't made a screenshot of it, but you can see it at 16:36min.

The fourth one is a pathfinding related issue, i guess.
After unloading at the silo the unloader#1 headed back to follow the current used unloader#2. When he wants to align to him, his calculated course crosses the path of the combine/unloader#2. The combine stops moving, also both unloaders. _(Watch 19:30min)_
fsScreen_2019_09_28_09_59_08
After a while the unloader#1 start to follow his path and crashes into unloader#2 _(See 21:40min)_
I could solve the situation with sending unloader#1 back to the unloading course.

Sadly, the unloader#1 ended up in a tree, after his extra turn. The logs shows:
2019-09-28 10:03 :46 [dbg14 lp70812] 1050 (#3): Pathfinding turned off, falling back to dumb mode
_(See 23:20min)_

So the remaining unloader makes his unloading course and after that wasn't able to find the combine.
fsScreen_2019_09_28_10_04_28
_(See 25:20min)_

I stoped the test here. Hopefully this helps you.
If you need more, just let me know.

Greetings,
Knowen

All 6 comments

QOL Mods ? Also if you get stuck in something like that, try the console command cpStopAll

Pls make sure things like that don't happen in a CP Alpha Test:
Error: Failed to open xml file 'D:/LS19 Mods/AutoDrive/modDesc.xml'.
Load mod: AutoDrive
Error: Missing descVersion attribute in mod AutoDrive

Download a proper AD release from here: https://github.com/Stephan-S/FS19_AutoDrive/releases

And pls keep in mind, even when you not activate the mods for a new savegame, the mods will still be there and can cause Errors, as they will get loaded.

Good Morning,

i made a new test this morning, with a cleaned up Mod folder.
A Log of the test (only headlands of field 7 on the Ravenport map: log.txt
Also here is a video of the test: https://youtu.be/bocPC1l77vw

Some issues occured during the test.

The first one is a small one, i guess. It seems that a front weight isn' recognized in the calculation of the distance between the combine and the unloader. You can see it at 2:20min in the Video.
fsScreen_2019_09_28_09_40_29

The second one:
The unloader drives stright back when he is full, calculated a path to the unloading course but stands still. _(Watch 8:00min)_ Untill then i only had 1 unloader. I set up a second one, which headed foreward to the combine (He needed a moment at the end, but everything whent fine. _See 11:15min_). The combine and the second unloader continues working. The first unloader follws them, cause his calculated route is crossing/matching the combine route. But he managed to unload into the silo at the end.
fsScreen_2019_09_28_09_47_10
fsScreen_2019_09_28_09_49_06

The third one is also a collision issue. I haven't made a screenshot of it, but you can see it at 16:36min.

The fourth one is a pathfinding related issue, i guess.
After unloading at the silo the unloader#1 headed back to follow the current used unloader#2. When he wants to align to him, his calculated course crosses the path of the combine/unloader#2. The combine stops moving, also both unloaders. _(Watch 19:30min)_
fsScreen_2019_09_28_09_59_08
After a while the unloader#1 start to follow his path and crashes into unloader#2 _(See 21:40min)_
I could solve the situation with sending unloader#1 back to the unloading course.

Sadly, the unloader#1 ended up in a tree, after his extra turn. The logs shows:
2019-09-28 10:03 :46 [dbg14 lp70812] 1050 (#3): Pathfinding turned off, falling back to dumb mode
_(See 23:20min)_

So the remaining unloader makes his unloading course and after that wasn't able to find the combine.
fsScreen_2019_09_28_10_04_28
_(See 25:20min)_

I stoped the test here. Hopefully this helps you.
If you need more, just let me know.

Greetings,
Knowen

This is a nice Report, thank you!

Hello,

today i tested the newest version of this Branch and faced again some issues i want to share with you.
This time without a video or screenshots...
First things first: Here is the log log.txt

1. Issue

2019-10-05 18:01 Error: Running LUA method 'update'.
2019-10-05 18:01 D:/LS19 Mods/FS19_CoursePlay6_1/CombineUnloadAIDriver.lua:999: attempt to compare nil with number

together with

2019-10-05 18:01 Warning (script): 'worldToLocal': Argument 1 has wrong type. Expected: Int. Actual: Nil 
2019-10-05 18:01   ..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (882): expectedType == Value::VoidType || expectedType == Value::ClassType
2019-10-05 18:01 LUA call stack:
2019-10-05 18:01   =D:/LS19 Mods/FS19_CoursePlay6_1/CombineUnloadAIDriver.lua (997) : worldToLocal
2019-10-05 18:01   =D:/LS19 Mods/FS19_CoursePlay6_1/CombineUnloadAIDriver.lua (623) : getSpeedBesideChopper
2019-10-05 18:01   =D:/LS19 Mods/FS19_CoursePlay6_1/CombineUnloadAIDriver.lua (328) : driveBesideChopper
2019-10-05 18:01   =D:/LS19 Mods/FS19_CoursePlay6_1/CombineUnloadAIDriver.lua (99) : driveOnField
2019-10-05 18:01   =D:/LS19 Mods/FS19_CoursePlay6_1/drive.lua (11) : drive
2019-10-05 18:01   =D:/LS19 Mods/FS19_CoursePlay6_1/base.lua (983) : drive
2019-10-05 18:01   dataS/scripts/vehicles/SpecializationUtil.lua (30)
2019-10-05 18:01   dataS/scripts/vehicles/Vehicle.lua (1306) : raiseEvent
2019-10-05 18:01   dataS/scripts/network/NetworkNode.lua (98) : update
2019-10-05 18:01   dataS/scripts/network/Server.lua (58) : updateActiveObjects
2019-10-05 18:01   dataS/scripts/BaseMission.lua (1500) : update
2019-10-05 18:01   dataS/scripts/FSBaseMission.lua (1971) : update
2019-10-05 18:01   dataS/scripts/missions/mission00.lua (469) : update
2019-10-05 18:01   dataS/scripts/main.lua (1879) : update

So this Error occurs if one unloader is driving left or right from the chopper, is nearly full and a second unloader drives beside the first unloader. If the first unloader is full, it should stop and the second starts to be filled. But not here. All three together continues driving forward.

2. Issue

2019-10-05 18:09 D:/LS19 Mods/FS19_CoursePlay6_1/CombineUnloadManager.lua:198: attempt to index a nil value
2019-10-05 18:09 Error: Running LUA method 'update'.

This message appears, if i manually assign a chopper to an unloader.

Greetings,
Knowen

I think we can close this one. Haven't recently seen one mentioned error in the game.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

valdimellen picture valdimellen  路  4Comments

bojanh66 picture bojanh66  路  4Comments

MicaelJarniac picture MicaelJarniac  路  4Comments

iw-shawn picture iw-shawn  路  5Comments

Satissis picture Satissis  路  4Comments