Recent Posts

Pages: 1 ... 8 9 [10]
91
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 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.
92
Code Snippets / Re: Load data from memory
« Last post by bigsofty on 2021-Oct-15 »
Interesting, thanks Gernot  :good:
93
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
94
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.
95
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
96
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.
97
GLBasic - de / Re: Fehlermeldung bei DIM
« Last post by Worebu on 2021-Oct-01 »
ah, ok.Danke
98
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 :)
99
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.
100
GLBasic - en / Re: Access to Buffer Data ?
« Last post by Schranz0r on 2021-Sep-30 »
There is a way to link it static.
No clue how, maybe we can just use the source?
Sure, why not use it as default :)

SoLoud C-API:

Quote
Using the "C" API
The glue file soloud_c.cpp can be found under the "src/c_api" directory.

You can either link to the generated DLL, which exposes the "C" API, or you can include SoLoud C++ sources (or static library) to your project along with the soloud_c.cpp file.

In your C sources, include soloud_c.h header file.
Pages: 1 ... 8 9 [10]