Precision Farming Configurator v1.0.0.1



Precision Farming Configurator v1.0.0.1
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.
Allows the use of any spray type with Precision Farming. To do this, you simply list the spray type and its parent (vanilla spray type). The parent tells PF which type of calculations to use when using the custom spray type. PF calculates things differently depending on if it is currently using solid fertilizer, liquid fertilizer, herbicide, manure, etc.
The path you specify should contain whatever PF files you want to change. The file names and folder structure in your map embedded folder should be the same as the PF mod itself. Also, you do not have to copy all of the PF files to your map, only the ones you want to change. This mod will fail over to the default PF files for anything missing.
The <sprayTypeMapping> section is like I mentioned above. In this example, I have added ANHYDROUS_AMMONIA using LIQUIDFERTILIZER as a template. Parent must be specified to tell PF how to handle the custom spray. Otherwise, PF would not know if it is a herbicide, manure, solid fertilizer, etc. That’s just how it is set up. The spray types are hard coded, so I made some work arounds for that.
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.
Author: ThundRFS