Skip to content

[Request] Please Provide Simple Example Mod #54

Description

@gudenau

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.

Activity

  1. Kneelawk commented on Dec 11, 2023

    @Kneelawk
    Owner

    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.

  2. Kneelawk commented on Dec 11, 2023

    @Kneelawk
    Owner

    For the time-being, I would recommend looking at Extended Drawers.

  3. gudenau commented on Dec 13, 2023

    @gudenau
    Author

    I'm doing things similar to that and the graphs are ephemeral for me, any idea what's up with that?

  4. Kneelawk commented on Dec 13, 2023

    @Kneelawk
    Owner

    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.

  5. gudenau commented on Dec 13, 2023

    @gudenau
    Author

    Yeah I turn that on, when I reload the save the graphs where gone.

    I'll go double check that too.

  6. gudenau commented on Dec 13, 2023

    @gudenau
    Author

    image
    image
    Yeah they are ephemeral.

  7. Kneelawk commented on Dec 13, 2023

    @Kneelawk
    Owner

    Are there any errors printed in the logs? Perhaps you forgot to add your block node types to your universe?

  8. gudenau commented on Dec 13, 2023

    @gudenau
    Author

    Looks like that's the issue.

  9. Kneelawk commented on Dec 13, 2023

    @Kneelawk
    Owner

    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.

  10. gudenau commented on Dec 13, 2023

    @gudenau
    Author

    Okay I got them to persist.

    There has to be a better place to discuss usage....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions