Placing modules in subfolders does not work

As far as I understand all LUA modules should be places in the same folder as main.lua. But for what reason this restriction was made? I’ve made game levels logic in files like this:
level1\game.lua
level2\game.lua

main.lua
This structure works fine in Corona Simulator, but does not run on iPhone Simulator and Device.
Is this going to be fixed? Or this is a feature?
Thanks
~ Stas [import]uid: 7301 topic_id: 4380 reply_id: 304380[/import]

Yes, this happened to me too. I have to place everything in the outmost directory to make it work. But it works fine in Corona Simulator.

Not only modules, but this also include external file. In my game, I save levels into xml files in “data” directory. Works in Corona Simulator, but not on Device :confused: [import]uid: 5976 topic_id: 4380 reply_id: 13804[/import]

TO hima: Yes, it’s very inconvenient :frowning:

TO Ansca Staff: Any comments are welcomed :slight_smile: [import]uid: 7301 topic_id: 4380 reply_id: 14152[/import]

I propose a solution … not so sexy but it works on device :wink:

http://developer.anscamobile.com/forum/2010/12/21/develop-subfolders-i-found-solution-its-work-now

[import]uid: 9415 topic_id: 4380 reply_id: 14680[/import]

it is a current limitation we are addressing

it had to do with the sandboxing of data is different in android and ios devices

but we may have figured a solution that satisfies both os’s

c [import]uid: 24 topic_id: 4380 reply_id: 14701[/import]