Skip to content

self setup chicken and egg problem (ModLoaderStore not being available in setup) #200

Closed
@Qubus0

Description

@Qubus0

Self setup is currently stuck in an infinite loop:

  1. The Setup runs
  2. it logs something via ModLoaderUtils (or uses another util method, when logs are removed)
  3. ModLoaderUtils requires info from ModLoaderStore
  4. ModLoaderStore is not set up yet
  5. => script compilation error, setup fails

Problems:

  • Since it's a compilation error, we can't just not use the autoload in a few methods and keep them in others that aren't used in the setup
  • we also can't get the autoload via get_node("/root/..."), since the Utils a) aren't in the tree and b) can't use it since all methods are static and get_node is non-static

Possible solutions

  • Create a different utils class without store just for setup? not clean
  • same as option before, but move them into the setup?
  • remove ModLoaderStore from the utils again? loses a lot of functionality

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions