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

Cp drives out of the field after turning #24

Closed
Onkel2000 opened this issue Dec 24, 2021 · 6 comments
Closed

Cp drives out of the field after turning #24

Onkel2000 opened this issue Dec 24, 2021 · 6 comments
Assignees
Labels
waiting for user User answer needed

Comments

@Onkel2000
Copy link

Onkel2000 commented Dec 24, 2021

Hey, if CP tries to turn in a sharp spot, it starts to stutter and CP pulls out of the field. You have to fire helpers. It's on a coustom map. The following appears in the log.

2021-12-24 15:16 Warning (script): 'worldToLocal': Argument 1 has wrong type. Expected: Int. Actual: Nil 
2021-12-24 15:16   D:\auto_builder\cache\svn\bc39c0c6d611016d38088dfeb30cadc8\src\base\scripting\lua\LuaScriptSystem.cpp (890): expectedType == Value::VoidType || expectedType == Value::ClassType
2021-12-24 15:16 LUA call stack:
  dataS/scripts/vehicles/ai/AIVehicleUtil.lua (211) : worldToLocal
  =C:/Users/Eike/Documents/my games/FarmingSimulator2022/mods/FS22_Courseplay/scripts/ai/AIReverseDriver.lua (67) : getDriveDirection
  =C:/Users/Eike/Documents/my games/FarmingSimulator2022/mods/FS22_Courseplay/scripts/ai/AIDriveStrategyFieldWorkCourse.lua (97) : getDriveData
  dataS/scripts/vehicles/specializations/AIFieldWorker.lua (550) : getDriveData
  dataS/scripts/vehicles/specializations/AIFieldWorker.lua (269) : updateAIFieldWorkerLowFrequency
  dataS/scripts/specialization/SpecializationUtil.lua (19)
  dataS/scripts/vehicles/Vehicle.lua (1877) : raiseEvent
  dataS/scripts/network/NetworkNode.lua (112) : update
  dataS/scripts/network/Server.lua (59) : updateActiveObjects
  dataS/scripts/BaseMission.lua (1180) : update
  dataS/scripts/FSBaseMission.lua (2006) : update
  dataS/scripts/missions/mission00.lua (582) : update
  dataS/scripts/main.lua (1323) : update
2021-12-24 15:16 Error: Running LUA method 'update'.
dataS/scripts/utils/MathUtil.lua(207) : attempt to perform arithmetic on local 'x' (a nil value)
@Tensuko
Copy link
Contributor

Tensuko commented Dec 24, 2021

Can you make a screenshot of the situation ?
So we can see the course, the tools used and stuff.

@Tensuko Tensuko added the waiting for user User answer needed label Dec 24, 2021
@Onkel2000
Copy link
Author

The Fendt 1050 is used with a K-12200 cultivator

20211224160452_1
20211224160417_1
20211224160423_1

@ph1go
Copy link

ph1go commented Dec 24, 2021

I'm having the same issue, my worker's done a 360 and now he's completely disoriented and leaving the field...
fsScreen_2021_12_24_16_46_49

It was the first row of up/down after doing the headland and I think the first up and down lines are just too close together for him to understand what he has to do.

Edit - I corrected him and put him back on track and he's done much better with all the turns since.

@pvaiko pvaiko self-assigned this Dec 24, 2021
@pvaiko
Copy link
Contributor

pvaiko commented Dec 24, 2021

The log folks, we need the log. The entire log.

@ph1go
Copy link

ph1go commented Dec 24, 2021

I've looked back to the time in the log when I posted the above and it's exactly the same log entries as @Onkel2000 had...

2021-12-24 16:49 Warning (script): 'worldToLocal': Argument 1 has wrong type. Expected: Int. Actual: Nil 
2021-12-24 16:49   D:\auto_builder\cache\svn\bc39c0c6d611016d38088dfeb30cadc8\src\base\scripting\lua\LuaScriptSystem.cpp (890): expectedType == Value::VoidType || expectedType == Value::ClassType
2021-12-24 16:49 LUA call stack:
  dataS/scripts/vehicles/ai/AIVehicleUtil.lua (211) : worldToLocal
  =C:/Users/office/Documents/My Games/FarmingSimulator2022/mods/FS22_Courseplay/scripts/ai/AIReverseDriver.lua (67) : getDriveDirection
  =C:/Users/office/Documents/My Games/FarmingSimulator2022/mods/FS22_Courseplay/scripts/ai/AIDriveStrategyFieldWorkCourse.lua (97) : getDriveData
  dataS/scripts/vehicles/specializations/AIFieldWorker.lua (550) : getDriveData
  dataS/scripts/vehicles/specializations/AIFieldWorker.lua (269) : updateAIFieldWorkerLowFrequency
  dataS/scripts/specialization/SpecializationUtil.lua (19)
  dataS/scripts/vehicles/Vehicle.lua (1877) : raiseEvent
  dataS/scripts/network/NetworkNode.lua (112) : update
  dataS/scripts/network/Server.lua (59) : updateActiveObjects
  dataS/scripts/BaseMission.lua (1180) : update
  dataS/scripts/FSBaseMission.lua (2006) : update
  dataS/scripts/missions/mission00.lua (582) : update
  dataS/scripts/main.lua (1323) : update
2021-12-24 16:49 Error: Running LUA method 'update'.
dataS/scripts/utils/MathUtil.lua(207) : attempt to perform arithmetic on local 'x' (a nil value)

@Onkel2000
Copy link
Author

Sorry It's also on Elm Creek. At first I thought it would also be because of the Coustom Map. Here is the log file. log.txt

@pvaiko pvaiko closed this as completed in b6b59b1 Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for user User answer needed
Projects
None yet
Development

No branches or pull requests

4 participants