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

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

Open
erksartori opened this issue Sep 25, 2023 · 18 comments
Open

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

erksartori opened this issue Sep 25, 2023 · 18 comments
Assignees
Labels
bug Something isn't working

Comments

@erksartori
Copy link

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

@erksartori erksartori added the bug Something isn't working label Sep 25, 2023
@Tensuko
Copy link
Contributor

Tensuko commented Sep 25, 2023

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
Copy link
Contributor

Tensuko commented Sep 25, 2023

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

@pvaiko pvaiko changed the title [BUG_SP] Creating field [BUG_SP] Can't generate course for custom field Sep 25, 2023
@pvaiko
Copy link
Contributor

pvaiko commented Sep 25, 2023

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
Copy link
Author

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
Copy link
Contributor

pvaiko commented Sep 26, 2023

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
Copy link
Author

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
Copy link
Contributor

pvaiko commented Sep 26, 2023

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
Copy link
Author

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
Copy link
Author

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

@erksartori
Copy link
Author

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

@erksartori
Copy link
Author

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

@erksartori
Copy link
Author

I pressed the close button by mistake, sorry.

@pvaiko
Copy link
Contributor

pvaiko commented Sep 26, 2023

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

@erksartori
Copy link
Author

CP-1.zip

@pvaiko
Copy link
Contributor

pvaiko commented Sep 27, 2023

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
Copy link
Author

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
Copy link
Contributor

pvaiko commented Sep 28, 2023

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants