Recent Posts

Pages: [1] 2 3 ... 10
1
GLBasic - de / Re: Laufwerke
« Last post by Worebu on Today at 12:26 am »
Moin, ich hab da noch eine Frage. Werden unter Android die Laufwerke anders angesprochen wie unter Windows?
Ich bekomme nämlich nichts angezeigt.  :'(
2
Bug Reports / Re: SHOEBOX does not work on ANDROID
« Last post by spacefractal on Yesterday at 07:26 pm »
that due glbasic try to copy all files from that subfolder to internal memory from APK.

glbasic calls copyAsset() in sldActivity.java for each file you access. But if folder does not exists, its might crash instead. CREATEDIR() make sure its exits, before glbasic calling copyAsset(). Its can been required for some issues.

If you do a DOESDIREXISTS(), its also calls recursiveCopy() in java instead. Howover recursiveCopy can take too long time for the app, and can crash. Mostly if its many many MB.

This is why shoebox is simply not recommend to been used on Android at all! Im sorry.

you should dropping them, and instead uses subfolders for each level instead (using the same name you used from shoebox). That is much much more effective for memory wise, and you would have much more direct access to them.

Due this im will not fix shoebox issue on Android, since its ineffective anyway (sorry Gernot, but if you can fix it, then it ok).

3
Bug Reports / Re: SHOEBOX does not work on ANDROID
« Last post by adaz on Yesterday at 05:43 pm »
Hi spacefractal,
I don't understand one thing: it's OK to check if the folders are exist or not, but if not, why should I create them? My level files won't be accessible from a just created folder... And if the folder exists (with the files in it), I don't have to create it.
4
If you haven't set the headers at all, they can change because of webserver updates changing the default compression/encoding.
5
Code Snippets / Re: DRAWRECT using POLYVECTOR from a Image
« Last post by MrPlow on 2018-Feb-20 »
Here are my DRAWRECT replacements, is there an ideal way to to DRAWLINE using Polyvector?
I assume DRAWLINE is also broken on Android??


Code: GLBasic [Select]

FUNCTION NewStar: x#,y#,w,h,col
        // polyvector way of doing it:
       STARTPOLY -1
        POLYVECTOR x+(w/2), y, 0,0,col
        POLYVECTOR x, y+(h/2), 0,0,col
        POLYVECTOR x+(w/2), y+h, 0,0,col
        POLYVECTOR x+w, y+(h/2), 0,0,col
                ENDPOLY

ENDFUNCTION

FUNCTION NewRect: x#,y#,w,h,col
        // polyvector way of doing it:
       STARTPOLY -1
        POLYVECTOR x, y, 0,0,col
        POLYVECTOR x, y+h, 0,0,col
        POLYVECTOR x+w, y+h, 0,0,col
        POLYVECTOR x+w, y, 0,0,col
                ENDPOLY


ENDFUNCTION
 
6
Bug Reports / Re: SHOEBOX does not work on ANDROID
« Last post by spacefractal on 2018-Feb-20 »
so yes, its mightbeen a bug. but im will not fix it. sorry. Its a bigger issue here. Its just one of the strangers on Android.

But again, you should property use folders for each shoebox and do file access directly from those, if you used same filename for tiles etc.
7
I see, thank you again very much!!
8
im have not have the issue here. just dont use more number of mouse you can use. on Windows, most player use keyboard and joypad, if its that such a game.
9
Bug Reports / Re: SHOEBOX does not work on ANDROID
« Last post by spacefractal on 2018-Feb-19 »
btw you can try to do those two things:

Code: GLBasic [Select]
        ?IFDEF ANDROID
                IF DOESDIREXIST("Media")=0 THEN CREATEDIR("Media")
                IF DOESDIREXIST("Media/levels")=0 THEN CREATEDIR("Media/levels")
                IF DOESDIREXIST("Media/levels/paid")=0 THEN CREATEDIR("Media/levels/paid")
                IF DOESDIREXIST("Media/levels/maze")=0 THEN CREATEDIR("Media/levels/maze")
                IF DOESDIREXIST("Media/music")=0 THEN CREATEDIR("Media/music")
                IF DOESDIREXIST("Media/music/ogg")=0 THEN CREATEDIR("Media/music/ogg")
                IF DOESDIREXIST("Media/music/mp3")=0 THEN CREATEDIR("Media/music/mp3")
        ?ENDIF
 

Please note, showbox is VERY ineffective on Android and is not recommend to use them at all. This due shoebox will use DOUBLE amount of memory, so its might fail on Android. Mostly on devices with low internal memory, which is COMON on older devices. So im will recommend to NOT support Android 4 at all really. Many of those devices have crappy memory management.

The main reason above thigng file access is NOT supported inside APK and is require to extract that to the internal memory first.

DOESFILEEXISTS will copy the file from a APK to the internal, while DOESDIREXISTS will copy the whole folder from that one.

So bear in mind, you can end the game uses TWICE of memory required.

This is why im newer used them at all. Its not effective on Android, nor newer will.


10
removed Android TV scaling stuff.... its effected this issue, mostly im did set a scalling max in y 1560 resolution. this happens easy in portrait mode. Then its try to scaling it.... but the code did not take system button area at all, but returned as its was full screen. Then mousestate returns wrong.

Also Android TV stuff do require Landscape anyway.
Pages: [1] 2 3 ... 10