Was the default directory where "mod settings files" are located changed recently?

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: 3212
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Was the default directory where "mod settings files" are located changed recently?

Post by King of Worms » Thu Feb 13, 2020 4:10 pm

Hi, I have updated my master today

Now when I open the Mod Builder and click "Open existing mod settings file" it points me to ...\Assets\Game\Mods
and that folder is empty.

Because in the older version, these files were stored at ...Assets\Untracked\ModBuilder

And thats where all my mod settings files for all DREAM packages were and still are stored in my case.

Should I copy these files to the new directory?

I use these settings files a lot, because I have 12 packages and some of the packages contain 1000s files and some of them are stored in various directories, plus there are mod descriptions etc, so its saves me a lot of time when I have those saved and just load em when I want to build new package...

Thank you :)

User avatar
Hazelnut
Posts: 2223
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Was the default directory where "mod settings files" are located changed recently?

Post by Hazelnut » Thu Feb 13, 2020 4:28 pm

Yes, all mods now are located there by default including definitions .dfmod.json and settings etc. It allows mods to easily be run in the editor and debugged. You don't have to move your files there if you don't want to - it's just a default. If you do move them then remember to change the paths to them in modbuilder etc.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

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

Re: Was the default directory where "mod settings files" are located changed recently?

Post by King of Worms » Thu Feb 13, 2020 5:54 pm

Hazelnut wrote:
Thu Feb 13, 2020 4:28 pm
Yes, all mods now are located there by default including definitions .dfmod.json and settings etc. It allows mods to easily be run in the editor and debugged. You don't have to move your files there if you don't want to - it's just a default. If you do move them then remember to change the paths to them in modbuilder etc.
Thanks, so that means also all the parts of the mods - the loose files, the pngs, videos, sounds etc I guess, not just the settings as I thought earlier.

I think I can do that

But Im not sure how to "change the paths" in mod builder.

I guess that means I need to select the files which I want to add to the mod once again? Because by moving them the paths will be now different.

Hmmm... thinking about it. Its just a hassle for me with no gains in my case. Will have to decide. I dont want to move files too much and change anything, DREAM has gotzen quite complicated even as it is now.

Im honestly affraid that if I have lets say 3 month pause, I will not be able to build a new version for all systems corectly :/ So I try to have everything saved and as automated and stable as possible


Thanks tho!

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

Re: Was the default directory where "mod settings files" are located changed recently?

Post by BadLuckBurt » Thu Feb 13, 2020 6:12 pm

If you do decide to move them eventually, you can also open the dfmod.json file in a text editor and do a find and replace to correct the paths.
Daggerfall Unity on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
Daggerfall Unity on 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: 3212
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Was the default directory where "mod settings files" are located changed recently?

Post by King of Worms » Thu Feb 13, 2020 6:20 pm

BadLuckBurt wrote:
Thu Feb 13, 2020 6:12 pm
If you do decide to move them eventually, you can also open the dfmod.json file in a text editor and do a find and replace to correct the paths.
I see, thanks for a tip

User avatar
Hazelnut
Posts: 2223
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Was the default directory where "mod settings files" are located changed recently?

Post by Hazelnut » Thu Feb 13, 2020 6:23 pm

King of Worms wrote:
Thu Feb 13, 2020 5:54 pm
Hazelnut wrote:
Thu Feb 13, 2020 4:28 pm
Yes, all mods now are located there by default including definitions .dfmod.json and settings etc. It allows mods to easily be run in the editor and debugged. You don't have to move your files there if you don't want to - it's just a default. If you do move them then remember to change the paths to them in modbuilder etc.
Thanks, so that means also all the parts of the mods - the loose files, the pngs, videos, sounds etc I guess, not just the settings as I thought earlier.
No, they can all stay in streaming assets places since that's all you need for testing you mod AFAIK. If you have C# code scripts then it makes sense to move everything so you can run it as a virtual mod package. Sounds to me like you should leave it all alone. Just load your files from the old place and ignore the new default for now at least. :)
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

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

Re: Was the default directory where "mod settings files" are located changed recently?

Post by King of Worms » Thu Feb 13, 2020 7:20 pm

100% agreed, I will keep it the old way, just point the mod builder to the old location of the config files.

Changing the paths in a json files is a no go because there really is way over 10 000 paths in some cases and various directories.

So the last question is...

Is there any way I can change the default directory the Mod builder uses to search for the config files? I mean, to change it back to how it was before the update. :lol: ( ...Assets\Untracked\ModBuilder )

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

Re: Was the default directory where "mod settings files" are located changed recently?

Post by TheLacus » Thu Feb 13, 2020 9:42 pm

You can move .dfmod.json files alone and leave all assets where they are. Or use find/replace with any text editor to change root directories (from "Assets/Untracked/Example" to "Assets/Game/Mods/Example").

When you open the Mod Builder, the most recent mod is opened automatically. If it can be useful, it might use current directory instead of default when you open a new mod.
Mod System documentation - Learn how to create mods for Daggerfall Unity.
Modder Discussion - General help and discussion for the mod system.
Github Issues - Submit a bug report for the game, including the mod system.

Post Reply