Skip to content

feat: add module enabled setting, useful when testing#446

Merged
mehah merged 1 commit intoopentibiabr:mainfrom
BenDol:feat/module_enable
Mar 1, 2023
Merged

feat: add module enabled setting, useful when testing#446
mehah merged 1 commit intoopentibiabr:mainfrom
BenDol:feat/module_enable

Conversation

@BenDol
Copy link
Contributor

@BenDol BenDol commented Mar 1, 2023

Description

Add module enabled setting, useful when testing

@BenDol
Copy link
Contributor Author

BenDol commented Mar 1, 2023

This feature is possibly not as useful for this version of otclient, my lua sources don't use the autoload feature but it was pointed out to me that you can just disable autoload if you do. Since I don't use autoload in my sources, having this means I can disable modules for testing when I need to without removing them from the load list.

@mehah
Copy link
Collaborator

mehah commented Mar 1, 2023

This feature is possibly not as useful for this version of otclient, my lua sources don't use the autoload feature but it was pointed out to me that you can just disable autoload if you do. Since I don't use autoload in my sources, having this means I can disable modules for testing when I need to without removing them from the load list.

no problem, but as you were told, the project has autoreload which you can enable here https://github.com/mehah/otclient/blob/1026132e3dfa661807a1ff10ced2f4e09f1b7a7d/init.lua#L4, it only reloads the module you modified.

@mehah mehah merged commit 191bb2a into opentibiabr:main Mar 1, 2023
dudantas added a commit that referenced this pull request Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants