Working with folders

I just made a disastrous decision to restructure my project’s folders via OSX finder. As I should have guessed this has caused all kinds of problems trying to build via Lua Glider - is there any easy fix or should I try and revert everything back to how it originally was?

[import]uid: 33275 topic_id: 35451 reply_id: 335451[/import]

I’m not sure why Glider would have issues with it. If you move your code into folders, you have to change any require that loads it to the format:

local module = require(“directory.module”)

Any image, audio or other asset you would need to change the file name to:

local pic = display.newImage(“directory/asset.ext”)

Until then you’re going to be throwing errors. Glider should honor your new folder structure. Maybe M.Y.Developers can chime in if I’m incorrect on it. [import]uid: 199310 topic_id: 35451 reply_id: 140976[/import]

SegaBoy, Try closing the projects in glider, then re-opening them from their new locations. [import]uid: 135765 topic_id: 35451 reply_id: 141000[/import]

Hey r.delia - thanks that did the job. [import]uid: 33275 topic_id: 35451 reply_id: 141025[/import]

@Rob Miracle and r.delia,

Thanks for your help!

@SegaBoy,

“this has caused all kinds of problems trying to build via Lua Glider”
We admit that the current system won’t properly track folders but this should not be a reason why the project does not work. Any warning or error you get in the IDE will not prevent you from launching the app.

Regards,
M.Y. Developers

[import]uid: 55057 topic_id: 35451 reply_id: 141098[/import]

I’m not sure why Glider would have issues with it. If you move your code into folders, you have to change any require that loads it to the format:

local module = require(“directory.module”)

Any image, audio or other asset you would need to change the file name to:

local pic = display.newImage(“directory/asset.ext”)

Until then you’re going to be throwing errors. Glider should honor your new folder structure. Maybe M.Y.Developers can chime in if I’m incorrect on it. [import]uid: 199310 topic_id: 35451 reply_id: 140976[/import]

SegaBoy, Try closing the projects in glider, then re-opening them from their new locations. [import]uid: 135765 topic_id: 35451 reply_id: 141000[/import]

Hey r.delia - thanks that did the job. [import]uid: 33275 topic_id: 35451 reply_id: 141025[/import]

@Rob Miracle and r.delia,

Thanks for your help!

@SegaBoy,

“this has caused all kinds of problems trying to build via Lua Glider”
We admit that the current system won’t properly track folders but this should not be a reason why the project does not work. Any warning or error you get in the IDE will not prevent you from launching the app.

Regards,
M.Y. Developers

[import]uid: 55057 topic_id: 35451 reply_id: 141098[/import]