Recent Posts

Pages: 1 ... 8 9 [10]
Announcements / Re: New BETA
« Last post by dreamerman on 2021-Oct-20 »
ojoj :lol: Couple months away from GLB and I forgot such basic stuff ;/ Let's assume that there was no such question heh
New commands can help achieve some interesting font effects, will have to try them out someday :]
Announcements / Re: New BETA
« Last post by Kitty Hello on 2021-Oct-20 »
How about a SHOWSCREEN? ;)
Announcements / Re: New BETA
« Last post by dreamerman on 2021-Oct-19 »
Nice to see something new, may be usefully :]
I was playing around with some stuff and I think that latest versions have some curious bug :( if you use "SETLOOPSUB" for mail loop you can't move app window around (not fullscreen mode), and trying to do that will hang the process :/ Even this simple code will have such issue:
Code: (glbasic) [Select]
SETLOOPSUB "main_loop"

SUB main_loop:
  IF (KEY(01)) THEN END // if escape key then end app
When Debug is enabled you just can't move the window, but app will still work ok. When using do/loop as main loop with sleep there is no such problem. Checked on Windows 10 (didn't test on other pc, os version), can anyone verify that?
GLBasic - en / Re: Android Build Issues
« Last post by spacefractal on 2021-Oct-17 »
anyway its looks like we need to update the project to uses a least grandle plugin version 4.2.2 and grandle version 6.7.1 me think. We cannot no longer uses a older grandle version, because its wont download the required NDK automatic.

Also you need to add a android:exported="true" under the <activity android:name="SDLGlbasic" in AndroidManifest.

Im havent checked yet, so no idea what its coming up with errors.

Currectly im got it compiiled, but still does not launch (crash out).....
GLBasic - en / Re: Android Build Issues
« Last post by spacefractal on 2021-Oct-17 »
ioh no. Newer Android Studio has broken thing again. This is why im gave up Android as well iOS in first  time!

Currectly im cannot get android Studio working fully. one major block is Android Studio is so stupid programmed as its cant uses usernames with a space... ahhhh. so im can not countinue and will wait a another day. Android Studio is uninstalled again.

Im also not want to reinstalle the whole windows one time due this crappy issue.

Also what im found up until im uninstalled is JCENTER() is depreacted in (but they well keep it as read only in the future), but cause issues when removed it. ALso both grandle and grandle plugin is require to uses a newer version than that we uses or the NDK would not been downloaded and installed at all! Last time im tried its, its caused various compiler issues.

So its a another crappy cat vs mouse game again. That is why im in first place also gave up android as well.

IF im cannot get Android Studio to installed a another place without requireng to uses the username by default, then im cannot do anything at all. Its a very crappy issue.

EDIT: its ANDROID SDK that should not been installed in a username with a space. its dont like it and should have warn about it in first place.
Code Snippets / Re: Load data from memory
« Last post by bigsofty on 2021-Oct-15 »
Interesting, thanks Gernot  :good:
GLBasic - en / Re: Android Build Issues
« Last post by MrPlow on 2021-Oct-15 »

I know your busy but some file issues on android builds i need to fix...

Can you advise where to put Android.xcl file to prevent overrites?

Also is just deleting jni folder required before a rebuild with newer files?
Or do i need to remove another folder too?

Code Snippets / Re: Load data from memory
« Last post by Qedo on 2021-Oct-15 »
Thanks Gernot for this very very interesting secret.  :good:
I will try to apply it to my custom shoebox where I save and reload some files.
Code Snippets / Load data from memory
« Last post by Kitty Hello on 2021-Oct-14 »
I tell you a secret. GLBasic can load data from a memory buffer, as if it was a file. With the attached code, you can use the contents of a string to "read" it as a file. This should work for about everything. Sprites, sounds, binary files, ...

Code: (glbasic) [Select]

LOCAL mem$ = "Hello World"
LOCAL memlen = LEN(mem$)

LOCAL file$ = MemMakeFile$(mem$)

LOCAL text$
OPENFILE(1, file$, TRUE)
READSTR 1, text$, 64
STDOUT text$ + "\n"


extern "C" {int sprintf(char *str, const char *format, ...); }

FUNCTION MemMakeFile$: BYREF data$, nofBytes = -1
IF nofBytes < 0 THEN nofBytes = LEN(data$)
LOCAL url$
LOCAL hx$ = RIGHT$("0000000000000000" + HEX$(nofBytes), 8)
void* address = &data_Str[0];
char buffer[64];
sprintf(buffer, "%x", address);

url_Str = CGStr("mem://") + hx_Str + CGStr(".") + CGStr(buffer);

GLBasic - en / Re: Android Build Issues
« Last post by MrPlow on 2021-Oct-06 »
Thanks SF,
In terms of the src file changes that affect the Android builds - are the android templates src files version controlled so that older files or rollbacks can be obtained if required?

Can advance notice be made on the updates so I dont suddenly build any broken versions :)

I do normally test the apps - but things like controller setups etc. wouldnt be tested each time.
Pages: 1 ... 8 9 [10]