Precision Farming Configurator V1.1.0.1

Precision Farming Configurator

This is just a small addon that is meant to add requested items to Precision Farming.

Currently it does the following:
Allows rerouting/embedding the PF configuration to a map mod. This is on top of the normal things you can configure from a map. For example, if you wanted to remove crops from the tramline code (or disable tramlines completely) you could use this feature to do so. The path is relative to the base directory of your map mod (the same folder as modDesc.xml).
Allows the use of any spray type with Precision Farming. To do this, you simply list the spray type and its group. The group key tells PF how to handle the custom spray type. For example, liquid fertilizer is handled differently than solid and fertilizer is handled differently than lime or herbicide. The isLiquid key is self-explanatory and tells PF to handle the custom spray type as a liquid rather than a solid. Note: adding a spray type here does not add it to the game. This simply tells PF how to handle custom spray types that have been added to the game via map or other mods.
Allows adjusting the rate of static spray types (i.e. lime) by adjusting their litersPerSecond value in maps_sprayTypes.xml.
Spray type mapping can be added to any mod from its modDesc.xml file. For example, if you create a mod that adds a custom spray type. You can use the same sprayTypeMapping section found in map.xml to link your custom spray type to PF.

To activate, add the following to your map.xml file:

Precision Farming Configurator3

The same thPFConfig section works from inside of a mod’s modDesc.xml. You cannot reroute the PF configuration like you can with a map, but you can use the sprayTypeMapping section from inside of any mod.

In the above example, the PF configuration has been routed to my test map’s maps/riverbend/config/precisionFarming folder. In that folder, right now I just have the PrecisionFarming.xml file so I can change the vanilla settings. I added anhydrous ammonia and liquid lime to this map, and used the sprayTypeMapping section to tell PF how to handle the custom spray types I added.

Finally, I chose not to simply replace the PF functions with new code because that can be a compatibility nightmare. This way should play more nicely with other mods because the original PF code and any other mods linked to it still runs.

More features intended as more gets requested.

Changelog: +

Credits:

ThundRFS

3.2/5 - (10 votes)

Download mod

File File size
zip FS25_0_THPFConfigurator 1 MB
txt instructions 2 KB

You may also like...

Subscribe
Notify of
guest
2 Comments
Newest
Oldest Most Voted
Gabriel

Am barely able to copy/paste a file… so don’t ask me to manipulate this kind of thing… too complicate for me.

HyDrOpOnIc1987

How do I add the code and make it work? I downloaded the instructions file but have never modded or coded before and am not sure where to place the code into the file. Any help, or a more detailed “instruction” file for noobs like me that want to use Liq Lime and other filltypes on maps like Mo River Bottom on FS25.

2
0
Would love your thoughts, please comment.x
()
x