Very Alpha Port Of Sdlbasic Available


ivanixgames

Still Fresh
Joined
Dec 17, 2006
Messages
28
Hello all,

Someone mentioned a request for sdlbasic port.
I took a look at sdlBasic and was impressed with what it has for gaming.

I did a quick (actually to all day) port of the sdlBasic runtime engine.
Binaries and sample files only at the moment.


Alpha port of the SDL Basic runtime engine.
url: http://www.sdlbasic.altervista.org/main/

Notes:


a) Alpha only. Should from within a shell console --not through gp2
x menu as most the runtime engine displays erros at end of run and e
xpects keyboard intervention.


B) copy myfont.ttf over to /mnt/sd/.
some samples will require it.

c) to run sample:

1. cd into directory containing sample
2. ./sdlBrt sample.sldbas
3. Kill with Control-C or poweroff gp2x if hang :)
Using HW accel SDL Lib 1.2.9

Known bugs:
- runtime gets unexpected char at EOF. requiring manual intervention
- Double Buffer disabled - causes segmentation fault
- getLocalIP displays ip string backwards, endian issue.
- Many more need beta testers to help find.
- Need joystick button handling routine written in sdlbasic to make usable apps
 
This version of the sdlbasic runtime has gpx joystick constants defined and sample file
Just drop and replace binary
 
This is pretty cool. I hadn't heard of sdlBasic before this, so I checked it out. I'm a fan of Blitz Basic on the PC, and I was mightily chuffed to discover one of the examples on the site was a port of a demo done in Blitz! That'll make my evaluation of it a lot smoother. :)

I watch this development with much interest...
 
sdlbasic for gp2x update

binary too big for posting, so get it at

http://www.ivanix.com/down/sdlbasic4gp2x0415.tar.gz


Using HW accel SDL Lib 1.2.9

Issues:

- runtime gets unexpected char at EOF. requiring manual intervention
Should be fixed. parser didn't know what to do with ascii(255) code.

- Double Buffer more or less working now, well at least no seg faults.
However text to screen sometimes gets garbled. so disabled by default
to enable use mode=3 when calling setDisplay. i.e. SetDisplay(320,200,16,3)

- getLocalIP displays ip still shows string backwards, endian issue i think.

- the following joystick button events defined:
"gp2x_north",
"gp2x_northwest",
"gp2x_west",
"gp2x_southwest",
"gp2x_south",
"gp2x_southeast",
"gp2x_east",
"gp2x_northeast",
"gp2x_center",
"gp2x_voldown",
"gp2x_volup",
"gp2x_a",
"gp2x_b",
"gp2x_x",
"gp2x_y",
"gp2x_start",
"gp2x_select",
"gp2x_topleft",
"gp2x_topright"

- Debugger disabled.
due to lack of keyboard and limited screen size,
use of the debugger is somewhat impractical. so sdlBrt now exits after sending
any error messages to stderr.

- Png, jpeg and tiff files should now load instead of seg fault.




snapshot of gp2x source changes to sdlBrt (sdlbasic runtime engine)

http://www.ivanix.com/down/sdlBrt4gp2x-0415.tgz
 
Hmm, there seems to be a memory leak in the sdl runtime.
I've compiled the latest code from the cvs on sourceforge and the bug still seems to be there. Not specific to the gp2x port as it also occurs on my linux workstation.
 
sdlBasic was bleeding memory like a hemophiliac. Had to perform some major triage. I think she is stable now.

Get the latest at http://www.ivanix.com/down/sourcesX2-0421.tar.gz

The sources include compiled binary for gp2x and the latest iso demo sample with gpe shell script.
to try on the gp2x, just copy the folders sourcesX2/gp2x and sourcesX2/isodemo onto an SD card.
Then browse the isodemo folder and select iso.gpe through the gp2xmenu.

Feedback appreciated.

Cheers.
 
P-J said:
Hiya. Is this project still active, and have you had any feedback from it? This thread looks a bit bare...
Just want to give everyone an update that the basic port has been done and has been merged into the new branch of SdlBasic, called Actarus. You can find the latest news and code over at http://www.sdlbasic.altervista.org/main/index.php.

We really would appreciate feedback from the community as it will help improve the code.
Future plans include adding sqlite API and maybe even Cairo.
 
Last edited by a moderator:
Wow, thanks :)

I have replied to your PM with one suggestion, but I thought I'd post it here.

When you press the volume control switch in on the GP2X, it halts the program execution and drops into the debugger. Is there any way to disable this behaviour, or is it possible for you guys to add a command or something to stop it? If it happens to an end user whilst playing a game they will presume it has crashed :(

Any help there much appreciated. I will post all the code I've worked on for others here so they can use it too.
 
Back
Top