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.


Messages - Support

Pages: [1] 2 3 ... 57
1
Documentation / ScriptBasic Support
« on: January 02, 2021, 11:09:09 am »


The ScriptBasic (MIT Common License) open source project is maintained by John Spikowski. (Peter Verhas - original author) I'm a senior developer offering affordable programming support for ScriptBasic, Sage 100 and Quickbooks accounting packages.


EMAIL: support@scriptbasic.org
LINKEDIN: John Spikowski
PHONE/TEXT: 360-941-0452
LOCATION: Anacortes, WA USA


2
What's New / Re: ScriptBasic - Raspberry Pi
« on: April 01, 2019, 05:20:21 am »
Attached are the extension modules and dependencies need for the bbc and gfx extension modules. These extensions only work with the DEB install at this time.

One must install the SDL 1.2 and SDL_gfx 1.2 runtime libraries.

sudo apt-get install libsdl1.2debian-1.2.15+dfsg1-4+rpt2
sudo apt-get install libsdl-gfx1.2-5-2.0.25-5

BBC
1. unzip the bbc.zip file in a temp directory
2. sudo cp bbc.so /usr/local/lib/scriba/
3. sudo cp bbc.bas /usr/local/include/scriba/
4. sudo cp libbbc.so /usr/lib/


SDL_gfx
1. unzip the gfx.zip file in a temp directory
2. sudo cp gfx.so /usr/local/lib/scriba/
3. sudo cp gfx.bas /usr/local/include/scriba/

Use the ScriptBasic example code posted in this thread to test your installation.

3
What's New / Re: ScriptBasic - Raspberry Pi
« on: April 01, 2019, 05:19:03 am »
This shows some of the SDL_gfx graphic primitives.

' SDL_gfx Demo

IMPORT gfx.bas

screen = gfx::Window(700, 600, "ScriptBasic GFX Demo - Raspberry Pi")
gfx::pixelRGBA(screen, 10, 15, 255, 255, 255, 255)
gfx::lineRGBA(screen, 20, 10, 70, 90, 255, 0, 0, 255)
gfx::trigonRGBA(screen, 500, 50, 550, 200, 600, 150, 0, 255, 255, 255)
gfx::filledTrigonRGBA(screen, 200, 200, 300, 50, 400, 200, 0, 0, 255, 255)
gfx::rectangleRGBA(screen, 10, 300, 100, 380, 0, 255, 0, 255)
gfx::boxRGBA(screen, 210, 76, 325, 300, 255, 0, 0, 150)
gfx::ellipseRGBA(screen, 600, 400, 50, 90, 255, 255, 0, 200)
gfx::filledEllipseRGBA(screen, 600, 400, 25, 150, 0, 255, 0, 255)
x[0] = 350
x[1] = 275
x[2] = 300
x[3] = 325
x[4] = 350
x[5] = 400
y[0] = 325
y[1] = 325
y[2] = 390
y[3] = 390
y[4] = 375
gfx::polygonRGBA(screen, x, y, 6, 255, 255, 255, 155)
s[0] = 400
s[1] = 450
s[2] = 450
s[3] = 425
s[4] = 300
t[0] = 400
t[1] = 410
t[2] = 450
t[3] = 425
t[4] = 500
gfx::filledPolygonRGBA(screen, s, t, 5, 255, 0, 255, 155)
gfx::Update
WHILE gfx::KeyName(1) <> "+escape"
WEND
gfx::Close
 

4
What's New / Re: ScriptBasic - Raspberry Pi
« on: April 01, 2019, 05:17:41 am »
For those not into the retro BBC BASIC graphics primitives, I ported the SDL_gfx extension module to the Raspberry Pi.

' ScriptBasic GFX - Alpha Circles

IMPORT gfx.bas

scrn = gfx::Window(640, 480, "ScriptBasic GFX - Alpha Circles - Raspberry Pi")
' Random Value Arrays
RANDOMIZE(gfx::Time())
FOR i = 0 TO 512
  rx[i] = RND() % 640
  ry[i] = 60 + RND() % 480 - 80
  rz[i] = RND() % 64
  rr[i] = RND() AND  255
  rg[i] = RND() AND  255
  rb[i] = RND() AND  255
  af = rx[i] / 640
  ra[i] = INT(255 * af)
NEXT

ts = gfx::Time()
FOR i = 0 TO 512
  gfx::filledCircleRGBA scrn, rx[i], ry[i], rz[i], rr[i], rg[i], rb[i], ra[i]
NEXT
te = gfx::Time()
gfx::stringColor scrn, 20, 15, "Time: " & FORMAT("%.4f",(te-ts)/1000) & " Seconds." & CHR(0), 0xffffffff
gfx::Update
WHILE gfx::KeyName(1) <> "+escape"
WEND
gfx::Close
 

5
What's New / Re: ScriptBasic - Raspberry Pi
« on: April 01, 2019, 05:16:30 am »
Finally the graph example. Hopefully other BBC BASIC fans will contribute examples as well.

' Graph Demo

IMPORT bbc.bas

CONST SDLK_ESCAPE = 27

BBC::OPEN "ScriptBasic BBC graphdemo - Raspberry Pi"
t1 = BBC::TIME()
BBC::MODE 31
BBC::ORIGIN 800, 600
xlow = -10
xhigh = 10
ylow = -10
yhigh = 10
depth = 10
xscale = 30
yscale = 12
c = -4000

FOR x = xlow TO xhigh
  BBC::MOVE xscale * (x + ylow), yscale * (ylow - x) + c / (x * x + ylow * ylow + depth)
  FOR y = ylow TO yhigh
    BBC::DRAW xscale * (x + y), yscale * (y - x) + c / (x * x + y * y + depth)
  NEXT
NEXT
FOR y = ylow TO yhigh
  BBC::MOVE xscale * (xlow + y), yscale * (y - xlow) + c / (xlow * xlow + y * y + depth)
  FOR x = xlow TO xhigh
    BBC::DRAW xscale * (x + y), yscale * (y - x) + c / (x * x + y * y + depth)
  NEXT
NEXT
t2 = BBC::TIME()
t3 = (t2 - t1) / 1000
BBC::OFF
BBC::VDUSTR "Time: " & FORMAT("%.4f", t3) & " seconds."
WHILE BBC::GETKEY(1) <> SDLK_ESCAPE
WEND
BBC::CLOSE
 

6
What's New / Re: ScriptBasic - Raspberry Pi
« on: April 01, 2019, 05:15:30 am »
Here is the Fren example.

' Fern

IMPORT bbc.bas

BBC::OPEN "ScriptBasic BBC fern - Raspbery Pi"
t1 = BBC::TIME()
BBC::MODE 31
BBC::ORIGIN 200, 100
BBC::OFF
BBC::GCOL 0, 10
x = 0
y = 0
FOR i = 1 TO 80000
  r = BBC::RND(1)
  IF r <= 0.1 THEN
    a = 0
    b = 0
    c = 0
    d = 0.16
    e = 0
    f = 0
  END IF
  IF r > 0.1 AND r <= 0.86 THEN
    a = .85
    b = .04
    c = -.04
    d = .85
    e = 0
    f = 1.6
  END IF
  IF r > 0.86 AND r <= 0.93 THEN
    a = .2
    b = -.26
    c = .23
    d = .22
    e = 0
    f = 1.6
  END IF
  IF r > 0.93 THEN
    a = -.15
    b = .28
    c = .26
    d = .24
    e = 0
    f = .44
  END IF
  newx = a * x + b * y + e
  newy = c * x + d * y + f
  x = newx
  y = newy
  BBC::MOVE 600 + 96 * x, 32 + 96 * y
  BBC::DRAW 600 + 96 * x, 32 + 96 * y
NEXT i
t2 = BBC::TIME()
t3 = (t2-t1)/1000
BBC::VDUSTR "Time: " & FORMAT("%.4f",t3) & " seconds"
BBC::WAITKEY
BBC::CLOSE
 

7
What's New / Re: ScriptBasic - Raspberry Pi
« on: April 01, 2019, 05:14:08 am »
I was able to get the BBC BASIC graphics extension module working on the Raspberry Pi.

' UFO

IMPORT bbc.bas

BBC::OPEN "ScriptBasic BBC UFO - Raspberry PI"
t1 = BBC::TIME()
BBC::MODE 31
BBC::ORIGIN 800, 600
xs = 2
ys = 2
BBC::GCOL 0, 14
BBC::OFF
a = 700
b = A * A
c = 600
FOR x = 0 TO a STEP xs
  s = x * x
  p = SQR(b - s)
  FOR i = -p TO p STEP 6 * ys
    r = SQR(s + i * i) / a
    q = (r - 1) * SIN(24 * r)
    y = INT(i / 3 + q * c)
    IF i = -p THEN
      m = y
      n = y
    END IF
    IF y > m THEN m = y
    IF y < n THEN n = y
    IF m = y OR n = y THEN
      BBC::PLOT 69, NOT(x), y
      BBC::PLOT 69, x, y
    END IF
  NEXT
NEXT
t2 = BBC::TIME()
t3 = (t2 - t1) / 1000
BBC::OFF
BBC::VDUSTR "Time: " & FORMAT("%.4f", t3) & " seconds."
WHILE BBC::KEYNAME(1) <> "-escape"
WEND
BBC::CLOSE
 

8
What's New / ScriptBasic - Raspberry Pi
« on: March 30, 2019, 09:25:38 pm »
I'm pleased  to announce a release of ScriptBasic for the Raspberry Pi. You can do a traditional install with a .deb file or as an AppImage

This version of the binaries do NOT work on the Raspberry Pi Zero.
(Requires ARM v7 or greater)

DEB Install:

sudo apt install ./scriptbasic-2.1-linux-armhf.deb
DEB Uninstall:

sudo apt remove scriptbasic-2.1-linux-armhf
To run a script use scriba <script nane> when using the DEB Install.

To use the AppImage version ScriptBasic, unzip the file in the /usr/local/bin (or a directory in the system path) and use sb <script_name> to run your scripts. To remove ScriptBasic, remove the sb file.

I have added scriptbasic-rpi-zero.deb as an attachment. This version will run on ALL versions of the Raspberry Pi where the scriptbasic-2.1-linux-armhf.deb and AppImage versiosn will only run on the ARM v7 versions of the boards. The same instructions apply just change the name of the .deb file.


ScriptBasic User and Developer Guides

Most of the ScriptBasic development activity is happening on the All BASIC Forum.

Language Features
  • Tradional BASIC syntax
  • Variant style variables (no definition or declaration  needed)
  • Indexed, associative arrays (or combo of both) no practical limits
  • Muilt-threaded - asynchronous / synchronous execution
  • Unlimited seamless expansion via the extension API
  • Embeddable API
  • Footprint less than 800 KB
  • Runs on everything with a single source tree (written in ANSI C)
  • Application proxy web server that runs ScriptBasic code
  • Cascading pre-processor support
  • Debugger with single step execution, break points and more

Extension Modules
  • libcurl + SSL
  • MySQL
  • SQLite
  • ODBC
  • json
  • XML
  • regex
  • CGI
  • zlib
  • SBT - thread support
  • IUP - cross platform portable GUI
  • SDL_gfx graphics primatives with alpha channel support
  • BBC BASIC graphic library
  • more ..

Free - Open Source - MIT License

Raspberry Pi Downloads Attached

9
What's New / Re: Script BASIC Wiki
« on: August 18, 2018, 04:00:00 am »
I'm looking for a good Mediawiki template that works well with a programming language. The wiki uses the same syntax highlighting engine this forum uses.


10
What's New / Script BASIC Wiki
« on: August 14, 2018, 11:33:53 pm »
I have updated the Script BASIC Wiki to the latest version of Mediawiki. (what runs Wikipedia)

Direct Link
https://scriptbasic.org/wiki

I plan to document the Script BASIC COM extension module in the updated wiki. The wiki has been a resource I have neglected for some time.  :(


11
Download / Re: Script BASIC Windows 32 bit Inno Install
« on: August 12, 2018, 12:12:29 am »
I have a thread going on COM 64 on the https://oxygenbasic.org/forum showing a VB6 form interacting with SB.

12
Download / Re: Script BASIC Windows 32 bit Inno Install
« on: August 11, 2018, 05:32:31 pm »
If you like VB6 for your UI, the Script BASIC COM/OLE automation extension module supports saving forms as OCX controls. VB6 does callbacks to SB functions for processing.

An alternative to IUP on Windows.

13
Download / Re: Script BASIC Windows 32 bit Inno Install
« on: August 10, 2018, 04:30:48 am »
Quote
Brilliant string handling, fast and free

I agree and I think the array support is just as outstanding.

14
Download / Re: Script BASIC Windows 32 bit Inno Install
« on: August 09, 2018, 03:16:25 am »
It would be great to hear from others that tried Script BASIC for Windows 32 bit.

The feedback I'm looking for is how do you use Script BASIC. Console utilities / scripts, web programming or desktop GUI apps using IUP?

Which OS do you use as your primary development platform?

What do you likie best about Script BASIC?

15
Download / Re: Script BASIC Windows 32 bit Inno Install
« on: July 14, 2018, 05:45:58 pm »
Thanks for the feedback. No speedup improvements I'm aware of. A user on the thinBasic forum mentioned a problem with saving from the IDE. I don't use the SB IDE for editing so that must be how I missed it.

Update:

SAVE seems to be working. What is needed is a Save As option. Next release.

Pages: [1] 2 3 ... 57