Set a main.lua as main

Hi,

You had mentioned in your blog that you are looking into adding more flexibility with folders. That will be VERY helpful!!!

I do have one major request, please allow the user to set a file as ‘main.lua’ so that it will act like a main.lua and disregard the current main.lua.

Right now I have to trick the manager by making a folder, putting a main.lua inside of it, dragging that to the main project, and turning off the original.

This is a pain if I’m working on a project but want to just test specific code!!!

What would be nice is to set a property of a file (it could be named anything) and flag it as being the main.lua. What could happen is that file can have a star by it signifying that it is the main.

When CPM publishes the app, it will rename that file to main.lua and disregard the “non-defaulted” main.lua.

Is this doable?

[import]uid: 11632 topic_id: 4395 reply_id: 304395[/import]

Yeah, you can do that right now.

  1. Put the alternate main.lua in your project, maybe it’s named main2.lua.
  2. Right-click that in the asset list and choose Edit.
  3. Change the alias for that file to main.lua and save the change.

Now you can use the green balls on the left side of the asset list to turn on/off the file you do/don’t want included when you Launch or Publish.

Here’s a video that shows the feature in action: http://instantvideowebpages.com/play/?m=469

Thanks!

Jay

PS - The alternate file can even be in a different folder on your drive, just drag it into whichever project needs it and set the Alias. [import]uid: 9440 topic_id: 4395 reply_id: 13748[/import]