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
Add a basic menu (in the main menu) that can contain special worlds for testing functionality. Configs for those worlds should be loaded from an easy to edit file - for example json/xml/yml, or scripts - lua/js/ts/pyton which will return intermediate file.
After adding that - remove debug placeholders from in-game world loading.
Note - exposing API for modding is not part of this issue. Just execute scripts, get generated json/xml/yml as the result, check if it is valid, parse and load a world with the generated config.
The text was updated successfully, but these errors were encountered:
Add a basic menu (in the main menu) that can contain special worlds for testing functionality. Configs for those worlds should be loaded from an easy to edit file - for example json/xml/yml, or scripts - lua/js/ts/pyton which will return intermediate file.
After adding that - remove debug placeholders from in-game world loading.
See:
Lua: http://acamara.es/blog/2012/08/running-a-lua-5-2-script-from-c/
JS: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
TS: transpiling TS to JS at the runtime and then running it as the point above
Python: https://www.codeproject.com/Articles/820116/Embedding-Python-program-in-a-C-Cplusplus-code
Note - exposing API for modding is not part of this issue. Just execute scripts, get generated json/xml/yml as the result, check if it is valid, parse and load a world with the generated config.
The text was updated successfully, but these errors were encountered: