Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Old canvases are not usable after upgrading Node_Editor #16

Closed
ritave opened this issue Nov 12, 2015 · 2 comments
Closed

Old canvases are not usable after upgrading Node_Editor #16

ritave opened this issue Nov 12, 2015 · 2 comments

Comments

@ritave
Copy link
Contributor

ritave commented Nov 12, 2015

ScriptableObjects (and so are the nodes) are only ever loadable if they have the same structure than before, otherwise they're silently nulled. Since sometimes between commits the structure of the Node.cs changes and thus old saved canvases stop working.

It's a bit of an abstract issue / feature (also big) to make saves stable but maybe it's worth thinking about?

@ritave
Copy link
Contributor Author

ritave commented Nov 12, 2015

I edited the saves manually after upgrade and the one problem is that guids of the objects change after upgrade -> I removed all the Node_Editor files and added them again so the guids changed. Second is the changing structure of Node.cs (continueCalculation field)

@Seneral
Copy link
Owner

Seneral commented Nov 12, 2015

Yeah that should mostly be fixed now as I added the meta files of relevant scripts, so the guids should be kept after updating. I hope so atleast;) Regarding the save format change, thats true. There might be a solution to most changes, I'd need to find a way to get the default values for each node type maybe by implementing a functin or moving some stuff like allowsRecusion and continueCalculation to properties that can be overridden by node types.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants