Author Topic: 0.12.13 Released  (Read 8361 times)

chrisws

  • Guest
0.12.13 Released
« on: September 13, 2018, 10:35:41 AM »
SmallBASIC 0.12.13 is now available.

There's not a huge list of changes, but a few nice things.

- Pressing F2 in the editor now loads the help page in the new web site.
- Pressing F11 now toggles full-screen mode.
- Fixed the SEQ bug

Plus some other changes you can read about here:

http://smallbasic.github.io/posts/2018-09-13.html

Cheers,
Chris

PS: Check my new android game "Air cave"



B+

  • Guest
Re: 0.12.13 Released
« Reply #1 on: September 13, 2018, 02:24:27 PM »
Ah good! Tested window sizing with Johnno's Parallax Image Test mod 2018-02-04 (attached) now mod'd again today.

Oh my full screen is full!, good bye task bar access. f2 works Window (help reference) is under graphics, I guessed System first.

« Last Edit: September 13, 2018, 02:27:42 PM by B+ »

B+

  • Guest
Re: 0.12.13 Released
« Reply #2 on: September 13, 2018, 04:02:41 PM »
Another test of Window .ask
Code: [Select]
' window ask test.bas SmallBASIC 0.12.13 (B+=MGA) 2018-09-13

w = window()
w.ask("Would you like to test a yes or no question?", "Test a Yes/No Question")
? "You selected ";
if w.answer then print "No." else print "Yes."
pause



chrisws

  • Guest
Re: 0.12.13 Released
« Reply #3 on: September 17, 2018, 10:54:43 AM »
Script BASIC using MsgBox.
I've just build the newest version from source on 32-bit Linux and it seems to work fine. :)

Hi Tomaaz,

If you are okay with building from source code there's something you might like to try:

1. clone or download the SmallBASIC plugins project:
$ git clone https://github.com/smallbasic/smallbasic.plugins.git

2.  build the plugins project
$ ./configure && make

3. setup environment variable SBASICPATH, something like this:
export SBASICPATH=/home/chrisws/src/smallbasic.plugins/nuklear/.libs

4. switch over to your SmallBASIC checkout, then
$ ./configure && make

5. Run the nuklear overview.bas sample:
./src/platform/console/sbasic ../smallbasic.plugins/nuklear/samples/overview.bas

You should see something like the attached image

Here's a link to the overview.bas program:
https://github.com/smallbasic/smallbasic.plugins/blob/master/nuklear/samples/overview.bas


« Last Edit: September 17, 2018, 11:01:04 AM by chrisws »

Tomaaz

  • Guest
Re: 0.12.13 Released
« Reply #4 on: September 30, 2018, 03:50:24 PM »
To be honest - I'm not scared of compiling from source, but I wouldn't say I'm a fan. ;) I will try. Is step 4 compiling SmallBasic itself or do I need to do all steps after I have SmallBasic already build?

Tomaaz

  • Guest
Re: 0.12.13 Released
« Reply #5 on: October 03, 2018, 06:07:53 PM »
Doesn't work, unfortunately:

Quote
Opened: overview.bas 3445 bytes


 * COMP-ERROR AT Main:0 *
Description:
Unit nuklear.sbu not found or wrong version


chrisws

  • Guest
Re: 0.12.13 Released
« Reply #6 on: October 26, 2018, 08:52:04 AM »
The error indicates the .so file (equivalent to .dll in windows) was not found in the environment variable SBASICPATH

Could you please try pasting this in the console/bash:

$ env | grep SBASICPATH

Then check to ensure this references the location of where you build the plugin code.

Tomaaz

  • Guest
Re: 0.12.13 Released
« Reply #7 on: October 26, 2018, 05:36:53 PM »
I was able to fix it. It works fine.

Tomaaz

  • Guest
Re: 0.12.13 Released
« Reply #8 on: October 26, 2018, 05:51:33 PM »
But I've tried other examples and it looks like there is something wrong with circle (see screenshot).

B+

  • Guest
Re: 0.12.13 Released
« Reply #9 on: October 27, 2018, 07:17:48 AM »
Looks like a poor test of DRAWPOLY what is code for that?

Tomaaz

  • Guest
Re: 0.12.13 Released
« Reply #10 on: October 27, 2018, 04:28:08 PM »
Code: [Select]
nk.circle("line", x + 130, y + 140, 110)

When I say "circle" I mean... circle.

B+

  • Guest
Re: 0.12.13 Released
« Reply #11 on: October 27, 2018, 05:17:13 PM »
Code: [Select]
nk.circle("line", x + 130, y + 140, 110)

When I say "circle" I mean... circle.

If you mean circle why does it say line?  ;D

Tomaaz

  • Guest
Re: 0.12.13 Released
« Reply #12 on: October 27, 2018, 05:32:50 PM »
You can change it to "fill" if you wish, but the resulting circle will be as bad. I thought you were SmallBasic expert here...

B+

  • Guest
Re: 0.12.13 Released
« Reply #13 on: October 27, 2018, 06:53:03 PM »
Well this "expert" thinks you are NOT showing all of the code sample.
Code: [Select]
rem adapted from love-nuklear example, see: https://github.com/keharriso/love-nuklear.git

import nuklear as nk
color rgb(128,54,0), 1
option predef grmode 304x304

while 1
  if nk.windowBegin("Draw Example", 2, 2, "100%", "100%") then
    [x, y, w, h] = nk.windowGetBounds()
    nk.line(x + 10, y + 40, x + 50, y + 40, x + 50, y + 80)
    nk.curve(x + 50, y + 80, x + 80, y + 40, x + 100, y + 80, x + 80, y + 80)
    nk.polygon("line", x + 100, y + 150, x + 60, y + 140, x + 70, y + 70)
    nk.circle("line", x + 130, y + 140, 50)
    nk.ellipse("fill", x + 30, y + 150, 20, 40)
    nk.arc("fill", x + 150, y + 80, 40, 3 * PI / 2, 2 * PI)
    nk.rectMultiColor(x + 95, y + 50, 50, 50, "#ff0000", "#00ff00", "#0000ff", "#000000")
    'nk.image(img, x + 120, y + 120, 70, 50)
    nk.text("DRAW TEXT", x + 15, y + 75, 100, 100)
  endif
  nk.windowEnd()
wend

« Last Edit: October 27, 2018, 07:11:34 PM by B+ »

Tomaaz

  • Guest
Re: 0.12.13 Released
« Reply #14 on: October 27, 2018, 07:09:22 PM »
I'm showing only the part I have problem with. Do you really think I'm not able to find which part is responsible for that "circle" on the screen? Please, give me some credit. The whole example (and two more) comes with SmallBASIC plugins project, so you can easily test it  yourself.