Recent Posts

Pages: [1] 2 3 ... 10
1
GLBasic - en / Re: Android Studio error in creating app.
« Last post by MrPlow on 2022-May-20 »
@MrPlow,

Thank you for your support.
Regarding the commented out code.
Where is it in?

SDLActivity.java file under org.libsdl.app folder under java folder

I also gave someone on this forum, my version of my working JNI folder - as they were having errors creating with the newer default app > jni folder files...

2
Off Topic / Re: Covid
« Last post by bigsofty on 2022-May-20 »
Thanks buddy, we're much better now. The only real lingering problem has been my hands, still a bit weak, opening the odd jar lid can defeat me now. But on the whole we're much better.

Good to have you back MrPlow!  :good:
3
GLBasic - en / Re: Android Studio error in creating app.
« Last post by D2O on 2022-May-19 »
@MrPlow,

Thank you for your support.
Regarding the commented out code.
Where is it in?
4
Off Topic / Re: Covid
« Last post by MrPlow on 2022-May-18 »
Man!!! So sorry to hear - I have been away from my gamedev for a while - just getting back now - just checking the forum and notice this...Hope all is getting better...

Hopefully you will be 100% again soon!!

5
GLBasic - en / Re: Android Studio error in creating app.
« Last post by MrPlow on 2022-May-18 »
Hi, i also managed to create an Android aab bundle with minsdk 23 and targetsdk 30

Wouldn't work but found a solution...

to edit the SDLActivity code - comment out the return command like below and add return library;

Code: (glbasic) [Select]
protected String getMainSharedObject() {
        String library;
        String[] libraries = SDLActivity.mSingleton.getLibraries();
        if (libraries.length > 0) {
            library = "lib" + libraries[libraries.length - 1] + ".so";

        } else {
            library = "libmain.so";
        }
        return library;
        //return getContext().getApplicationInfo().nativeLibraryDir + "/" + library;

    }
6
im have allready flagged this bug as not a glbasic bug, so im will close this typic.
7
GLBasic - en / Re: Save a TYPE array object
« Last post by MrPlow on 2022-May-16 »
Thanks Hardyx

That looks like a possible solution for me.... :good:
8
There should be option to add GLB/project path to exclude/ignore category so you won't be bothered by this again.
It's happening to many dev tools, such AV sandboxes/capture/heuristic systems runs app in restricted environment, when it check that app isn't malicious it gets restarted with all rights, the issue is that after compilation such app is flagged as new entry so it needs to go through this procedure again.
9
Bug Reports / Re: starts twice in the newest SDK?
« Last post by spacefractal on 2022-May-15 »
today im noticed its actuelly a intefering with a antivirus. etc more precision avg cybercapture, which did only shows when you move it.... wierd as im allways have used it long time.

So not a real editor bug, just annoying intefere and no way to check it really, so im make it not a glbasic bug.
10
GLBasic - en / Re: Save a TYPE array object
« Last post by hardyx on 2022-May-13 »
I propose a solution based in Java class saving/loading, adapted to GLBasic TYPEs. Each type knows how to manage their data and a parent type (like an array or list), calls the loading or saving functions of the elements. Add functions to your TYPEs to save/load a single element to the file, and do the saving/loading loop in the parent list TYPE. Open the file from the container TYPE or array and pass the file channel to each element of the list.

Code: (glbasic) [Select]
TYPE MyType
  a%=5
  b%=8
  name$="Hans"

  // assign properties
  function Init: _a%, _b%, _name$
      self.a = _a
      self.b = _b
      self.name$ = _name$
  endfunction

  // write element to file
  // file must be opened for write
  function SaveToFile: file%
      writeword file, self.a
      writeword file, self.b
      writeline file, self.name$
  endfunction

  // load the element from file
  // file must be opened for read
  function LoadFromFile: file%
      readword file, self.a
      readword file, self.b
      readline file, self.name$
  endfunction

ENDTTYPE

// declare list of TYPEs
local mylist[] as MyType
dim mylist[3]

// fill mylist with elements
mylist(0).Init(1, 22, "Fist")
mylist(1).Init(2, 33, "Second")
mylist(2).Init(3, 44, "Third")

// save the list to a file
Openfile(1, "mylist.dat", FALSE)

For elem in list[]
   elem.SaveToFile(1)
Next

Closefile 1
Pages: [1] 2 3 ... 10