[Qiso] map not rendered unless using Live build

My app works fine in the Corona simulator and in my Samsung S8 only when making a live build for Android, however, when the build is NOT a live build, the map is not rendered on my phone.

I’ve tried a clean install, tried to create a new layer but same problem. None of the layer is rendered, I get an black background (my menus and other icons are displayed correctly).

My map.lua and image files are located in a assets or images folder.

What could be the reason for that?

I’m using the latest Corona daily build

Hmm :no_mouth:

I’m not aware of any differences between live builds and general builds that could cause this. I’ve actually never used the live build system myself.

Since you’re using the latest daily build, I’m wondering if this is something to do with how image assets are now bundled for the app store. I’ve not yet had chance to look at 64bit builds but will try to give this some priority over the next couple of days.

Do you have Android Studio installed? It has a handy console which outputs device messages if you connect your phone via USB, assuming you’ve enabled developer mode on it. There might be clues in this output.

@Rob, would you be able to shed any light on differences with live builds that might cause this behaviour?

I think I figured out what is happening, I will post another update shortly.

Most probably because my tiles and the map file were not in the same folder.

Ah, they do have to be together, yes. Curious as to why that was working for you in the simulator though…?

Yeah I can confirm that the problem was because my map was stored in Assets and my sprites (grass.png in that case) in another folder called Images.

I guess it worked in the simulator because the path for the sprites in tiles referred to the correct folder…

So there is no way to have my maps in a folder and the sprites in another one? That could be handy in the future when I have many maps available, even if they are in a subfolder of the assets folder.

Not at the moment, no. The setAssetsFolder() function tells Qiso where to load all assets from, including the map itself, so putting them in separate locations would indeed cause problems.

That said, you could possibly pass a relative path to loadTiledMap() to break out of that folder if you really needed to, but this isn’t something the engine intentionally supports and it’s not something we’ve tested at all.