Courseplay / courseplay

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

Feature request: GPS-alike function / Lane Assist #2923

Closed AlexStephenLytton closed 4 years ago

AlexStephenLytton commented 5 years ago

Hey Devs of CP out there :)

What about a feature to hold lane in desired direction just like the FS17 GPS mod? In FS17 i used GPS to stay in lane on longer straight roads / ways... Would love to see such a function integrated in the new version of CP for LS19. Don't know if that is completely away from the nature of the scripts in CP right now but i guess the system still includes the basic functions to hold a lane...

bgo1973 commented 5 years ago

I guess they should get it working before implementing new functions. Maybe the mod KeyboardSteer by Mogli12 will help you out. Pressing right shift + w snaps the current direction. You will find it right here on github. 😉

Tensuko commented 5 years ago

If CP is out... well after it was out for FS17 I put away my GPS Mod, tho I would love to use it in FS19 now.

AlexStephenLytton commented 5 years ago

I guess they should get it working before implementing new functions. Maybe the mod KeyboardSteer by Mogli12 will help you out.

Thanks for the hint but i'm still using that mod ;) But i know myself - if I wouldn't have posted that suggestion, I would have forgotten it when the time for it has come ;)

bgo1973 commented 5 years ago

Ah okay. You're welcome. :) I never used that until now. A function wich will automatically follow the road at all would be nice. That would make recording tracks much easier.

Kokolores11 commented 5 years ago

I used the GPS mod in FS17 a lot. Especially for recording courseplay-courses which are not on fields e.g. mowing at the side of the road. Whopster Modding is working on a new GPS mod. He will post the progress on his fb page. Maybe that helps. I would prefer a bale detection, to automatically load bales ;)

SirAlbertL commented 5 years ago

Not sure how this would work if it could at all.... Let me try to describe my idea that I tried to do in fs17.

For Silage Harvest and Leveling I would like to add a silage shield to the front of my transport truck or tractor in order to level out my last load of chaff. This will be able to smooths out the load so that the next will not get stuck driving up into the silo with the next load. Now the problem is to combine both leveling mode with transport mode. This way as you drive into the silo, it lowers the silage shield, and dumps the next load at the same time...

Again, not sure if possible or not...Just something I thought would be cool.....

Thank you ALL for the hard work you all do converting this every versions and keeping it updated. Being a editor of mods myself, I truly understand the dedication, and hours it takes to do the work... God Bless and happy FS19 to you all.

bgo1973 commented 5 years ago

The function for that is already implemented. Just let a second tractor do the leveling. That's how it"s done in reallife.

bgo1973 commented 5 years ago

@Kokolores11, just use the course of the combine or even the baler with a suitable offset. Works fine.

Kokolores11 commented 5 years ago

@bgo1973 that is true for square bales, but I always had problems with the round ones rolling down hill.

I'm looking forward to the first release. FS without courseplay is just halve the fun. Thank you, for your hard work!

Kokolores11 commented 5 years ago

A function wich will automatically follow the road at all would be nice. That would make recording tracks much easier.

Do you know Stephan-S/AutoDrive for FS17? It would be awesome if this would be included in courseplay. I really like the approach to setup a network and automatically determine the best path. I don't know if someone works on a version for FS19 though.

bgo1973 commented 5 years ago

@Kokolores11, that's the reason why every farmer would use squarebales on steep terrain. 😘 No, sorry. I don't know Autodrive. I will take a peek on it. Btw. I'm not a developer just a user. So you don't have to thank me. 😉

BurrrY commented 5 years ago

i also thought of a more automated GPS-Function, where i can select like "drive to destination X", and its starts driving automatically.

As a first step, its maybe possible to create a separate tool. There you can:

In a second Step, its maybe possible to port the pathfinding algorithm to LUA/CP and CP can select the path by itself. (Network of roads still predefined)

A third step could may be an automatic ingame Road-detection.

i've played around a bit at step one, C#-App to load map, place markers and stuff, but still a very buggy "works for me"-state.

bgo1973 commented 5 years ago

I guess there was a tool called courseplay drawer during fs 15. There it was possibile to draw courses using the pda map. Maybe it is possible to use something similar die fs19.

Kokolores11 commented 5 years ago

@BurrrY The First step you describe is exactly what AutoDrive by Stephan-S does. You can find it on GitHub. So converting it shouldn't be a problem. You can define and edit the paths in game. For narrow roads you can even define paths where the tractor waits for oncoming traffic to pass, before continuing. But I think it did not work in MP...

BurrrY commented 5 years ago

