Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - adaz

Pages: [1]

I know that Managed products are supported by AndroidExtras. I'd like to implement "consuming" a product, e.g. when a user purchased extra lives, then I want to allow him to purchase it again by "consuming" the previous item, and let Google know that this item can be purchased again by that user.
Does anybody know how to do this?
Here is Google's documentation about it:, but I don't know how to code it in GLBasic.

Thank you!


Hi Guys!

BOXCOLL returns false values on the bottom of the screen, I think because of the virtual navigation controls of Android. See the image.

I don't know how to tell Android that I want immersive full screen, where the navigation controls don't bother me.

How to insert this code into GLBasic?

Can somebody help me please?

Bug Reports / SHOEBOX does not work on ANDROID
« on: 2018-Feb-14 »

My simple code works on Win32:
Code: GLBasic [Select]
SETCURRENTDIR("Media") // go to media files

SETSHOEBOX "1.sbx",""

LOADANIM "kockak.png",1,45,45

DRAWANIM 1,1,50,50


But LOADANIM command crashes on Android:

I/glbasic ( 9200): Extracting asset file:
F/libc    ( 9200): Fatal signal 11 (SIGSEGV) at 0x7fffffff (code=1), thread 9222 (SDLThread)
I/DEBUG   ( 1522): pid: 9200, tid: 9222, pkg name:
I/DEBUG   ( 1522): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 1522): Build fingerprint: 'motorola/ghost_retasia/ghost:4.4.2/KOT49H/G900FXXU1ANCE:user/release-keys'
I/DEBUG   ( 1522): Revision: '0'
I/DEBUG   ( 1522): pid: 9200, tid: 9222, name: SDLThread  >>> <<<
I/DEBUG   ( 1522): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 7fffffff
W/NativeCrashListener( 1698): Couldn't find ProcessRecord for pid 1885955130
I/DEBUG   ( 1522):     eax 7fffffff  ebx 18083260  ecx 00000001  edx 8956bd4f
I/DEBUG   ( 1522): AM write failure (32 / Broken pipe)
I/DEBUG   ( 1522):     esi 1a215030  edi 00000000
I/DEBUG   ( 1522):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000043  xss 0000007b
I/DEBUG   ( 1522):     eip 8a47ab72  ebp 1a215000  esp 8966c744  flags 00210287
I/DEBUG   ( 1522):
I/DEBUG   ( 1522): backtrace:
I/DEBUG   ( 1522):     #00  pc 00076b72  /system/lib/ (memcpy+3730)
I/DEBUG   ( 1522):
I/DEBUG   ( 1522): stack:
I/DEBUG   ( 1522):          8966c704  8a791a58
I/DEBUG   ( 1522):          8966c708  0000001c
I/DEBUG   ( 1522):          8966c70c  8966c71c  [stack:9222]
I/DEBUG   ( 1522):          8966c710  8a4b2fdd  /system/lib/
I/DEBUG   ( 1522):          8966c714  00000000
I/DEBUG   ( 1522):          8966c718  b76aa370  /system/lib/ (free+32)
I/DEBUG   ( 1522):          8966c71c  8966c74c  [stack:9222]
I/DEBUG   ( 1522):          8966c720  8a58860c  /system/lib/
I/DEBUG   ( 1522):          8966c724  1453f924  /system/lib/arm/ (strtol+544)
I/DEBUG   ( 1522):          8966c728  00000000
I/DEBUG   ( 1522):          8966c72c  1a215030  [stack:9212]
I/DEBUG   ( 1522):          8966c730  b76aa356  /system/lib/ (free+6)
I/DEBUG   ( 1522):          8966c734  00000000
I/DEBUG   ( 1522):          8966c738  180163c6
I/DEBUG   ( 1522):          8966c73c  8a592706  /system/lib/
I/DEBUG   ( 1522):          8966c740  8a585227  /system/lib/
I/DEBUG   ( 1522):     #00  8966c744  1a215030  [stack:9212]
I/DEBUG   ( 1522):          8966c748  00000000
I/DEBUG   ( 1522):          8966c74c  18083260
I/DEBUG   ( 1522):          8966c750  18083291
I/DEBUG   ( 1522):          8966c754  8956bd4f
I/DEBUG   ( 1522):          8966c758  7fffffff
I/DEBUG   ( 1522):          8966c75c  00000001
I/DEBUG   ( 1522):          8966c760  8966c770  [stack:9222]
I/DEBUG   ( 1522):          8966c764  00000000
I/DEBUG   ( 1522):          8966c768  00000000
I/DEBUG   ( 1522):          8966c76c  00000000
I/DEBUG   ( 1522):          8966c770  8966c798  [stack:9222]
I/DEBUG   ( 1522):          8966c774  8966c760  [stack:9222]
I/DEBUG   ( 1522):          8966c778  8a5926dd  /system/lib/
I/DEBUG   ( 1522):          8966c77c  8966c988  [stack:9222]
I/DEBUG   ( 1522):          8966c780  00000000
I/DEBUG   ( 1522):
I/DEBUG   ( 1522): memory map around fault addr 7fffffff:
I/DEBUG   ( 1522):     1c260000-1c263000 rwx
I/DEBUG   ( 1522):     (no map for address)
I/DEBUG   ( 1522):     88a67000-88a89000 rwx

