settings.ini gets overwrited even with Read Only flag

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Post Reply
User avatar
King of Worms
Posts: 4751
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

settings.ini gets overwrited even with Read Only flag

Post by King of Worms »

Hi, I want to change my exterior shadow distance from 90 to 200. It works ingame, looks great and const very little to zero performance.

But this setting reverts to default 90 after a while. Even when I set the file to read only.

How is that even possible?

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: settings.ini gets overwrited even with Read Only flag

Post by BadLuckBurt »

King of Worms wrote: Tue Oct 15, 2019 11:44 am Hi, I want to change my exterior shadow distance from 90 to 200. It works ingame, looks great and const very little to zero performance.

But this setting reverts to default 90 after a while. Even when I set the file to read only.

How is that even possible?
The Read only-flag is very unreliable when programs write directly to files, most of the file security stuff in Windows is handled through the Security-tab where you can remove user accounts and groups or set them to deny access. I don't think it's worth it in this case though :)

Pango mentioned in the other thread that the value gets capped to 150, that's also what got saved to my INI when I checked so I'm not sure why you got 90 back, try setting it to 150 and hopefully that sticks.
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

User avatar
King of Worms
Posts: 4751
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: settings.ini gets overwrited even with Read Only flag

Post by King of Worms »

BadLuckBurt wrote: Tue Oct 15, 2019 3:19 pm
King of Worms wrote: Tue Oct 15, 2019 11:44 am Hi, I want to change my exterior shadow distance from 90 to 200. It works ingame, looks great and const very little to zero performance.

But this setting reverts to default 90 after a while. Even when I set the file to read only.

How is that even possible?
The Read only-flag is very unreliable when programs write directly to files, most of the file security stuff in Windows is handled through the Security-tab where you can remove user accounts and groups or set them to deny access. I don't think it's worth it in this case though :)

Pango mentioned in the other thread that the value gets capped to 150, that's also what got saved to my INI when I checked so I'm not sure why you got 90 back, try setting it to 150 and hopefully that sticks.
Thanks, Ive replied in the shadows thread :) so far the 150 seems to stick. But honestly, setting to read/write worked on all games where I did that so far, thats why it was surprising to me. Well, at least on Windows 7, now Im at Win10..

User avatar
BadLuckBurt
Posts: 948
Joined: Sun Nov 05, 2017 8:30 pm

Re: settings.ini gets overwrited even with Read Only flag

Post by BadLuckBurt »

King of Worms wrote: Tue Oct 15, 2019 3:54 pm Thanks, Ive replied in the shadows thread :) so far the 150 seems to stick. But honestly, setting to read/write worked on all games where I did that so far, thats why it was surprising to me. Well, at least on Windows 7, now Im at Win10..
I'm still on Win7. I've seen the same thing happen with No Man's Sky where it would reset certain values if you didn't stay out of the options screen after changing the ini. Good to hear the 150 seems to stick though, at least you only need to this trick once then :)
DFU on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
DFU Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: settings.ini gets overwrited even with Read Only flag

Post by Interkarma »

Exterior shadow distance range is 0.1 to 150.0. This cap happens when the value is read in, and will never go above 150. Try setting it to 150 and see how you go.

Post Reply