How to include folder to the release build (resolved)

I made levels in Tiled and export theirs to lua.
Then I just run file using:
dofile("editor/level"..num..".lua")
and in editor game works fine.

But when I try to make release build I recive error
editor/level1.lua: No such file or directory
as I understand my “editor” folder do not include into build
I have too many levels, and i don’t want to use “require” to every file

Maybe I can include whole folder into the release build?

I found how to fix this issue. Just use :
sys.load_resource
instead “dofile”
and add to “game.project”
custom_resources = editor/

Then I made export of all level to json format.

I hope it would be helpful for somebody

8 Likes