I attached the shoebox file, please rename it to .sbx!

I've already tried it with other images, png's, bmp's, jpg's, etc... Tried on real phones and on Bluestacks as well.
It is very important to me, because I'm now porting my iOS game to Android, and it uses a lot of shoeboxed data. It worked on iOS.

Thank you,

GLBasic 15.089, latest AE, api-22

Hi All!

Version:  15.089

NETWEBGET returns a strange prefix before the real string when I call my php from GLBasic.

You can test the php with a browser, and see the correct texts:

It's a highscore script that returns the players' names, scores and date based on gameid.

When I call it from GLBasic, there are an additional number and CR+LF before the string.
Please try it:

Code: GLBasic [Select]
GLOBAL halloffametemp$

PRINT halloffametemp$,0,120
PRINT halloffametemp$,0,140


I checked the db table with phpMyAdmin, and there are no "105" or "82" strings at all.

Testing with a web browser proves that the script WORKS as expected, only GLBasic returns this extra string. Why?

If you're interested, the query in the php is this:
Code: GLBasic [Select]
$query = "select * from scores where gameid='$gameid' order by score desc limit 10";

Thank you,


GETMOUSECOUNT  returns 32 on Win8 and Win10. When I run my exe with Win7 compatibility mode, it returns 1.
It slows down my program a lot when I check if all mouse buttons are released.

In some circumstances MOUSESTATE returns that mouse button 2 is always TRUE. It happens in a very big code, but in a small FUNCTION:

Code: GLBasic [Select]
        LOCAL mx,my,mb1,mb2
        FOR i=0 TO GETMOUSECOUNT()-1
                SETACTIVEMOUSE i
                        MOUSESTATE mx,my,mb1,mb2
                UNTIL mb1=FALSE AND mb2=FALSE

The REPEAT loop never ends.

Are these bugs, or deliberate changes in OS?

GLBasic Precompiler V.14.721
GLBasic IDE, Version: 15.089

Thank you,

GLBasic - en / Generating md5 hash
« on: 2014-Jul-04 »
Hi All,

Is there a way to generate md5 hash from a string within GLBasic? I need a cross-platform solution (it has to work on iPhone too), so an inline code would be great!

Thank you ALL,


test.sbx contains a file: test.txt
test.txt contains 20 lines of text

Code: GLBasic [Select]
SETSHOEBOX "test.sbx",""

GETFILE "test.txt", 0, a$
PRINT a$,0,200
//correctly displays line 0 of test.txt

GETFILE "test.txt", 1, a$
PRINT a$,0,250
//displays: "NO_DATA"

The above code works when I don't use shoebox.

Pages: [1]