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 / No Images in Android

Author
Message
DennisW
15
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 29th Aug 2012 21:23
I created a game and made up my apk file but I get no images in android. I just get black and white blocks and a red X. I know I read about this that someone eles had but I can't find it. The only thing that does show up is the icon. Any idea what I did wrong

Dennis

Ham and Eggs Breakfast
The Chicken was involved the Pig was Committed
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 29th Aug 2012 22:02
Do you have all media files like this.
assets/media

You are supposed to have a folder named media inside the assets folder where you have your media and bytecode.

Android 2.3 Gingerbread , ZTE Skate , 480x800 , 800 mhz cpu , Samsung Galaxy Y , 240x320 , 832 mhz cpu
Android 4.0 Sandwich , Dmtech 3g 9738B , 1024x768 , 9.7 inches , cortex A8 1.2 cpu , 1 gb ram.
DennisW
15
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 29th Aug 2012 22:24
Yes Cliff I caught that on the Video I just copyed the media folder and added a assets folder and droped it in.

By the way I tryed your game out real nice. I got a bit confused with the arrow keys thow. Tried to use the up key to jump. All in All GREAT work

Dennis

Ham and Eggs Breakfast
The Chicken was involved the Pig was Committed
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 29th Aug 2012 22:40
Quote: "By the way I tryed your game out real nice. I got a bit confused with the arrow keys thow. Tried to use the up key to jump. All in All GREAT work"

Thanks its not supposed to be visual on computer and only on mobile devices.
Computer only uses arrow keys to move

Its currently one hand controls thats why you jump with down arrow

Quote: "Yes Cliff I caught that on the Video I just copyed the media folder and added a assets folder and droped it in."


Do you use only simple names for your media?

titel.png

and not

My fancy titel image.png

I have something in the back of my head about not using spaces and stuff in image names?

Android 2.3 Gingerbread , ZTE Skate , 480x800 , 800 mhz cpu , Samsung Galaxy Y , 240x320 , 832 mhz cpu
Android 4.0 Sandwich , Dmtech 3g 9738B , 1024x768 , 9.7 inches , cortex A8 1.2 cpu , 1 gb ram.
DennisW
15
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 29th Aug 2012 22:46
I don't think I have any with space's I will have to look to make sure. The thing is the image I use for the icon is one of the same images in game just a differnt size. The icon show's up fine.

Ham and Eggs Breakfast
The Chicken was involved the Pig was Committed
iam
11
Years of Service
User Offline
Joined: 29th Aug 2012
Location: USA, Texas
Posted: 30th Aug 2012 01:35
If your images are loading fine for other platforms and not for Android, it could be an uppercase/lowercase issue with your image paths in the code. For Android, case matters. .
Auger
12
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 30th Aug 2012 02:50 Edited at: 30th Aug 2012 07:13
Make sure you use the same capitalization of your filenames in your code and Media directory. AppGameKit doesn't care about capitalization but the Android compiler does.
DennisW
15
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 30th Aug 2012 07:20
Thanks All for your help. Auger you hit it on the head I in deed had som capitalization in my code and that is what caused the problem. Thanks

Dennis

Ham and Eggs Breakfast
The Chicken was involved the Pig was Committed
The Daddy
15
Years of Service
User Offline
Joined: 13th Jan 2009
Location: Essex
Posted: 30th Aug 2012 19:55
Hi guys,

As Android is a Linux type environment, no spaces and no capitals......I was knew to it but once in your head it's the first place to check for errors!

Constantly seeking!
kirtn14
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 4th Sep 2012 16:21
i have the same issue but all my media and my bytecode are in assets/media and are all lower case with no spacing and i still get no images and the cross's

kirtnicholls
Funnell7
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location: UK, England
Posted: 8th Sep 2012 22:22
Quote: "As Android is a Linux type environment, no spaces and no capitals......"


Just to clarify, spaces and capitals are fine as long as you have the exact same spaces and capitals in your code... For example, there is no harm in having 'My Image.png' providing this is exactly replicated when loaing your media in AGK. All my media has spaces and capitals for both Android and iOS...

I think people tend to advise to just use lowercase and no spaces as then you cannot possibly have a descrenpancy (unless you spelt it wrong or something, but then that would be pretty silly )...
serandre
11
Years of Service
User Offline
Joined: 14th Sep 2012
Location:
Posted: 16th Sep 2012 14:55
I had this problem with a x. I was using an image sized 1280x720 to be used as a background, when I´ve changed it´s size to 480x320 the image was show.

Strange my device has a 1280x720 res (galaxy s3). I think is because of the SetVirtualResolution(480,320).

Login to post a reply

Server time is: 2024-05-04 18:17:20
Your offset time is: 2024-05-04 18:17:20