BigFood2307 / FS22_DynamicFieldPrices

Mod for changing field prices in Farming Simulator 22
https://www.farming-simulator.com/mods/not_yet_released
18 stars 2 forks source link

Not sure if compatable #9

Open Malaras opened 1 year ago

Malaras commented 1 year ago

But could you make compatible with this mod. Going to ask same of them if they have github.

https://farming-simulator.com/mod.php?lang=en&country=us&mod_id=235184&title=fs2022

BigFood2307 commented 1 year ago

I have not done in depth testing, but from a short look at the code, FieldLease uses the farmland.price attribute to calculate the lease price. Since I adjust that attribute, whenever the price changes, FieldLease should work with those updated prices just fine.

I did not find a github for them, if you have any additional info, feel free to correct me.

Gordon-Dry commented 11 months ago

I'm also not sure, because every leased field becomes an owned field on next load of the savegame. Something is interfering,.

Edit: There is no "isLeased" written to the farmland.xml at all. I assume that FS22_FieldLease.zip\gui\InGameMenuFieldLease.lua function InGameMenuFieldLease:farmlandManagerSaveToXmlFile(xmlFilename) should do that job.