Menu

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.

Show posts Menu

Messages - adaz

#16
It says syntax error.
#17
Quote from: kanonet on 2016-Jul-15
Yes, "_" does work in GLBasic too.

It doesn't work for me :( IDE 15.089
#18
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.
#19
I see, thank you again very much!!
#20
Thanks spacefractal. The file exists, I already used DOESFILEEXISTS(), but LOADSPRITE still cannot access the sbx, or even doesn't try to access it, I don't know. All my levelpacks and graphics are based on this, so I'm very despondent if it really won't work on Android :-(

By the way, here is the _logview.bat's result when LOADSPRITE failed to load from the sbx:

Quote02-19 15:31:48.309  5757  5757 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-19 15:31:48.310  5757  5757 F DEBUG   : Build fingerprint: 'HUAWEI/VTR-L29/HWVTR:7.0/HUAWEIVTR-L29/C432B151:user/release-keys'
02-19 15:31:48.310  5757  5757 F DEBUG   : Revision: '0'
02-19 15:31:48.310  5757  5757 F DEBUG   : ABI: 'arm'
02-19 15:31:48.310  5757  5757 F DEBUG   : pid: 5688, tid: 5728, name: SDLThread  >>> com.adaz.antirock <<<
02-19 15:31:48.310  5757  5757 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7fffffff
02-19 15:31:48.310  5757  5757 F DEBUG   :     r0 ce17ea1f  r1 7fffffff  r2 80000000  r3 00000000
02-19 15:31:48.310  5757  5757 F DEBUG   :     r4 ce17ea54  r5 008000ff  r6 00000001  r7 00000000
02-19 15:31:48.310  5757  5757 F DEBUG   :     r8 00040a74  r9 00000000  sl 7fffffff  fp ce17ecfc
02-19 15:31:48.310  5757  5757 F DEBUG   :     ip 20000000  sp ce17e1b0  lr e51042e0  pc ee9c15cc  cpsr 80030010
02-19 15:31:48.311  5757  5757 F DEBUG   :
02-19 15:31:48.311  5757  5757 F DEBUG   : backtrace:
02-19 15:31:48.311  5757  5757 F DEBUG   :     #00 pc 000175cc  /system/lib/libc.so (memcpy+196)
02-19 15:31:48.311  5757  5757 F DEBUG   :     #01 pc 0009f2dc  /data/app/com.adaz.antirock-1/lib/arm/libmain.so (_ZN12OPENGL_IMAGE12LoadImageBMPEPKcm+340)
#21
Spacefractal, YOU ARE A GENIUS!!! It's working!!! I cannot say how happy I am! This SDLActivity.java resolved this problem. I don't know what you did, but you did it!
So what did you do? :)
#22
Spacefractal, you're very kind by helping me in this!

1. I used portrait, but now I tried it with sensorPortrait, no luck.

2. X does nothing wrong, it's OK.

3. Logcat output:

Code (glbasic) Select
Android Debug Bridge version 1.0.32
List of devices attached
7EX7N17803000238        device

int logctl_get(): open '/dev/hwlog_switch' fail -1, 13. Permission denied

Note: log switch off, only log_main and log_events will have logs!
--------- beginning of main
02-18 23:48:51.888 30161 30161 I glbasic : OnResume()
02-18 23:48:51.889 30161 30161 I glbasic : OnResume() end
02-18 23:48:51.903 30161 30161 I glbasic : surfaceCreated()
02-18 23:48:51.907 30161 30161 I glbasic : surfaceChanged()
02-18 23:48:51.907 30161 30161 I SDL     : pixel format RGB_565
02-18 23:48:51.907 30161 30161 I glbasic : Window size:929x1560
02-18 23:48:51.907 30161 30161 I glbasic : startApp, resume
02-18 23:48:51.907 30161 30161 I glbasic : startApp, resume 1
02-18 23:48:51.907 30161 30161 I glbasic : startApp, resume 4
02-18 23:48:51.907 30161 30200 I SDL     : ceateGLContext
02-18 23:48:51.907 30161 30161 I glbasic : hint screensize to glb
02-18 23:48:51.907 30161 30161 I glbasic : glb_notify_screen_size 929x1560
02-18 23:48:52.409 30161 30200 I glbasic : pause loop ended
02-18 23:49:04.560 30161 30161 I glbasic : OnPause()
02-18 23:49:04.574 30161 30200 I glbasic : pause loop in showscreen/hibernate
02-18 23:49:04.609 30161 30161 I glbasic : surfaceDestroyed()