@Kokolores11 sounds good, i'll have a look at it @bgo1973 Yes, i've seen that, and planned to do it similar. (But with C#, not VBasic ;))

TinyCrocodile commented 5 years ago

@bgo1973 @burrry

The actual version for FS17 is here

https://github.com/TinyCrocodile/Coursedrawer

I also was thinking about porting to c# as both is based on .net it should not be hard to do for a learned programmer. But then i decided to focus on other issues and let it stay in vb.

I planned to do a fs 19 version but not shure if i will because of different reasons i did not make a lot of work for fs 17 as well.

If you do one for fs19 i am verry interested.

P.s. You maybe also consider choosing a different graphics framework because gdi+ can do it but seems to be a bit slow in some cases. But i am shure you already knew that... i had to figure it out because i am not a programmer.

37cee commented 5 years ago

I don't see why GPS like functions have anything to do with CP. Don't get me wrong, i liked the GPS mod in FS17 and it would be useful in FS 19, but it should remain a different mod. I know that Wopster (he worked on mods like the hose system for fs17) has been working on a Lane assist mod for FS19. His latest update on his facebook page was like a day ago... so i assume it will be released at some point.

https://www.facebook.com/WopsterModding/

BurrrY commented 5 years ago

i think there are two version of GPS mods.

I want the second one. CP hast most functions link "drive from point to point", course-mamangement, "find next point" and all that stuff, which i do not have to reinvent. Of course, officially implement it or publishing it is some other topic.

KentuckyMC commented 5 years ago

Maybe something like CP integration in the roadsets is an option. So that the roadsections build into the maps have some "cp dots" available already (2 sides of the road offcourse). And that CP is able to connect those roadpoints into a route (checking the angle of curves and correct side of the road offcourse). Maybe then you can say, drive towards there, and the whole roadnetwork is connected to CP.

duffstone commented 5 years ago

for the record, I'd just like a working product to start with... I'm patient and hope to look into being a beta tester. However, if requests are able to be made, is there anyway we could just get circular AI / courses without manually recording them? all this back and forth action is novel, but most of us here in the bread-basket hardly ever farm that way. Going in circles is the most efficient way to farm, Odd that Giants doesn't recognize that with the AI... anyway, circular motion options or auto-course builds would be a nice nod to us farmers here in the bread basket.

-Thanks!

pvaiko commented 5 years ago

@duffstone you can now set up to 40 headlands in CP so you can always generate something like this: capture (There'll most likely be a bit of back and forth in the middle)

Where's that 'bread basket' you are farming? As the developer of the new course generator I'm always interested making it more realistic.

KentuckyMC commented 5 years ago

Damn, @pvajko the new interface is looking smooth! Keep up the good work guys! We're here for the testing part! Just take your time guys.

knoxville73 commented 5 years ago

@pvajko This is an other path used by the farmers with some tools (mower, tedder, rake by example). After 2 or 3 headlands, the farmer works in band and goes trough the headland to join the next one in fast speed (without working). If a field, even rectangular, the farmer divides in 2 or 3 the width to shorten the path between the bands.

field_path

knoxville73 commented 5 years ago

It's just for your information and why not to use for the future ...

pvaiko commented 5 years ago

@knoxville73 thanks, that's great info, I'll may implement that. Can you give a name to this pattern I could use?

Also, are you aware of the 'skip row' setting right? There you can skip 1,2... rows so your turns are fast, I guess IRL this works with GPS only (I saw it in tractor GPS user manuals).

knoxville73 commented 5 years ago

@pvajko I don't know a name for this method. This is an old method, before the GPS. The 'skip row' method is only possible since the existence of GPS. (Sorry for my english, I'm belgian, I speak normally french).

yumi-modding commented 5 years ago

@pvajko Hello, from my experience, this method described by @knoxville73 is also used when harvesting to avoid making U-turn and losing time by stopping the combine and going backward, especially if you have relatively small header. On the picture you can see only 2 U-turn between 7 & 8 and 16 & 17. I always harvest this way when playing FS. By the way, thanks for your great work on courseplay !

pvaiko commented 5 years ago

@yumi-modding we already have something similar called 'narrow field' mode although it works with one headland only and does not split the field into 2 or 3 pieces.

bgo1973 commented 5 years ago

For the combines the following example would be nice : (I guess that's what yumi-modding means) Relating to knoxville73' image, 1st&2nd = headland 3rd = 3 (middle of the field) 4th = 4 5th = 9 6th = 6 7th = 11......aso. The distance between the single rows is always the same. Depending on the cutter width maybe it's needed to choose more headland to make u-turns possible. The smaller the width, the more headlands you'll need.

bgo1973 commented 5 years ago

What's the meaning of "multiple tools"? Is it the ammount of mounted implements? If yes it would be nice to choose cutter, front, rear, front & rear. Or would that make no sense because CP will recognize it by itself?

JDTiger commented 5 years ago

the number of vehicles working the course (if you use multiple combines on the same field for example)

kylemeyer13 commented 5 years ago

In real life we will use the method that I think knoxville73 was trying to describe. When we are harvesting, usually with 2 or 3 combines on long rows, we will do all of our endrows and then cut through the field and then go around and around that cut so our augers always face the harvested part of the field. It is the most efficient way to harvest if you can make it all the way across the field without dumping. In most fields we will cut through 4 or 5 times

delawarehunter commented 5 years ago

@knoxville73 thanks, that's great info, I'll may implement that. Can you give a name to this pattern I could use?

Also, are you aware of the 'skip row' setting right? There you can skip 1,2... rows so your turns are fast, I guess IRL this works with GPS only (I saw it in tractor GPS user manuals).

@pvajko In the U.S. we call this "working in lands". So, a farmer will work in a land. For us, the main reason we do this is two-fold. First, it cuts down on the 180 degree turn, lessening stress on the tractor and implement even though it's out of the ground and reducing the rutting that is caused by turning the wheels too sharp. Second, it reduces the width of the head land/head row/turn row when that is needed. We use it almost exclusively when harvesting and planning on planting without tilling (otherwise call no-till planting), when mowing/bailing hay/grass, or when doing a light tillage practice like vertical tillage since it's less destructive on the ground.

Hope that helps?

-Billy

pauloluz72 commented 5 years ago

for when a download version

duffstone commented 5 years ago

@pvajko Yeah, having 40 headlands will work as a start I think, especially since we don't have anything yet. :-) And our farm is in north-central Oklahoma. Although I have to be honest, it's mostly Dad's thing, I have a corporate office job here in OKC. I help where I can tho.

@knoxville73 Yeah, we do that during harvest on the large flat quarter section, but most of Dad's remaining land is contoured so we have to work/harvest it by the terraces. It's still circular style work, and hardly ever back and fourth unless it's the very end type stuff. as long as the work doesn't move a ton of soil, we'll ignore the terraces and just go around the whole field, skipping corners, and then work the corners at the end... but that only works for light cultivating, anhydrous, seeding, etc... chisels, disks, & plows have to run with the countours... and harvesting too on the more sloped fields, the 30' platforms just can't adjust to some of our terraces... anyway... round and round is where it's at. :-)

-Duff

edit I've started adding fences to my map for the first time since 2013, it's really made the realism Pop out, but is a huge pain with headlands and linear paths... to Giants credit, the AI's haven't gotten stuck or tangled yet, but the headlands are half the fields now. anyway, another observation for circular motion. :-) I'll drop it now and wait for the beta! GL folks!

