Only include assets for certain platform?

Is there a way to have certain resource files only be included in iPhone/iPad builds, and some only in Android? Like a separate folder you could put it in? [import]uid: 6678 topic_id: 1375 reply_id: 301375[/import]

Nope, not possible at the moment. [import]uid: 5712 topic_id: 1375 reply_id: 3808[/import]

Damn, that would make life too easy.

So, what is someone supposed to do in this situation? You have a game that will be built for iPhone and Android, and that game also have sounds. You use ogg’s for Android, and caf’s for iPhone. How do you avoid them being included in the other platforms builds? Because these can be relatively large files, and it would waste space.

Any advice is appreciated, thanks. [import]uid: 6678 topic_id: 1375 reply_id: 3809[/import]

Use two different folders for the projects and aliases for the stuff which is identical?

You could also use one Lua file which contains the different names included at the top of the main.lua file to not need to “if then” for every build.
[import]uid: 6928 topic_id: 1375 reply_id: 3812[/import]

OderWat, I’m really new to Mac, and I tried to do the alias thing, because it sounds like just what I’m looking for, but it doesn’t seem to work. When I do it, and put all the alias files in a separate directory, it just tells me it can’t find main.lua (is this because it’s an alias file?). Am I doing something wrong?

Thanks. [import]uid: 6678 topic_id: 1375 reply_id: 3830[/import]

I think you need symbolic links… Not the finder aliases…

I described something similar in another thread … If I remember right…
Basically you would use the terminal window and “ln -s originalfilepath aliasfilepath” for those files.

You may search the net for additional information how to use terminal and symbolic links. It is not difficulty though. [import]uid: 6928 topic_id: 1375 reply_id: 3842[/import]

Hmm, thanks, but no luck. Still doesn’t work even with symbolic links. It still says it can’t find a main.lua. Any other ideas? [import]uid: 6678 topic_id: 1375 reply_id: 3844[/import]

Augh, sorry, my bad, I was doing something really stupid, symlinks DO work great. Thanks a ton, this really helped! Solved the problem although having those specific iphone/android folders would be cool. [import]uid: 6678 topic_id: 1375 reply_id: 3845[/import]