Precision Farming Configurator V1.1.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. 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: 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 v1.0.0.8: Updated to a specialization style code to better work with vehicles Spray types can now be added via any mod Spray types like lime now properly use their litersPerSecond value Custom spray types are auto-injected into buying, selling, loading, and unloading stations Attempts to match pricing of similar fill types Custom spray types are auto-injected into the fill units of applicable vehicles Custom spray types should now work with fertilizing sowing machines Spray type name is now shown in PF hud Files ChangeLog v1.0.0.4: Configuration changed in favor of static group keys. The old configuration still works, so there is no need to change if you already have it configured. Added support for various types of lime. PF considers lime a static one fill type thing by default. Because of this, different lime types and application rates are not supported. This changes that behavior and allows different lime types as well as different application rates. Spray type mapping can be done from inside of any mod’s modDesc.xml. That part is not exclusive to map.xml.