Modules

Started by chrisws, November 01, 2020, 02:27:04

Previous topic - Next topic

round157

Quote from: chrisws on January 16, 2021, 03:16:30
Quote from: round157 on January 13, 2021, 00:11:37
Quote from: chrisws on January 09, 2021, 10:36:54
I've uploaded version 12.20 for Windows (64 bit only).

Oh, 32-bit Windows is used in my main computer. Will a 32-bit version 12.20 be released in the near future?

Here is the 32-bit package of builds, please let me know if you find any issues



There is a sub-folder called "modules". Many examples are in this folder but I don't know how these examples can be run properly. How to properly run them? Thanks.

chrisws

To run the module examples you need to open CMD.EXE and then use the console version sbasic.exe.

Even though the DLLs are in the same folder (after unzipping) you need to tell sbasic.exe where to find these at startup.

There are two ways to do this:

1. Using the -m command line argument, for example:

sbasic.exe -m . samples/modules/text_writing_anim.bas

2. setting the SBASICPATH environment variable:

SET SBASICPATH=c:\sb
sbasic samples/modules/text_writing_anim.bas

Once you get this working you could put the commands in a batch file and run it from explorer.

Hope you can see something running.

round157

Quote from: chrisws on January 24, 2021, 04:57:49


Hope you can see something running.

Hi, errors appeared.

The error message:

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

Actually, only raylibc.sbu and raylibc.bas are in 12_20 folder.




chrisws

Quote from: round157 on January 26, 2021, 10:52:31
Quote from: chrisws on January 24, 2021, 04:57:49


Hope you can see something running.

Hi, errors appeared.

The error message:

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

Actually, only raylibc.sbu and raylibc.bas are in 12_20 folder.

In the 12_20 folder, what happens if you type this:

12_20>sbasic.exe -m . examples\modules\text_format.bas

If that works, try:

12_20>sbasic.exe -m . examples\modules\overview.bas

Also, maybe try deleting the raylibc.sbu file


round157

Quote from: chrisws on January 27, 2021, 10:08:22


In the 12_20 folder, what happens if you type this:

12_20>sbasic.exe -m . examples\modules\text_format.bas

If that works, try:

12_20>sbasic.exe -m . examples\modules\overview.bas

Thanks for providing the above hint. Now all the examples files of the modules folder can be run without any problem.

Quote
Also, maybe try deleting the raylibc.sbu file

Moreover, don't need to delete the above file.

round157

Hi...

A question about: sbasici.exe(the editor), sbasicg.exe(SDL version) and sbasic.exe(console version).

sbasici.exe can be used with sbasicg.exe but sbasici.exe cannot be used with sbasic.exe. If sbasici.exe can be used with sbasic.exe(a switch) as well, SmallBASIC user will not need to test .bas file via command prompt(nor use .bat file). Is it possible to make a switch in sbasici.exe for user to select sbasicg.exe or sbasic.exe?