Timmeey86 / FS22_ConservationAgriculture

Apache License 2.0
16 stars 3 forks source link

Biodegradeable grass possible? #27

Open thekalbb opened 7 months ago

thekalbb commented 7 months ago

Heya,

Would it be possible to have it so that if you leave cut grass on a field it will degrade? It should give Mulch state, and some nutrients i think - to the next grass harvest.

(Not sure if you can actually remove cut grass assets from the game, like on a specific field, or if it will just delete all cut grass assets in the map..)

Backgroundinfo how it works irl: Leaving cut grass on the ground can act as a natural mulch. It helps to retain moisture in the soil, suppress weeds, and gradually adds organic matter back into the soil as it decomposes. As the grass decomposes, it releases nutrients back into the soil, enriching it and promoting healthier plant growth. This can reduce the need for synthetic fertilizers.

Timmeey86 commented 7 months ago

Removing grass is generally possible. I haven't messed with modifying height maps yet, but if you run a direct seeder over a field which has grass cuts on it, the grass gets removed only where the seeder ran over. That means there is already code to remove loose grass in a specific area, I'll just have to find it. The more complex thing would be remembering the month in which each grass was cut, however, so if you cut a part of the field in April, and another one in May, how do I know which pile of grass has what age? I can see some ways how I could make this work, but it won't be as "easy" as what I did so far, so it would be a mid term feature

thekalbb commented 7 months ago

yeah, i guess theres no metadata for grass of the cut-month.

This is just a "nice to have" sugestion - so if you get round to it great, if not then i will still enjoy the mod.

Timmeey86 commented 7 months ago

Ultimately I'd like to implement some kind of "Soil Life Score" system (similar to the Eco Score of Precision Farming) where certain things you do increase or decrease soil life, and this could be something that increases the score. Unfortunately the source code for Precision Farming is not part of the documented API