Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Schematic #13

Open
Thejuster opened this issue Oct 28, 2016 · 2 comments
Open

Save Schematic #13

Thejuster opened this issue Oct 28, 2016 · 2 comments

Comments

@Thejuster
Copy link

Hello, Nice work but i have one problem.

Cannot serialize graph nodes to the file.
i saw this error:

"GraphNode" is not marked serializable.
But when i marked serializable class and removed read only item,
I have serialized the node but if node have a connection i got a crash whit same problem

Have a idea how to fix this bug?

@RichardRanft
Copy link

RichardRanft commented Nov 27, 2017

@Thejuster
You'll probably want to write wrapper classes and use Newtonsoft.Json to serialize. You can find examples (messy but functional) in one of my projects (https://github.com/RichardRanft/T3DConvoEdit) in T3DConvoEditor/Wrappers. It's a little extra work, but not terrible.

I'm also working from a modified version of Graph - I need to be able to extend the classes in consumer applications so I have "broken" it.

@Thejuster
Copy link
Author

Hi Richard i have fixed whit all issue.
After testing about hour, the conclusion is mark all event whit "Non Seriazable"
Typically .net cannot serialize event. after this fix, work fine

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

No branches or pull requests

2 participants