Mod load order and settings not being saved

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.
clocknova
Posts: 9
Joined: Wed Jul 10, 2019 7:50 pm

Mod load order and settings not being saved

Post by clocknova » Wed Jul 10, 2019 7:54 pm

Just installed the latest build on MacOS, but the game will not save any of my mod data. Reordering the mods, activating and deactivating them, then quitting the game and restarting results in all of my mods reverting to alphabetical order and all activated.

Any ideas?

User avatar
TheLacus
Posts: 932
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

Re: Mod load order and settings not being saved

Post by TheLacus » Wed Jul 10, 2019 8:18 pm

Load order is saved to StreamingAssets\Mods\Mod_Settings.json. Check if this file is generated; if not, please provide the log file found at /Users/Username/Library/Logs/Unity/Player.log :)
If you are interested in creating mods for Daggerfall Unity you can find the documentation here.

clocknova
Posts: 9
Joined: Wed Jul 10, 2019 7:50 pm

Re: Mod load order and settings not being saved

Post by clocknova » Wed Jul 10, 2019 8:29 pm

Okay, I found this in the log file:

Failed to write mod settings: Access to the path "/private/var/folders/5c/s4hd_4sx7qn5lj86w2h1bzpr0000gn/T/AppTranslocation/2290D9C4-8387-4323-943F-58ADD6CBC562/d/DaggerfallUnity.app/Contents/Resources/Data/StreamingAssets/Mods/Mod_Settings.json" is denied.

Not sure what is going on here. Why would it be trying to write the setting file there instead of into the mod folder? It should read:
"/Applications/Games/Daggerfall Unity/DaggerfallUnity.app/Contents/Resources/Data/StreamingAssets/Mods/Mod_Settings.json"

clocknova
Posts: 9
Joined: Wed Jul 10, 2019 7:50 pm

[THELACUS?] 0.8.6 (Mac Universal) Mod settings not being written

Post by clocknova » Thu Jul 11, 2019 9:27 pm

Just installed the latest build on MacOS, but the game will not save any of my mod data. After checking a but, I found this in the log file:

Failed to write mod settings: Access to the path "/private/var/folders/5c/s4hd_4sx7qn5lj86w2h1bzpr0000gn/T/AppTranslocation/2290D9C4-8387-4323-943F-58ADD6CBC562/d/DaggerfallUnity.app/Contents/Resources/Data/StreamingAssets/Mods/Mod_Settings.json" is denied.

Not sure what is going on here. Why would it be trying to write the setting file there instead of into the actual mod folder? The proper data path on my machine is:
"/Applications/Games/Daggerfall Unity/DaggerfallUnity.app/Contents/Resources/Data/StreamingAssets/Mods/Mod_Settings.json"

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

Re: 0.8.6 (Mac Universal) Mod settings not being written

Post by Interkarma » Thu Jul 11, 2019 10:56 pm

Thanks for report. The StreamingAssets folder is being queried out of Unity itself - strange that it provides that path. I'll assign this one to TheLacus for now to check the mod settings serialization code for any anomalies, but I'm not sure if he has a Mac to test properly with (I don't either).

Contributors: any of you working on a Mac and might be able to take a closer look?

User avatar
TheLacus
Posts: 932
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

Re: [THELACUS?] 0.8.6 (Mac Universal) Mod settings not being written

Post by TheLacus » Thu Jul 18, 2019 6:10 pm

Path is defined as following:

Code: Select all

ModDirectory = Path.Combine(Application.streamingAssetsPath, "Mods");
Can you check if you have other error messages in the log? For example "Mod Directory doesn't exist".

Possibly relevant links:
Interkarma wrote:
Thu Jul 11, 2019 10:56 pm
Thanks for report. The StreamingAssets folder is being queried out of Unity itself - strange that it provides that path. I'll assign this one to TheLacus for now to check the mod settings serialization code for any anomalies, but I'm not sure if he has a Mac to test properly with (I don't either).

Contributors: any of you working on a Mac and might be able to take a closer look?
I don't have a Mac, feedback from players on that platform would be much useful.
If you are interested in creating mods for Daggerfall Unity you can find the documentation here.

clocknova
Posts: 9
Joined: Wed Jul 10, 2019 7:50 pm

Re: Mod load order and settings not being saved

Post by clocknova » Thu Aug 08, 2019 2:36 pm

The problem still exists as of the current alpha build.

User avatar
TheLacus
Posts: 932
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

Re: Mod load order and settings not being saved

Post by TheLacus » Thu Aug 08, 2019 2:55 pm

Can you try to move the game outside of Applications?
If you are interested in creating mods for Daggerfall Unity you can find the documentation here.

clocknova
Posts: 9
Joined: Wed Jul 10, 2019 7:50 pm

Re: Mod load order and settings not being saved

Post by clocknova » Fri Aug 09, 2019 4:46 am

No change. Tried moving it to several locations. Cannot find any further error messages in log file.

I'm happy to perform any tests on my Mac that will help you. Just let me know.

EDIT:

Okay, I've found that if I open the app bundle and navigate to "DaggerfallUnity.app/Contents/MacOS/DaggerfallUnity" and launch the Unix executable, which launches the game through the MacOS terminal app, everything works fine. Reverting to launching the game the standard way by double clicking the app bundle itself results in the original problem returning.

clocknova
Posts: 9
Joined: Wed Jul 10, 2019 7:50 pm

Re: Mod load order and settings not being saved

Post by clocknova » Tue Aug 13, 2019 1:19 pm

Does anyone else have the ability to test this so I can find out whether or not it's a problem on my end?

Post Reply