bgo1973 commented 5 years ago

Maybe this could help a little https://efarmer.mobi/features/

pvaiko commented 5 years ago

@bgo1973 @knoxville73 the current dev beta version includes an experimental implementation of both versions (called circular and spiral as had no better idea)

duffstone commented 5 years ago

@pvajko just noticed the beta only has 20 headlands, not 40. easy change I could make myself, or something planned to update in the future?

knoxville73 commented 5 years ago

Dear Peter @pvajko ,

I'm sorry, I use de lastest version (00005) but I don't find your proposal !

pvaiko commented 5 years ago

@knoxville73 @duffstone image Also, pushed the increased headlands.

duffstone commented 5 years ago

thanks man!

206airmail commented 5 years ago

@knoxville73 thanks, that's great info, I'll may implement that. Can you give a name to this pattern I could use?

Also, are you aware of the 'skip row' setting right? There you can skip 1,2... rows so your turns are fast, I guess IRL this works with GPS only (I saw it in tractor GPS user manuals).

@pvajko I've always heard that method refered to as the "racetrack" method since it kinda looks like your going around a Nascar Oval. First heard it called that by a cropduster I worked for (it's one of their primary way of spraying a field as it gives them room to be able to get turned around) and then it was also referred to that on the farm I worked at later on.

And it's a lot cooler name then circular 😁

kylemeyer13 commented 5 years ago

fsscreen_2019_01_28_15_18_51

I created a path for the function we were talking about earlier. Someone suggested calling it working lands. Instead of going around and around the entire field it would separated into a few smaller chunks where you start in the middle of chunk and work your way out. If you guys need further clarification let me know and i can make a more detailed path to help explain what i mean.

knoxville73 commented 5 years ago

Dear Peter,

I like your job, it's a good translation of my suggestion (mode spiral). I'm in test for this, my first wish would be an increase in speed when the tool is not working.

An other wish is the possibility to choose a number of division for the field (1 to 3 or 4 max).

I think it's not currently the priority, stay cool !

Many thanks at your team, you are the best ...

If you come to Belgium one day, contact me, we have the best beers in the world ...

bgo1973 commented 5 years ago

Adjustable headland speed would be nice. Thumbs up.

pvaiko commented 5 years ago

image

KentuckyMC commented 5 years ago

And the harvester needs to drive the other way around? So that the harvester can always unload? Then the pathfinding of the tractors needs to drive around the crops. This is awesome! Keep up the good work guys!

pvaiko commented 5 years ago

@jvalst correct me if I'm wrong but in this pattern on one leg the fruit will always be on the wrong side. Must unload on the other leg.

KentuckyMC commented 5 years ago

No, I'm wrong, excuses. Thought the harvester would always take parts of the field and have the unloading on the outer side.

yumi-modding commented 5 years ago

@jvalst I think also it's better to turn clockwise so nearly all the time the pipe is on already harvested part and combine can be unload.