Courseplay / Courseplay_FS22

Courseplay for Farming Simulator 2022
GNU General Public License v3.0
825 stars 174 forks source link

[BUG_SP] Course from right driver is started on wrong lane if its handed over from AD #3118

Closed yopys closed 4 months ago

yopys commented 4 months ago

Steps to reproduce

It does not happen every time. But very often. Only the right driver in an multitool two driver course starts on the left lane or even middle if its handed over from AD. Not surley found how to reproduce.

Actual behavior

Very often only the right driver starts its course on the left or even in the middle on an 2 driver course if its handed over by AD.

Expected behavior

The right driver should start on its selected lane.

Courseplay version

7.4.0.2

Log 2024-03-04 09:34 :44 [info lp133283] Scanning field 36 on Departement Haut Beyleron, prefer custom fields false 2024-03-04 09:35 :11 [info lp133988] Scanning field 36 on Departement Haut Beyleron, prefer custom fields false 2024-03-04 09:35 :31 [info lp134531] M8-201/1461: The driver stopped after: 19s, time passed without standing still: 17s, first prediction was: 13m:22s 2024-03-04 09:35 :59 [info lp135368] Scanning field 36 on Departement Haut Beyleron, prefer custom fields false

Was stopped by hand cause of driving in the middle ;-)

Error/Warning: 2024-03-04 08:32 Error: Can't load resource 'C:/Users/user/Documents/My Games/FarmingSimulator2022/mods/FS22_Departement_Haut_Beyleron/maps/scripts/TrafficLightCrossing.lua'. 2024-03-04 08:32 Error: Can't load resource 'C:/Users/user/Documents/My Games/FarmingSimulator2022/mods/FS22_Departement_Haut_Beyleron/maps/scripts/TrafficLightCrossingFix.lua'.

2024-03-04 08:32 Warning: BRANDWURST' is an unknown brand! Using Lizard instead! 2024-03-04 08:32 Warning: BRANDWURST' is an unknown brand! Using Lizard instead!

2024-03-04 08:32 data/foliage/beetRoot/beetRoot.i3d (36.98 ms) 2024-03-04 08:32 Warning (performance): Foliage lod 1 mesh 'beetRoot' 'dead' 'd1' is much larger than lod 0 mesh (min/maxY

2024-03-04 08:33 C:/Users/user/Documents/My Games/FarmingSimulator2022/mods/FS22_KroneSwadro2000/kroneSwadro2000.i3d (50.78 ms) 2024-03-04 08:33 Warning (C:/Users/user/Documents/My Games/FarmingSimulator2022/mods/FS22_KroneSwadro2000/kroneSwadro2000.xml): Missing ai agent attachment definition for attachable vehicle

Map Map played on.

FS22_Departement_Haut_Beyleron

Vehicles/ implements involved Which vehicle or implement? Mod yes/no ?

Last case: Kubota M8-201 / Poettinger Rotocare V 12400

Relevant script mods Mods like Autodrive or VCA and so on. AD,VCA,GPS,IC ...

yopys commented 4 months ago

Think i got one case with enabled debug: fsScreen_2024_03_04_11_01_42 log-wrong-lane.txt

Vehicles/ implements involved: Q305/1507

yopys commented 4 months ago

Perhaps it happens if you load/change Course/Lane after you start AD or click CP in AD.

Tensuko commented 4 months ago

Select the lane, then start the driver. All what happens is that AD starts CP and CP is set to always last waypoint + the selected lane setting.

All the Errors you posted are not related with CP.

Tensuko commented 4 months ago

Also you don't have the right file: https://github.com/Courseplay/Courseplay_FS22/releases Always load from there.

yopys commented 4 months ago

Select the lane, then start the driver. All what happens is that AD starts CP and CP is set to always last waypoint + the selected lane setting.

All the Errors you posted are not related with CP.

Okay. Then it is not possible to start AD and set CP course/lane after AD has started. I often do that. Ways are long and there is time for. For the course it works. But not for the lane.

yopys commented 4 months ago

Also you don't have the right file: https://github.com/Courseplay/Courseplay_FS22/releases Always load from there.

I pulled for years from main. ;-)

Tensuko commented 4 months ago

You have to set the lane before start any AI Driver (AD or CP). Don't know where in the API we have that set like that. I can try to figure it out at a later point. But it is not a bug and actually when set it up before start it working as expected.

falcon470 commented 3 weeks ago

hate to say it but this is rather a simple answer, select autodrive load course pick right for example. Followed by once you have your lane set up cycle autodrive off and then back on. If my thoughts are correct this should make it work properly. a little gimicky mabey but works fine, i think ill have to test this