Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Images appear while broadcasting and not when installing the app

Author
Message
LeGugusse
17
Years of Service
User Offline
Joined: 15th Feb 2007
Location: Paris - France
Posted: 2nd Jan 2013 17:25
Hi,

Here is my curious problem:

My RPG game works well while broadcasting on the device. All the images are displayed correctly.

But when I compile the app and install the APK, some background images (size 1024x300, 1024x1024) are not displayed. I've a cross instead.

How can it be?
Someone understand what it can be?

Thanks for your help.

Cry "Havoc!" and let slip the dogs of war
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 2nd Jan 2013 18:36
1. What version of AppGameKit are you using?
2. Are you working in Tier 1 or Tier 2?
3. Did you put your media in the <yourandroidproj>/assets/media directory?
4. Are you sure that the actual names of the files and the code you are loading them with are using exactly the same names, especially the same case?
5. Are you by any chance using .bmp files instead of .jpg or .png? (Android doesn't support .bmp)

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 2nd Jan 2013 18:52
It is most likely case sensitivity as Ancient Lady suggests, or bmp files as they do not work on android. Also be careful with non power of 2 images such as the 1024x300 one you mention, as in some cases it will give you problems. UV scrolling and animations will have issues on non power of 2 sizes. I do it now for all sprites just to be certain of no problems later on, although it can be a pain as you can end up with more blank space than you would like just to get it into the right dimensions.

LeGugusse
17
Years of Service
User Offline
Joined: 15th Feb 2007
Location: Paris - France
Posted: 3rd Jan 2013 10:15 Edited at: 3rd Jan 2013 10:17
Thanks to you 2!
The problem was the non power 2 images or the case sensibility.

I use now some "tiles" sized 256x324 named with lowercase only and it's Ok as you can see on the screenshot:



Thanks for your help.

Cry "Havoc!" and let slip the dogs of war
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 3rd Jan 2013 16:35
Isn't it great when you can help just by asking questions?

Happy Programming!

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 3rd Jan 2013 16:45
Looks great

Login to post a reply

Server time is: 2024-05-06 22:51:29
Your offset time is: 2024-05-06 22:51:29