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 / Customtext problem in Android in Beta 15

Author
Message
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 16th Jul 2013 11:30
Here i use a Customtext Image.
Under Windows is OK but under Android...

See the Pictures...

Is this a bug ?

Sascha

Attachments

Login to view attachments
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 16th Jul 2013 11:32
And here the Windows Version...

The problem is on real Android Phone too.

Attachments

Login to view attachments
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 16th Jul 2013 12:00
one screenshot is before game and one after the game!?
can't see your problem.
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 16th Jul 2013 12:17
Show the right side, the Level Number...
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 16th Jul 2013 13:21 Edited at: 16th Jul 2013 13:23
ahh, looks ugly.
the only difference i see is the orientation.
the Customfont Image+pos. Textfile is 100% the same on both?
(u use SetTextFontImage, true?)
maybe cut out the part (source) that make problems in a new project
and try without the game what happens.
and print(x) the level on screen too.
also you can compare what happens with other agk version.
if you find a bug just add it to the issue list at google with example.
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 16th Jul 2013 14:54
The orientation is the same... i have forget to rotate the picture (-:.

Yes, i use SettextFontimage and in older Versions there is no problem.
I use the "light" Version of the AppGameKit Player in Eclipse...
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 16th Jul 2013 15:33 Edited at: 16th Jul 2013 15:35
maybe try the online apk maker too and see what happens.
if you upload the fontimage+ subimages.txt i can try
it too with my android tablet.

but as you said it is in older Versions ok a bug in agk is possible.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 16th Jul 2013 16:58
sdl, sometimes the order of the instructions used to apply attributes (font image, size, etc.) to a Text object interfere with each other. The v108+ versions are more sensitive than v1076.

Check the order of the commands in the text that works and the one that doesn't.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 18th Jul 2013 17:54
Can you email me the font image you are using (or post it here) and I will take a look.
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 18th Jul 2013 21:20
HI,

i attached a project...
on Windows it is OK but when you make it with the Eclipse light Player... i have uploaded the game to the samsung store and i see in the videos from Samsung(TESTING TEAM) on many devices it the text ugly... i dont test it with the full player or the online apk service. at the moment i have no time...

Sorry for my bad English... A German Forum would be nice.. (-:

Attachments

Login to view attachments
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 18th Jul 2013 21:48
By any chance, is the letter case of the font file name any different from that used in the function call to load it?

I haven't downloaded the project. I figure you can answer the question faster than I can find the file and the code.

And did you put the the file in the <androidproj>/assets/media directory?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 18th Jul 2013 21:56
no i have not change my code for the SettextFontimage . my old version compiled with the Beta 12 is OK on Android...
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 18th Jul 2013 22:21
You example works on Android here so I don't know what could be causing it.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 18th Jul 2013 22:37
When you updated your Android AppGameKit setup, did you create a new directory so that the current v10815 version was clean or did you just copy over the old one?

If you just copied over the old one, there are probably a lot of files that did not get updated due to permission issues.

And, simply copying your old v10812 Android project to the new tree, assuming that is what you did, does not update the version specific files. You would need to copy all the libraries from the v10815 interpreter_android directories and copy the AppGameKit core code files (Core.cpp, CoreForApp.h and main.c) from the interpreter_android/jni directory to your project's jni directory.

If your Android setup is scrambled, then there will be problems with things running properly. (As I discovered when I managed to not update just one .java file in one of my projects.)

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 18th Jul 2013 22:46
Look at youtube... That effekt ist on my Tablet, my Phone and in the Emulator !

http://www.youtube.com/watch?v=Sx2TOlAb4WU
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 18th Jul 2013 22:52
I have make more "games" with AppGameKit see this...

http://www.youtube.com/watch?v=5apP6fmUxRI
(OK Collison is not perfekt, im working on it )

Make an APK with Exclipse ist no Problem (-:
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 18th Jul 2013 22:54
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 18th Jul 2013 22:56
Wenn a new Beta is coming out i make a fresh ! installation in Exclipse... i copy no old projects...
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 18th Jul 2013 22:58
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 18th Jul 2013 23:32
You know, you can edit your posts to add to them. Just saying....

Anyway, the first YouTube link (showing your current problem) looks like a spacing issue.

Possible causes are that you are manually setting the spacing between the characters (there is a command that changes that).

Or the subimages.txt file associated with your font .png file is not correct.

Or, not having a subimages.txt file associated with it, your font .png file is for a non-fixed font and AppGameKit is trying to make it a fixed font (because it doesn't have information telling it otherwise).

If your font file is not a fixed font, you must provide a subimages.txt file that tells AppGameKit how to extract the letters in your font file. If the font file is named 'xyz.png', the subimage file is named 'xyz subimages.txt' (yes, there is a space between 'xyz' and 'subimages').

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 18th Jul 2013 23:41
The files are correct... there is no file problem or coding problem...
In older beta versions there is no problem..
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 19th Jul 2013 00:17
From your video it looks like AppGameKit cannot find the subimages.txt file. This could be a case sensitive issue as "Text_green40 subimages.txt" is not the same as "text_green40 subimages.txt". But the example you posted earlier has everything correct an works on the emulator (see attached)

Attachments

Login to view attachments
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 19th Jul 2013 11:50 Edited at: 19th Jul 2013 11:51
Ok i have found the problem...
I have different Filenames in my AppGameKit Projekt and Eclipse...
sorry that was my fault ...

not enough sleep (-:
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 19th Jul 2013 17:06
Great! It is always nice to solve a problem.

Happy Programming!

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2024-11-24 18:45:42
Your offset time is: 2024-11-24 18:45:42