[Request] Please Provide Simple Example Mod
There are a lot of moving parts in this library and it would be nice to have a simple example to go along with it to show how everything works together.
I am actually working on this right now. Along with the multi-module refactor for 1.21, I am working on adding some example mods that show how to use everything.
For the time-being, I would recommend looking at Extended Drawers.
I'm doing things similar to that and the graphs are ephemeral for me, any idea what's up with that?
One thing is to do /graphlib <universe> debugrender start and see if the nodes are even getting added. Next, you probably want to make sure your BlockNodes implement proper hashCode and equals functions unless they're singletons.
Yeah I turn that on, when I reload the save the graphs where gone.
I'll go double check that too.
Yeah they are ephemeral.
Are there any errors printed in the logs? Perhaps you forgot to add your block node types to your universe?
Looks like that's the issue.
https://github.com/Kneelawk/GraphLib/tree/wip/2.0-1/examples/multiblock-lamps now has some example code if you want to look at it.
Okay I got them to persist.
There has to be a better place to discuss usage....