Community Forum

Plow/Cultivation "types"

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created09.01.2021 13:28

Lindsay Gaff (Unknown) 09.01.2021 13:28

I was wondering if it's possible to add a custom density type for either a plow or cultivator, so that when the tool is lowered, a cultivated/plowed area is created which has a different texture applied to it than the normal texture. I would like to do this in addition to the regular cultivate/plow action.

I've been poking through the g_currentMission data structure, but I cannot find references for foliage textures anywhere within in order to load a different texture.

[Edit: Apologies for the spam posts. I was idly flipping refresh waiting on a reply... :/]

Bilbo Beutlin (BBeutlin) 09.01.2021 18:11
In principle it is possible. You need
- overwork the specialization codes of plow and cultivator
- create custom maps with appropriate layers and textures
- write a special "mission.lua" for the maps to make the changes effective in game
This all requires very enhanced knowledge and experience in FS programming.
And finally it will work on special prepared maps only.

In other words: better forget it.

Lindsay Gaff (Unknown) 09.01.2021 23:17
:( What I was afraid of. I did manage to get some crop types added in a map-agnostic fashion by restoring some deleted data structures post-load and reverse-engineering some function specs, but I hit a wall when I tried to find the density map changes after cultivating a single square. I also didn't see anywhere a reference to textures to use for growth states when adding a fruit type.

Still seems a bit odd to me that this sort of thing has to be map-specific. Is this due to the apparent disablement of some of the methods by deletion of data structures in undocumented parts of the API?

Bilbo Beutlin (BBeutlin) 10.01.2021 12:25
These things are not documented in detail (officially), but can be found by research in game data tables and lua scripts.
There are several mods which use such extended features like "Seasons", "MaizePlus" and some more.

Note: Log in to post. Create a new account here.