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.

Android / Bizarre sprite issue with T2 Android APK

Author
Message
Clonkex
Forum Vice President
13
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 24th Mar 2014 02:11
This is what my app looks like running on my Samsung Galaxy S3 through the AppGameKit player, broadcast from AppGameKit on my PC:



Aaaand this is what it looks like after building native code from C++ (ported from BASIC) through Eclipse and installing:



Whhaaaaaaaaat. Why is it doing that? I tested on two other devices (Nexus 7 and Nexus 4) and it does the same thing, except on the Nexus 4 it's also sort of repeating across the screen, fading with each repeat (I don't have a screenshot of the Nexus 4).

The C++ code works perfectly on Windows through VC++2008.

Anyone know what's happening?

Ancient Lady
Valued Member
19
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 24th Mar 2014 03:14
Are the actual file names exactly the same case-wise as the way you load the images in your code?

It's hard to tell what the images in the second display are trying to look like. If there is a difference in case between the actual file name and the way you load it, AppGameKit will be displaying the 'not found' image.

Android is case sensitive for paths and files and Windows is not.

Also, are the images all in the assets/media directory?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Clonkex
Forum Vice President
13
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 24th Mar 2014 05:34
Quote: "If there is a difference in case between the actual file name and the way you load it, AppGameKit will be displaying the 'not found' image."


Ah, that's probably it. I'll check now

Ok that was it, thanks!

Ancient Lady
Valued Member
19
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 26th Mar 2014 01:50
Windows lets people get away with lazy stuff.

And, do not use spaces in any directory names in your project.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Clonkex
Forum Vice President
13
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 26th Mar 2014 14:18
Quote: "Windows lets people get away with lazy stuff."


Lazy? Case sensitivity in filenames is dumb! Who wants to have to spot the difference between SoMeReALlyLOnGFiLeNaMe and SoMeReAlLyLOnGFiLeNaMe when a file doesn't load?

Quote: "And, do not use spaces in any directory names in your project."


Don't worry, I was pretty careful about that one

Login to post a reply

Server time is: 2024-02-26 21:19:13
Your offset time is: 2024-02-26 21:19:13