Build for Testing

Hello all, I am nearing completion of my game and was attempting to build my game on my android phone. My game works perfectly in the simulator but once I tried to run it on my phone I got a director error. Is this common? [import]uid: 49863 topic_id: 23116 reply_id: 323116[/import]

There are many things that work perfectly in the simulator, but not on actual devices. Test early and often. [import]uid: 71767 topic_id: 23116 reply_id: 92488[/import]

I should of been more specific. This is a director error so on my phone it says director error and then goes to a blank screen. Not even sure how to figure out what is going wrong. [import]uid: 49863 topic_id: 23116 reply_id: 92489[/import]

Do you have any assets or source code files that are in subdirectories? [import]uid: 71767 topic_id: 23116 reply_id: 92495[/import]

Yeah I just noticed that before I went to bed last night. This is not going to be fun. All of my audio files and art is set in sub folders and sub folders of that. [import]uid: 49863 topic_id: 23116 reply_id: 92601[/import]

I had then same issue. The fix can be anything really. As director doesn’t give much info about problem.

Here what i did:

In my case the error was in my levelselect.lua so i knew problem is in levelselect. Then it was capitalisation in my folder i had Levels with capital L and in my code i was coding with lower l. So you might want to check that out. [import]uid: 11559 topic_id: 23116 reply_id: 93105[/import]

Well I got the director errors solved so I can get the build to work. Now for a mess of debugging. The problem was I used sub-folders which android does not allow. I also realized that my sprite sheets had capitalization in the file extension. I was unaware of this when I was writing the code. [import]uid: 49863 topic_id: 23116 reply_id: 93167[/import]

Well I don’t know about sub-folders . I’m using latest build 765 and sub-folders are supported for android. I think it’s always been supported. [import]uid: 11559 topic_id: 23116 reply_id: 93172[/import]

@crazypsycho6973052

Are you using System.pathForFile to get the actual filesystem path of the assets you are trying to use? [import]uid: 71767 topic_id: 23116 reply_id: 93276[/import]