Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

[Qiso] map not rendered unless using Live build
Started by J@V0 Aug 14 2019 12:31 PM

5 replies to this topic
qiso live build
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

J@V0

[GLOBAL: userInfoPane.html]
J@V0
  • Enthusiast

  • 90 posts
  • Corona SDK

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



[TOPIC: post.html]
#2

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 467 posts
  • Corona SDK

Hmm 😶

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?

[TOPIC: post.html]
#3

J@V0

[GLOBAL: userInfoPane.html]
J@V0
  • Enthusiast

  • 90 posts
  • Corona SDK

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.



[TOPIC: post.html]
#4

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 467 posts
  • Corona SDK

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

[TOPIC: post.html]
#5

J@V0

[GLOBAL: userInfoPane.html]
J@V0
  • Enthusiast

  • 90 posts
  • Corona SDK

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.



[TOPIC: post.html]
#6

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 467 posts
  • Corona SDK

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.


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: qiso, live build