Is it possible to load a storyboard scene ( .lua file ) outside of your system.ResourceDirectory?
I don’t think so. Apple certainly wouldn’t allow it, as a developer would be able to substantially alter what an app does after it passes it’s submission review.
Also I believe the Lua code is compiled into something else (I’m guessing Java / Obj C) during the build process, so your new code wouldn’t be compatible.
Why were you looking to do this?
Damn… I was looking to dynamically create scene’s on the fly and with storyboard/composer you need to already have a .lua file created for it
You could structure a generic “level.lua” file in your project, which uses some json data to define each level.
This way you could just download new json files to the documents directory, and use that to load new scenes.
Corona compiles all the lua files to byte code before building the bundle. Raw Lua files can’t be run.
Rob
I don’t think so. Apple certainly wouldn’t allow it, as a developer would be able to substantially alter what an app does after it passes it’s submission review.
Also I believe the Lua code is compiled into something else (I’m guessing Java / Obj C) during the build process, so your new code wouldn’t be compatible.
Why were you looking to do this?
Damn… I was looking to dynamically create scene’s on the fly and with storyboard/composer you need to already have a .lua file created for it
You could structure a generic “level.lua” file in your project, which uses some json data to define each level.
This way you could just download new json files to the documents directory, and use that to load new scenes.
Corona compiles all the lua files to byte code before building the bundle. Raw Lua files can’t be run.
Rob