NodeBasedDialogueSystem icon indicating copy to clipboard operation
NodeBasedDialogueSystem copied to clipboard

Updates to the Loading and Saving System

Open Spebby opened this issue 2 years ago • 5 comments

Instead of using the rudimentary and un-user friendly string loading/saving method, I've rewritten it to use the OS's built-in file browser to save and load assets. image image

Spebby avatar Apr 27 '23 01:04 Spebby

Looks good ! Although, do you not encounter a breaking bug when loading a narrative, where most edges would disappear and most nodes are moved to 0,0 (I assume) ? See #10. I'll keep looking into it.

florian-rieder avatar Apr 27 '23 10:04 florian-rieder

Looks good ! Although, do you not encounter a breaking bug when loading a narrative, where most edges would disappear and most nodes are moved to 0,0 (I assume) ? See #10. I'll keep looking into it.

no i don't. what version are you testing?

Spebby avatar Apr 27 '23 16:04 Spebby

Yeah actually it seems to be a more subtle bug with the saving/loading system (unrelated to your PR), I've been able to make it work as expected in certain conditions, but I'm still trying to determine the exact steps to reproduce. I'll update the issue when I do.

Regarding your PR, I feel like it's kinda tiring to have the Resources folder pop up in the native file explorer when saving every time. I also believe that the button labels could be simplified to "New" or "New Narrative", "Save", and "Load".

Also, if you create a new narrative, and save it, the "File Name:" stays blank, and if you save again it'll prompt the file selector again, as if you were saving it for the first time.

Other than that, great work !

florian-rieder avatar Apr 27 '23 16:04 florian-rieder

Yeah actually it seems to be a more subtle bug with the saving/loading system (unrelated to your PR), I've been able to make it work as expected in certain conditions, but I'm still trying to determine the exact steps to reproduce. I'll update the issue when I do.

I've seen your issue posts about it prior to my PR and I'm not really sure what could be causing it; I've never had this issue. I've been making my changes of Unity 2021.3.17f.

Regarding your PR, I feel like it's kinda tiring to have the Resources folder pop up in the native file explorer when saving every time.

I thought I had fixed this in this Patch, turns out it's only on my personal fork. The approach I did on that branch was to only have the OS's explorer open when you save a new file, but repeat saves of the same file wouldn't cause this to happen. Will quickly implement that patch, then I'll look into the File Name bug and renaming the buttons later today.

Spebby avatar Apr 27 '23 16:04 Spebby

LGTM ! Thanks for your update !

florian-rieder avatar Apr 28 '23 11:04 florian-rieder