Mmtrx / FS22_BetterContracts

Farming Simulator mod to enhance contracts handling
GNU General Public License v3.0
114 stars 25 forks source link

Problem when using years to unlock vehicles #238

Closed Tomas-ody closed 1 week ago

Tomas-ody commented 4 weeks ago

When using this mod with mods: Through the years: https://www.farming-simulator.com/mod.php?lang=en&country=gb&mod_id=280989&title=fs2022 Vehicle years: https://www.farming-simulator.com/mod.php?lang=en&country=it&mod_id=280988&title=fs2022 then it's not working. Starting game with this mods, then better contracts doesn't work. When generating new contracts, it gives errors and will not work. Same for delete contracts function. image We tried it in multiplayer and singleplayer, but it was same. We tried to set year on 2022, so all vehicles are unlocked, finally it worked but when we changed year less then 2022 it broke and only way to fix it was to delete missions.xml, but it was only temporary because it broke again. And in multiplayer host had it from start like on screenshot broken and others normally and later broken as host.

Thalley commented 3 weeks ago

Also posted here: https://gitlab.com/thalley/fs22_through_the_years/-/issues/31

Sounds like @Mmtrx can provide at fix for this, as it's this mod that is missing a check before accesing a value (granted that in normal circumstances, that value is never nil and only when https://www.farming-simulator.com/mod.php?lang=en&country=ro&mod_id=280989&title=fs2022 is used

Mmtrx commented 2 weeks ago

should work with last update

In early years, some vehicle combos for contracts don't really work. @Thalley and me are thinking of a better solution in the meantime.