yumi-modding / FS17_ContractorMod

7 stars 4 forks source link

Display Settings Changes only Work One Time #59

Closed cwattyeso closed 5 years ago

cwattyeso commented 5 years ago

Another little bit of a glitch I have found is that if you edit the ContractorMod.xml in the modsettings folder to change the Display Settings for the Position and Size of a characters name it works the first time you load up a game or map with the mod enabled, but after saving and exiting the game the Display Settings revert back to the original values found in the main ContractorMod.xml of the mods zip file.

I've found the only way to ensure the Display Setting information is re-used each time you load up the saved game is to add that line of code from the ContractorMod.xml into the one generated and stored within the actual save game folder. This means on every savegame you have to remember to edit that file once to paste in the code you want e.g.

`

<displaySettings>
    <characterName x="0.9828" y="0.93" size="0.010"/>
</displaySettings>

`

So either something in the mod needs to be changed to write that code into the savegame folder xml, or that the reads from the modsettings xml each time you load the game.

yumi-modding commented 5 years ago

Thanks. I admit I wrote this piece of code for modhub validation and I might not tested well. I'll fix it. Need to save displaySettings in this method https://github.com/yumi-modding/FS17_ContractorMod/blob/0a36dfbb6f4d21bc1d361325358295717d682c14/scripts/ContractorMod.lua#L1180