Courseplay / CourseGenerator

Fieldwork Course Generator 2.0
GNU General Public License v3.0
9 stars 3 forks source link

[BUG_SP] Can't generate course for custom field #21

Open erksartori opened 1 year ago

erksartori commented 1 year ago

READ FIRST https://github.com/Courseplay/Courseplay_FS22/wiki

Steps to reproduce Steps to reproduce the behavior.

Actual behavior A clear and concise description of what happen.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Courseplay version Version used: 7.3.1.0

Log Please attach a log with all debug channels active. For help with the debug channels, please check out the readme at the github front page.

log.txt

Map Map played on.

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

Original field tractor, and the mod plow, however I have done this process before and it had worked on some previous version, but older.

Relevant script mods Mods like Autodrive or VCA and so on.

Everything is great, I'm putting together a courseplay and autodrive tutorial, however, when I create a field and try to configure the tractor to open the field, it gives an error, and asks me to look at the log, could you please check for me, follow the log, and also follow the video, please watch the video starting at minute 00:05:20 the entire process until the error arrives, thank you all.

Below is the video, watch from 00:05:20 https://youtu.be/84nYb4Uur7Q

Tensuko commented 1 year ago

2023-09-25 10:50 :20 [info lp17755] Scanning field 3 on Matopiba, prefer custom fields false

Try to turn on perfer custom fields in the global settings and try again. Not sure if this is the problem.

Tensuko commented 1 year ago

@pvaiko got a callstack in the log, you may have a look?

pvaiko commented 1 year ago

There's not much I can do with this, callstacks from the generator are "normal" when the field contour has problems, that's why we have that pop up informing the user that the generator did not work.

Also, in the video it is clear that it takes very long, for such a small field with no islands the generation should run well under a second. This is another indication that the field has a problem.

Trying prefer custom fields may help, also using different parameters, number of headland, auto angle, etc.

erksartori commented 1 year ago

Okay, I did the following, I added the version of CoursePlay that worked, and see the result in the video below. Note that the map is the same, and it already came with CP-1 of the CoursPlay version from the previous video, (Current) the version I'm using now is 7.1.1.4, I create CP-2 and I can generate it, when I try to create through CP-1 that was generated by 7.3.1.0, it gives the error, I delete it and generate CP-1 again in the same place, and it generates normally. That's why I believe there is some error. Follow today's log. log.txt

Video

pvaiko commented 1 year ago

I'm sorry you lost me there, which one of the following is not working?

  1. generating with 7.3.1.0 on the CP-1 created with 7.1.1.4
  2. generating with 7.3.1.0 on the CP-1 created with 7.3.1.0
  3. generating with 7.1.1.4 on the CP-1 created with 7.3.1.0
  4. generating with 7.1.1.4 on the CP-1 created with 7.1.1.4?
erksartori commented 1 year ago

It got a little confusing. But that's how it is, in version 7.1.1.4 it is generating correctly. In version 7.3.1.0 it is not generating.

pvaiko commented 1 year ago

Still confusing. Can you please select one or more numbers between 1 and 4 according to the list above?

Also, please turn on all debugs for the logs, without that they are not really useful.

erksartori commented 1 year ago

In the video I showed today, I created CP-2 in version 7.1.1.4, and it generated correctly. But if you notice the field already had a field created (CP-1) which was what I was testing with version 7.3.1.0, as it was already created, I tried to generate it, and it gave the error. So I deleted this CP-1 field and recreated it with version 7.1.1.4 and it worked correctly. In my opinion, the creation of the field in 7.3.1.0 is generating an error.

Sorry for the English, it is generated by Google Translate.

erksartori commented 1 year ago

So far I have tested with 1 and 2, I will test with 3

erksartori commented 1 year ago

Well, I tested it, and 3 and 4 work normally.

erksartori commented 1 year ago

Deleted the log and generated a new one with debug enabled log.txt

erksartori commented 1 year ago

I pressed the close button by mistake, sorry.

pvaiko commented 1 year ago

Can you upload the C:/Users/sarto/Documents/My Games/FarmingSimulator2022/modSettings/FS22_Courseplay/CustomFields/FS22_Matopiba_Map.MatopibaMap/CP-1 file?

erksartori commented 1 year ago

CP-1.zip

pvaiko commented 1 year ago

What happens if you do not completely close the field boundary, so there is a little gap between the first and the last point, like this:

image

erksartori commented 1 year ago

Ok, OK, but then we run into a problem, because version 7.1.1.4 does it normally, the same way I did in the videos, and it works. Now in this version 7.3.1.0, when I did it, it gives me an error, now I will have to make a tutorial explaining this in detail and showing how to do it with an expanded view. Could you let me know if there were any changes to this process.

pvaiko commented 1 year ago

We understand that this is a problem with 7.3.1.0, just wanted to verify, that's why I asked you to try it. We'll fix it.

erksartori commented 1 year ago

Show, thank you from the bottom of my heart. I'm going to do the tests on another map, because Matopiba has now started to generate an error, when I try to use the (ESC) button it opens the map but doesn't bring anything, making it useless to use, I'm also going to update courseplay, to the version that It is now available, and I will report if the problem persists. Once again, I thank everyone for their attention.