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 - hardyx

#1
I'm sorry to hear this. My wife deceased nine years ago. Videogames, series, programming and talking to friends helped me a lot. Try to look ahead and take care.
#2
Quote from: spacefractal on 2023-Mar-02Now im have 4 projects online, still missing 2:
https://spacefractal.itch.io/
I tested some games (Greedy Mouse, Spot Race, PowerUp Elevation) in Firefox version 102.13.0.esr and all works Ok. The sound is a bit loud in some, like you said. I'm impressed with your fixes to GLBasic HTML5. Greedy Mouse is art.
Thanks for the updates.  :booze:
#3
Quote from: MrPlow on 2023-May-15Hi Dreamerman!
My AV BitDefender doesnt like the steam gbas files when trying to compile...
strip.exe fails on output.obj
Any ideas?
This may be a problem with your AV because new exe files are generated. Try to add an exception in the folder where you have the GLB projects or the output folder.
P.S. strip.exe is the compiler tool that removes debug info in executables.
#4
Thank you!!
#5
Quote from: loftcat on 2022-Sep-26
...
Good guide for GLB HTML5, is good to know all this things.
You can download Python in the offlicial page too, but I think in MS Store is easier for begginers.
https://www.python.org/downloads
#6
In the GLB page of your Steam library you can see the updates in detail, or you can see in this page.

https://store.steampowered.com/news/app/819510?updates=true

Update notes translated to English:

- MEM2FONT, FONT2MEM
New commands: MEM2FONT, FONT2MEM
5 jul 2021

- New update
Mostly bug fixes with Shoebox and the editor.
15 jun 2021

- New Release
Win32: Fixed mouse wheel MOUSEAXIS(2) for SYSTEMPOINTER FALSE
HTML5: Platform now available on STEAM.
13 mar 2021

- Bugfixes
Editor: Bugfix for loading older project files (examples ...)
Core: Shoebox re-implemented. You have to recreate the SBX files!
13 mar 2021

- Autocomplete for TYPEs
The new update features autocomplete for TYPE members in editor.
10 ago 2019
#7
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

#8
Off Topic / Re: Covid
2022-Apr-08
Best wishes to you Bigsofty, take care and I hope you are better now.
In my hometown there was a clear zone used for emergency helicopters but they build a big supermarket there.
(the money, you know)
#9
Wow, this is very cool for creating data at runtime using the "mem://" protocol.
:booze:
#10
WOW, you simulator is amazing!! Your work is enormous and very useful to study the gravity in the Universe.
Thanks for the good work and long life to GLBasic.  :booze:
#11
I think you can use Win32 functions declaring with the IMPORT command and calling.

Code (glbasic) Select

// If the hCursor is NULL, the cursor is removed from the screen.
IMPORT "C" void* __stdcall SetCursor(void* hCursor)

// hide windows cursor
SetCursor(0)

#12
Happy new Year!! We hope this year will be better than 2020.
#13
¿Do you need multi instances for opening many GLB projects at once? I never opened two projects at once.
I think must be a Steam requirement, because the launcher is an application manager.
#14
Very cool game and funny Erico, I like the palette you selected and the GB style.
#15
Quote from: Bluepixel on 2019-Dec-11
@Ian Price
Thanks a lot! :nw:
I will soon be getting a WIZ and seeing if I can get this all to work, I am wondering however, is there anything I need to keep in mind
when compiling to the WIZ? Or is it just like creating a desktop application? O_O

This is the help for compiling for other platforms:
https://www.glbasic.com/xmlhelp.php?lang=en&id=254&action=view

When compiling for Wiz or Caanoo, you must to know that the screen is 320x200 only and you must to use small amount of memory (48 MB). This includes images (sprites) and preloaded sounds effects. The buttons are managed like special keys. The touch screen is managed like the mouse.

You can use the button key codes here:
https://www.glbasic.com/xmlhelp.php?lang=en&id=46&action=view

For compiling for Wiz, you must to use the red bucket button (build multiplatform) and select the platform. Then your GLB code will be compiled and a distribution folder will be created with the executable (.gpe) and the resources you must to copy to the console SD card. Then with the Wiz explorer you can to execute your own games and programs.

Happy coding