You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Self setup is currently stuck in an infinite loop:
The Setup runs
it logs something via ModLoaderUtils (or uses another util method, when logs are removed)
ModLoaderUtils requires info from ModLoaderStore
ModLoaderStore is not set up yet
=> 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
The text was updated successfully, but these errors were encountered:
The ModLoader self setup script uses util function from ModLoaderUtils in GodotModding#172 ModLoaderStore was introduced into utility functions that where used by the self setup. Because the setup is run before the ModLoaderStore is initialized the setup was stuck in an infinite loop. To fix that `get_modloader_store()` was added and is now used in `_get_verbosity()`, `get_path_to_mods()` and `get_path_to_configs()`. Also updated the the autoload index check in the `_init()` of *mod_loader_setup.gd*.
closesGodotModding#200
The ModLoader self setup script uses util function from ModLoaderUtils in #172 ModLoaderStore was introduced into utility functions that where used by the self setup. Because the setup is run before the ModLoaderStore is initialized the setup was stuck in an infinite loop. To fix that `get_modloader_store()` was added and is now used in `_get_verbosity()`, `get_path_to_mods()` and `get_path_to_configs()`. Also updated the the autoload index check in the `_init()` of *mod_loader_setup.gd*.
closes#200
ithinkandicode
changed the title
self setup chicken and egg problem
self setup chicken and egg problem (ModLoaderStore not being available in setup)
Apr 1, 2023
Self setup is currently stuck in an infinite loop:
Problems:
Possible solutions
The text was updated successfully, but these errors were encountered: