-
Notifications
You must be signed in to change notification settings - Fork 174
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] Combine unloader getting stuck off field #2828
Comments
A log would have been great, to see what actual off field penalty we used in these examples. |
Ok, will try to find time today to reproduce such situation with debug on |
Just replayed very similar situation on a smaller field. This time with log and debug activated for unloader. Luckily it didn't get stuck on a tree here, but still the way it took was quite dangerous, and the already harvested part of the field just nearby. Hope this helps |
Ok, for self unload we use a very low (0.1) off field penalty instead of the normal 7.5, as the comment in the code says: "use a low field penalty to encourage the pathfinder to bridge that gap between the field and the trailer". Not sure what is the best way to improve this. We can maybe ignore the off-field penalty around the trailer? |
If that is possible, its the only way I can think of fixing this. |
Sounds reasonable. Or would it also be possible to have a low (but still existing) penalty around trailer, and high penalty anywhere else? Just to make sure that a full ignorance of penalty won't lead to even more situations were grain cart circles around the unloader instead of just staying on the current side (most often the field side) of the unloader when driving to the second trailer/bin after unloading into first one finished and grain cart still has high fill level (only randomly reproducible, but hope you still understand what i mean). This can result in similar issue, with grain cart getting stuck at trees or more often even colliding with the unloader. |
I prefer the reduced penalty arround the the trailer. |
We have a position correction, would need to check for that multi bin trailer, maybe the distance is too short for yours. |
This would be a useful addition. I too see this issue a lot, often coming back to find trailers stuck behind trees as the tractor tries to drive down the hedgeline. Unfortunately I'm travelling a lot at the moment and can't play much to record it all for more examples. |
Is this the same issue? It only ever happens when the combine is on the first headland but if there's a body of water between the unloader and the combine, the unloader will attempt to drive straight through it. In this instance I've tried putting trees around the water to influence the pathfinder but he always finds a way through. It's manageable if I think about where to start the unloaders off etc but I've got a log for you if it's helpful (it's all right at the end). Here's a video (which corresponds to this log file) and here's an image (with no log) of it happening another time: |
Maybe not exactly the same, but definitely very similar and probably the same root cause (too low off-field penalty). Those ponds are even more dangerous when within the field as then even harvesters can be sunk there during pathfinder turns. Cannot count anymore how many harvesters I've lost in the pond within field 4 of Landkreis Rostock before I bought that island and spent several millions to remove this nasty pond :D In the meantime until this issue is resolved, maybe a self placed fence (with correct collision bits) could help to at least prevent the sinking in the pond if the farmland nearby is buyable. |
I thought about a fence but in this instance I put a few more trees in between the trees I'd put in before, making it impossible to drive between them, and he found his way without getting wet. I've created a field too close to the edge of the buyable land in another place for fences or trees so I'll either have to just be vigilant on the first headland or sacrifice a slither of field around the water so I can put obstacles in. Is it that it's not possible to detect water? It seems like the pathfinder thinks these bodies of water are just big dips that it's ok to drive straight through. |
I'm sure there is a way to detect water, it just did not seem to be a significant problem so far, so we did not worry about it. We usually try to stay on the field which takes care of avoiding water. |
Not this exactly but i have found the the combine unloader ( when unloading onto the field ) can not pathfind when its called back to the combine due to the pile being too large (CP version is 7.4.0.1) |
Ignore off-field penalty around the target trailer and use normal penalty elsewhere to keep the self-unload path on the field. #2828
- Code improvements - Improving how root vegetable harvesters are recognized by @tn4799 - Fix silo driver park position. - Fix for #3012 - Fix for #3034 - Fix for #2828 - Fix for #3038 - Added food mixer wagon, fertilizer/lime/manure sprayer and Göweil LT Master as valid target for shovel mode. - 3-point attached tools and the Göweil will be targeted from behind to fill up.
With 7.4.0.2, I'm still having the same issue with combine unloaders driving through water... |
We have not added water detection. Otherwise it seems to be applying off-field penalty correctly. |
Perhaps in the next version of FS Giants might make trees and poles detectable so fields don't have to be bought and dirt painted around trees and poles to allow CP to create headlands around them as well. As when doing contracts it's annoying if the field doesn't have a painted area around each tree/pole, pretty much stop CP from working on some maps when there are lots of baling contracts in parkland type fields with loads of trees and poles. One can dream anyway 🤣 |
There is always a reason. Without the log it is difficult to tell, but for instance, if the pathfinding fails repeatedly, we reduce the off-field penalty. Also, keep in mind, that the off-field penalty is what it says: a penalty. It does not block driving off field, just makes it more expensive for the algorithm. So even with penalty, if driving off field is significantly (depending on the penalty value) shorter, it will drive off field. |
@pvaiko starting happening to me on Saxthorpe last night. Managed to capture it. Surely it should have stayed inside the field in the effort? it only had to go around the corner, instead it got grounded on the hill under the hedge, trying to get to the harvester around the corner. As a side note, when planning a route to target, can it not use the route lines of the forager to aid travel? as it can obviously access the forager lines when it's running the route as you see when it takes over unloading. That would make it travel straighter instead of the very wonky routes it currently plots back to the harvester plus would make it go around the corner? and plot longer routes around fruit easier without giving up in large fields if a headland course had been plotted. |
There are like 10 pathfinder runs in that log, I can't tell which one those is related to the screenshots (which, for some reason I can't open). The reason we are not using the harvester's course is that it is a lot easier to just tell the pathfinder where we want to go, there is no logic to be implemented. |
What I see is that we reduce the off-field penalty significantly (1.5 instead of 7.5) when the harvester is on the first headland to make it easier for the pathfinder. |
Then we will keep it like that. We sure had our reason to do this. |
I've reattached them, not sure why the were not working. Sorry had two tractors of the same model unloading. Just seamed off that it tried to cut the corner like that. |
Would it not make sense to keep it higher as the unloader should be coming behind the harvester for headland (1)? so should never need to go off the field? |
There are 2 types of users. So we take the best way for both worlds - and no - there won't be a setting to change that (I don't want to have settings for everything so new player won't know what to do). As long as the unloader can reach its target, its fine. |
Yes I understand that. But it’s stupid if it gets stuck crossing out of a field. It should never go outside the field boundary in my opinion. Lots of maps have water etc… in the way. Stay in the field should mean stay in the field. Should be an advanced setting. If new people get confused with settings then they shouldn’t use advanced. I understand your dilemma though, keeping it simple enough for the masses. |
A setting will not be added.
It is TRY to stay on the field! |
It is all in here in this function, reducing the off-field penalty for the first two headlands, to improve the success rate of the pathfinder in these cases, to give a little more space to the pathfinder. If you want you can play with those factors to see if that helps. Maybe one fifth for the first headland is too aggressive.
|
There already is a setting for turning on field, with similar effect. Maybe this could also be used to influence the off-field penalty for unloader's pathfinder? Quite low if deactivated for quicker pathfinding, quite high when activated to force the pathfinder to an inside-field path which might definitely be needed when you have many obstacles or even water ponds near the field edge. |
Not a good Idea to use a setting that is for something complety different. |
Steps to reproduce
Use combine unloader on irregularly shaped field
Actual behavior
Depending on field shape, position of combines and unloaders, there's high chance the grain cart will drive at least parts of its way outside the field. That can be very frustrating as this mostly comes with a very high risk of getting blocked by trees, masts, fences, and even AI or AD traffic on adjacent roads. And be it just a too tight curve radius around a tree so that not the tractor but just the back of the trailer gets stuck.
Another issue coming with this is that grain carts not always approach the unloaders on the free path but sometimes circling around the unloaders off field first (and also when unloading into first trailer ended and grain cart drives to the second trailer to continue unloading) - in a quite sharp curve where at least the cart itself mostly collides with any part of the waiting unloaders.
Expected behavior
As long as possible, the grain cart should stay within field boundaries. I'd propose any waypoint on non-field texture should be rated with significantly increased cost for the pathfinder (but still less cost than waypoints within unharvested fruit ofc). So it would only drive off the field where it means a significant reduction in total way length, or where it is not possible at all to be avoided (i.e. unloader position too far away from field edge).
I bet this would also help to avoid the unloader getting stuck within field islands (i.e. Western Australia map has some problematic ones, also the water ponds on Landkreis Rostock within field 4 or between field 37+38 can be really thrilling).
Screenshots
Courseplay version
Version used: 7.3.1.2
Map
Landkreis Rostock here. But should apply to any map with irregularly shaped fields and not much space around those.
Vehicles/ implements involved
Which vehicle or implement? Any grain cart
Relevant script mods
N/A
Wouldn't declare that as a bug necessarily, but rather improvement/enhancement. Still haven't found out how to put the enhancement label instead of the bug label though.
The text was updated successfully, but these errors were encountered: