Courseplay / courseplay

Courseplay for Farming Simulator 2019
http://courseplay.github.io/courseplay
GNU General Public License v3.0
955 stars 529 forks source link

Problem with unloading havester #4004

Closed Molsam closed 5 years ago

Molsam commented 5 years ago

Farming Simulator 19 Screenshot 2019 07 25 - 10 47 28 51

am i doing something wrong? It wont emty

Axel32019 commented 5 years ago

Which CP version do you use?

Molsam commented 5 years ago

v6.01.00249.dev

Axel32019 commented 5 years ago

@Molsam It is difficult to reproduce your situation. Could you please provide some more informations:

Molsam commented 5 years ago

It is Petervill the version 1.0.0.0 It is on every field in every direction, but the one I reported is field 41 the harvester is going from east to west Farming Simulator 19 Screenshot 2019 07 26 - 14 51 00 41 Thats the pic. of the harvester setup anf i am using number 6 - Fieldwork

rgoe commented 5 years ago

Maybe I can contribute to solving the problem with some additional details. I did some testing on standard Ravenport map. Only 3 mods (Courseplay (*.251), AutoDrive (1.0.3.6) and FollowMe (1.3.0.6)) are in the mod-folder. Vehicles used are all stock:

Setup is mode 6 for forage harvester(field 8)/combine(field 11) and mode 2 for the tractors (although I don't think this is a mode 2 problem) It looks like the forage harvester and the combine are seen as obstacles/traffic by the unloading tractors as soon as they get close and therefore the tractors stop notifying that they are stuck. Interesting is - this happens with the 7R and the MF 8700 but not with the 6R - the 6R approaches the combine and the harvester as he is supposed to do.

As far as I can see these problems started after version *.241 - with 241 all tractors approach their combine/harvester. I made some screenshots in case they're of any help

Full log attached - no hints in it. log.txt

MF8700: fsScreen_2019_07_26_15_50_57 6R approaches correctly: fsScreen_2019_07_26_15_53_12 MF8700: fsScreen_2019_07_26_15_56_30 7R: fsScreen_2019_07_26_16_08_48 MF8700: fsScreen_2019_07_26_16_11_05 6R working as it should: fsScreen_2019_07_26_16_14_40

Molsam commented 5 years ago

Downloaded 00.253 and the problem is still there and now the tractor says its in traffic when there is nothing in front of it. Farming Simulator 19 Screenshot 2019 07 27 - 13 46 37 14

It was when the combine says it needs to be unloaded.

Axel32019 commented 5 years ago

@Molsam Thanks for that hint - it gives me an idea what condition I can search...

Axel32019 commented 5 years ago

@rgoe / all: Thanks for your investigations! As long as there is not the message "## Courseplay: aiTrafficCollisionTrigger missing. Traffic collision prevention will not work! ..." in the log all vehicles should operate the same way. The difference in your shown scenarios is the angle the tractors approach to the combine:

  1. MF8700: Here I doubt the tractor will manage a turn to get beside the chopper and hence stuck
  2. 6R approaches correctly: Here the tractor come the "good" way from the back to the side of the chopper and everthing is fine
  3. MF8700: This looks interesting. The tractor seems to detect the yellow box behind the chopper as obstacle and stops. But on other screenshots the tractor does not stop here.
  4. 7R: Here it looks like the tractor detects the "AINeedsTrafficCollisionBox"
  5. MF8700: Here the tractor "hits" the header of the combine
  6. 6R working as it should: As you already mentioned 👍

At the moment I am working on a 2-part solution:

  1. Adapt the collision detection on the distance to the combine to avoid detecting a collission of combine objects like a "very small" back axis (!) when the tractor is approaching -> this is 95% finalized
  2. Assign the tractor the combine it is working with as an ignored object, but this becomes more difficult as it migth end up in the following dead lock: fsScreen_2019_07_27_23_28_21 The tractor is waiting for the combine, but the combine stopped as the tractor is the collission...
Axel32019 commented 5 years ago

If someone is able to test, please download from the link: https://github.com/Axel32019/courseplay/archive/e70eb949ac0f69c8f0ab71322d35396f82b43081.zip

rgoe commented 5 years ago

@Axel32019 : I was able to do a short test using the same setup described above (leaving the 6R aside as it worked anyway). It looks as if you found the culprit - pretty good work - the MF8700 and the 7R approach the combine/harvester without any hickups: fsScreen_2019_07_28_21_19_51 fsScreen_2019_07_28_21_19_58 fsScreen_2019_07_28_21_25_09 fsScreen_2019_07_28_21_25_20 fsScreen_2019_07_28_21_27_38 fsScreen_2019_07_28_21_27_41 fsScreen_2019_07_28_21_27_58 fsScreen_2019_07_28_21_30_48

Molsam commented 5 years ago

Hey Alex. It seems to do the job. Tried on to of the fields i had the problem on and nothing now. The only thing is the tractor sometimes stops in the uncut crops when it has emtyed the combine so when the combine comes back up the tractor is blocking. But thats not a big problem

Axel32019 commented 5 years ago

Hi @Molsam Thank you for your feedback! The issue the tractor goes out of the field I also know, this is an old behaivior and seems to be deep in mode 2.

caplink811 commented 5 years ago

Morning gents,

as I experienced, at least nearly, the same problems as desribed above with V601.00256, I tried the version you provided above, and guess what,, the problem seems to be much better now.

The screenshot is from F33 (direction of fieldtracks are n to s or s to n, both directions won't work) Saxonia_F33_Mode2 on Saxonia map, the unload driver worked without problems, but when it comes to the point where he unload the 1st time, and then came back to the field to unload the harvester, he never could reach them, cause of obstacle warning. I tried it with different tractors, but the obstacle warning won't gone. With your version its ok (but now I have a lack of cross points, neither own, nor foreign are visible)

thx JrB

Axel32019 commented 5 years ago

@caplink811 Thanks for your test! It would be helpful if you create the screenshot(s) with enabled collis - press "F5". In the meantime i fixed some additional issues, which migth be the issue in your screenshot or the direction the tractor is driving to the combine. Please see #4017. This is included in https://github.com/Courseplay/courseplay/releases/tag/6.01.00259

Tensuko commented 5 years ago

Is this one fixed as well ?

Axel32019 commented 5 years ago

@Tensuko Who you are asking?

Tensuko commented 5 years ago

Creator of the Issue. If solved for him it can be closed.

caplink811 commented 5 years ago

morning gents, as an addional information, with 6_01_00260 it seems that everything works well now, Just tried it on 3 different fields (F1, F11, F13 on Saxonia) with 3 different tractors (Fendt 1050,Deutz 9 FSM and FBM) at the same time, no problem (at least) with any collision issues. The courses are with fieldtracks as well as with headlands in combination.

From my point of view this issue is resolved, but it depends on @Molsam .

thank you bye JrB

Tensuko commented 5 years ago

If any more problems I will reopen. Closed.