Recent Posts

Pages: [1] 2 3 ... 10
1
GLBasic - en / Re: Android Build Issues
« Last post by spacefractal on Yesterday at 08:04 PM »
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).....
2
GLBasic - en / Re: Android Build Issues
« Last post by spacefractal on Yesterday at 06:37 PM »
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 grandle.build (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.
3
Code Snippets / Re: Load data from memory
« Last post by bigsofty on 2021-Oct-15 »
Interesting, thanks Gernot  :good:
4
GLBasic - en / Re: Android Build Issues
« Last post by MrPlow on 2021-Oct-15 »
SF,

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?

Thks
5
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.
6
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
CLOSEFILE 1
STDOUT text$ + "\n"
KEYWAIT

FUNCTION foo:
ENDFUNCTION

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


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

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


RETURN url$
ENDFUNCTION
7
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.
8
GLBasic - de / Re: Fehlermeldung bei DIM
« Last post by Worebu on 2021-Oct-01 »
ah, ok.Danke
9
GLBasic - en / Re: Access to Buffer Data ?
« Last post by Schranz0r on 2021-Sep-30 »
I ordered a Strato HiDrive account and will set up a Git repository. So we can use Git to act together. But, I failed to clone it. Maybe my work-configuration messes with the private account... I'll have to see.

Oh nice, hopefully you get it running.
Let us know :)
10
GLBasic - en / Re: Access to Buffer Data ?
« Last post by Kitty Hello on 2021-Sep-30 »
I ordered a Strato HiDrive account and will set up a Git repository. So we can use Git to act together. But, I failed to clone it. Maybe my work-configuration messes with the private account... I'll have to see.
Pages: [1] 2 3 ... 10