4. Yes, I do. I removed the old one, and downloaded from the link you provided. (How can I check its version? In the chm file it says 2.8.)
I don't know what is SDL resolution. The phone reports 929x1560 every time.

Thank you!

EDIT: I read your inserted lines later. So after I commented out these lines, something happened: the lines are WAY FAR from my fingers now. The top left is OK, but when I approach the bottom left, they reach the screen edges much sooner than before.
#23
It was my mistake, I didn't notice an error message after compile, so I used an old apk. Now it really compiled to api 22:

package: name='com.adaz.antirock' versionCode='1' versionName='1.00' platformBuildVersionName='5.1.1-1819727'
install-location:'preferExternal'
sdkVersion:'10'
targetSdkVersion:'22'

But the same MOUSESTATE issue still extists :-(
#24
Thank you spacefractal and guys. I already compiled this code for Android 5.1.1, API level 22, so it should work as you said. But it doesn't :( Do you have an idea where that "bug" could be, maybe I can try to fix it?

EDIT:
It's strange:
"aapt dump badging" command says:

package: name='com.company.title' versionCode='1' versionName='1.00' platformBuildVersionName='5.1.1-1819727'
install-location:'preferExternal'
sdkVersion:'9'
targetSdkVersion:'19'

How can it be?
#25
Quote from: erico on 2018-Feb-18
This here is what I use:
http://www.glbasic.com/forum/index.php?topic=9848.0

Thanks erico, but I don't know what to do with that code, this is not about my problem. My problem is that my Huawei doesn't allow me to touch the bottom section at all, even if the software buttons are invisible.
Today I was able to try my test code on another phone, and it worked on that, but it has hardware buttons:(
I tried some other games on my Huawei, and they allowed me to touch the bottom section as well, so it IS possible somehow, but I still don't know what to do to achieve this.
#26
Thanks anyway dreamerman. As I said now I'd be happy with visible navigation bars (if nothing else works), but I cannot make them visible. Can you help in this?
#27
Thanks erico. It still does not work, I've tried everything I think.

Another try was to achieve somehow that the navigation bar be always visible. If it solved my problem, I'd be in peace with it. But I could not dissuade AE to hide the navigation bar. I cleared every flags from the SDLActivity.java (like View.SYSTEM_UI_FLAG_LAYOUT_STABLE, etc.), but the bar is still hidden... Do you have an idea for this?
#28
Ok Guys, here is an example project. It draws a horizontal line exactly where I touch the screen. But it is only true until I touch the bottom of the screen.

Code (glbasic) Select
GLOBAL mx,my,mb1,mb2

LOADFONT "Media/white.png",1
SETFONT 1

REPEAT
MOUSESTATE mx,my,mb1,mb2
IF mb1 THEN DRAWLINE 0,my,5000,my,RGB(255,255,255)
PRINT "TOUCH Y:"+my,200,0
SHOWSCREEN
UNTIL 0=1


(I attached the font (it has to be copied to Media folder), and I attached the compiled .apk as well.)

So, what I am experiencing is the following:

1. When I touch the very bottom (approx. 1 cm) of the screen on the phone, the white line does not appear.
2. When I begin to push my finger slowly upwards, the line appears at the very bottom (!!) of the screen. But my finger is already not there, my finger is approx. 1 cm upper than that.
3. When I continue to push my finger upwards, the line begins to approach my finger, and on the top it reaches it.

I don't know if it is understandable, or if you can regenerate this issue on your phones, so I'm very curious. Does it happen only on my phone, or it's a bug? (I have a Huawei P10)

Thank you very much!

EDIT: I already tried to disable Back button. The back button was really disabled, but that did not help as well...
#29
Quote from: spacefractal on 2017-Jul-09
Also some android devices reserve pixels for the onscreen buttons, which cannot covered up by the game for some devices. So here you will simply return the resolution that does not cover up the buttons. Fullscreen feature was added in Android 5 (or was its Android 6?), but its might not allways works. But not in Android 4.

Again, you need Android Extras and/or a least glbasic v14 with Android Extras for doing that.

Dear Space Fractal,
Can you please help in this? My device doesn't allow me to touch the very bottom of the screen. Is it because the virtual buttons bar? Can I somehow override it? I use api-22.

Thanks!

Adam
#30
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?
https://developer.android.com/training/system-ui/immersive.html

Can somebody help me please?