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
{{ message }}
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.
Right now, quests that contain files of interest are copied to quests by interested quest makers. Although I am not quite sure how to implement searching for libraries, libraries would be quests, or quests that only contain necessary components, that could be accessed by another quest. May help with #517.
Example API usage from scripts:
sol.main.define_lib(lib_name, lib_loc)
Then, when calling functions that use library data, add an optional library option to the end, defaulting to "self" which causes the engine to continue normal behavior. With this system, reusablility can be increased.
The text was updated successfully, but these errors were encountered:
So you want several different quests to be able to use a common library? This is indeed the ideal way to do things.
Yes, this should already be possible with a simple require(), I think we don't even need sol.file. require() looks first in the quest directory, and then in usual Lua paths exactly like the standard require().
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Right now, quests that contain files of interest are copied to quests by interested quest makers. Although I am not quite sure how to implement searching for libraries, libraries would be quests, or quests that only contain necessary components, that could be accessed by another quest. May help with #517.
Example API usage from scripts:
Then, when calling functions that use library data, add an optional library option to the end, defaulting to "self" which causes the engine to continue normal behavior. With this system, reusablility can be increased.
The text was updated successfully, but these errors were encountered: