Separate user data folder for development
- jefetienne
- Posts: 170
- Joined: Thu Jan 16, 2020 8:14 pm
- Location: Gallomont, Wayrest
- Contact:
Separate user data folder for development
Would anyone feel alright with the idea of having a separate user data folder when running the game in the Unity Editor? I currently use two "Daggerfall Unity" folders, and have to rename both of them every time I switch between playing recreationally and developing. I know this issue might affect me more because my personal work on the project frequently touches Keybinds.txt and sometimes Settings.ini, and sometimes forgetting to switch can cause issues or resetting data I didn't want to, but I think it would also be beneficial for some to separate their testing and development save games from their play games.
- Hazelnut
- Posts: 3016
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: Separate user data folder for development
I have two savefile folders I switch between, but I hardly play much so it's not a big issue. Having 2 separate data folders that are used depending on context could get confusing, but I'd support a way to optionally override in editor for those who wanted to use a different data folder when in editor.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods
- jefetienne
- Posts: 170
- Joined: Thu Jan 16, 2020 8:14 pm
- Location: Gallomont, Wayrest
- Contact:
Re: Separate user data folder for development
I'm very open to that - I think that's probably the best way to go about it. The only thing is looking at the Unity Editor under "Daggerfall Tools", I don't think I see a good window for including a checkbox option for something like this. Would adding a togglable menu strip item suffice, like "Use separate user data folder [✓]"?
- Hazelnut
- Posts: 3016
- Joined: Sat Aug 26, 2017 2:46 pm
- Contact:
Re: Separate user data folder for development
Hmm, I was thinking of a config file you edit somewhere - keep it simple. Doesn't really need a GUI, but no idea what could be hijacked.
Actually, depending on other devs opinions etc, just doing it would not be an issue - I can always link one directory to the other on my filesystem.
Actually, depending on other devs opinions etc, just doing it would not be an issue - I can always link one directory to the other on my filesystem.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods
- Interkarma
- Posts: 7249
- Joined: Sun Mar 22, 2015 1:51 am
Re: Separate user data folder for development
It would have to be optional and restricted to working in Editor only (using #if UNITY_EDITOR specifically).
https://docs.unity3d.com/Manual/Platfor ... ation.html
Supporting end users is hard enough without a tick box setting multiple data environments. All that's going to happen is people will turn it on with no understanding what it is, then say the game bugged out and they lost all their saves.
If it helps you with development, I'm all for it. But it needs to be super low impact in terms of code changes, fully optional, and only be available in Editor environment.
I'd set this up to be enabled with a #define rather than via settings, and always redirect to a fixed folder e.g. "Daggerfall Unity.devenv" inside of or alongside the usual data location.
https://docs.unity3d.com/Manual/Platfor ... ation.html
Supporting end users is hard enough without a tick box setting multiple data environments. All that's going to happen is people will turn it on with no understanding what it is, then say the game bugged out and they lost all their saves.
If it helps you with development, I'm all for it. But it needs to be super low impact in terms of code changes, fully optional, and only be available in Editor environment.
I'd set this up to be enabled with a #define rather than via settings, and always redirect to a fixed folder e.g. "Daggerfall Unity.devenv" inside of or alongside the usual data location.
- jefetienne
- Posts: 170
- Joined: Thu Jan 16, 2020 8:14 pm
- Location: Gallomont, Wayrest
- Contact:
Re: Separate user data folder for development
I think sounds good then. I'll look into working on this.
- jefetienne
- Posts: 170
- Joined: Thu Jan 16, 2020 8:14 pm
- Location: Gallomont, Wayrest
- Contact:
- Interkarma
- Posts: 7249
- Joined: Sun Mar 22, 2015 1:51 am
Re: Separate user data folder for development
That looks good, thank you. Will merge soon.
- jefetienne
- Posts: 170
- Joined: Thu Jan 16, 2020 8:14 pm
- Location: Gallomont, Wayrest
- Contact: