Glider 1.9 - Newbie Questions

Hi everyone. I’m new to Glider and since 1.9 is a big change I thought it might be a good idea to ask my newbie questions in a single thread. Hope I can get along with this tool as I have high hopes for the debugger & profiler combo along with the editor.

Here goes… 

When I click new Project I am asked to select a Project category. Only Samples is available there as an option. Where do I add more category. 

I then discovered something called a Project Group. I created a new one called CL Samples and asked Glider to add all subfolders under my CL Samples folder. Seems like it worked well and now I have all the CL samples listed in the Projects box on the left but there is no highest level group called CL Samples for me to collapse and hide all the samples in one go. I thought thats what a Project Group would do. Am I wrong?

Thanks much for your help. 

Hello Ksan,

This is a great place to ask questions, probably the best place right now. 

When I click new Project I am asked to select a Project category. Only Samples is available there as an option. Where do I add more category

At this time you cannot add stuff to the project templates. Sorry. It is a planned feature. Generally you just need to start a “Blank project” and that gives you a basic place to start from. If you find yourself using templates just to reuse various utility functions you have then please consider using our project manager “External libraries” feature instead. This will prevent code duplication that occurs when you instantiate a new project template. Remember, a “project” in Glider is just a folder. No special files are required although folder with main.lua are considered executable projects. An external library is also just a folder that is merged into your project.

I then discovered something called a Project Group. I created a new one called CL Samples and asked Glider to add all subfolders under my CL Samples folder. Seems like it worked well and now I have all the CL samples listed in the Projects box on the left but there is no highest level group called CL Samples for me to collapse and hide all the samples in one go. I thought thats what a Project Group would do. Am I wrong?

You generally want to use project groups when you have multiple products and you want to open a particular “perspective.” You can just close all projects and open the right ones for each product manually, or you can create a project group for each one. Switching project groups will just close all projects and open the ones in that respective group. 

For instance, things might get very confusing if you have multiple “Icons” folders or “Images” folders all open at the same time. Instead you want to create a project group per product and only have the relevant projects opened. 

Regards,

M.Y. Developers

Thanks for your replies. I will take some time to digest all this. I would like to be a be able to create a layered sub-folder structure on the project or files view. I normally add all my samples and other projects to various collapsable views like this so when I need to go check a project or sample I can quickly go back & forth.

New question. Everytime I make a small change and save one of the sources in my project somehow my app is launched in the Simulator. I don’t want this behavior. Is it configurable? Thanks

You mean the simulator is closed and it just starts when you save? This is def. not intended behavior. Or do you mean the simulator restarts?

Regards,

M.Y. Developers

Double checked it. It happens when the Simulator is running but is in the background. Saving an existing code relaunches the app. I have multiple files in my project and usually go through a few changes before I launch the simulator again so this behavior causes some time waste. If I can change it through the configuration that would be great! Thanks 

Hello Ksan,

It happens when the Simulator is running but is in the background

I think there is an option in the Corona simulator somewhere not to restart when it detects a change in your project folder.

Regards,

M.Y. Developers

Hi, I also use Outlaw and I don’t see the same behavior from Corona Simulator when I do exactly same in Outlaw. Same simulator with same settings on both end. I am still thinking Glider should be able to control this somehow. Not an urgency. Who knows it might even grow on me.! Thanks

Edit - I did find that setting in the simulator so I was able to stop this behavior. Thanks

Hello Ksan,

This is a great place to ask questions, probably the best place right now. 

When I click new Project I am asked to select a Project category. Only Samples is available there as an option. Where do I add more category

At this time you cannot add stuff to the project templates. Sorry. It is a planned feature. Generally you just need to start a “Blank project” and that gives you a basic place to start from. If you find yourself using templates just to reuse various utility functions you have then please consider using our project manager “External libraries” feature instead. This will prevent code duplication that occurs when you instantiate a new project template. Remember, a “project” in Glider is just a folder. No special files are required although folder with main.lua are considered executable projects. An external library is also just a folder that is merged into your project.

I then discovered something called a Project Group. I created a new one called CL Samples and asked Glider to add all subfolders under my CL Samples folder. Seems like it worked well and now I have all the CL samples listed in the Projects box on the left but there is no highest level group called CL Samples for me to collapse and hide all the samples in one go. I thought thats what a Project Group would do. Am I wrong?

You generally want to use project groups when you have multiple products and you want to open a particular “perspective.” You can just close all projects and open the right ones for each product manually, or you can create a project group for each one. Switching project groups will just close all projects and open the ones in that respective group. 

For instance, things might get very confusing if you have multiple “Icons” folders or “Images” folders all open at the same time. Instead you want to create a project group per product and only have the relevant projects opened. 

Regards,

M.Y. Developers

Thanks for your replies. I will take some time to digest all this. I would like to be a be able to create a layered sub-folder structure on the project or files view. I normally add all my samples and other projects to various collapsable views like this so when I need to go check a project or sample I can quickly go back & forth.

New question. Everytime I make a small change and save one of the sources in my project somehow my app is launched in the Simulator. I don’t want this behavior. Is it configurable? Thanks

You mean the simulator is closed and it just starts when you save? This is def. not intended behavior. Or do you mean the simulator restarts?

Regards,

M.Y. Developers

Double checked it. It happens when the Simulator is running but is in the background. Saving an existing code relaunches the app. I have multiple files in my project and usually go through a few changes before I launch the simulator again so this behavior causes some time waste. If I can change it through the configuration that would be great! Thanks 

Hello Ksan,

It happens when the Simulator is running but is in the background

I think there is an option in the Corona simulator somewhere not to restart when it detects a change in your project folder.

Regards,

M.Y. Developers

Hi, I also use Outlaw and I don’t see the same behavior from Corona Simulator when I do exactly same in Outlaw. Same simulator with same settings on both end. I am still thinking Glider should be able to control this somehow. Not an urgency. Who knows it might even grow on me.! Thanks

Edit - I did find that setting in the simulator so I was able to stop this behavior. Thanks