Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

On the second error, you need to compile the program before you run it. First of all, if you are using geany then make sure you ran the rcbasic_geany_config.sh script. You will need to close geany and restart it. After that, whenever you open a *.bas file you can compile it from the Build menu in geany.

Alternatively you can open a terminal in the same folder as the *.bas file and type this"

rcbasic_build name_of_your_file.bas

This will compile your program to a *.cbc file.  After that you can run it with this:

rcbasic name_of_your_file

You don't need to include the cbc extension, rcbasic will automatically load a cbc file with that name if no extension is given.


As for your Init Error, that seems to be an issue with SDL2 failing to initialize its graphics subsystem.  Make sure you have your graphics drivers updated and try it again and let me know if it is still giving you problems.

Hi noobCode!!

Thanks for your quick response.

The Print output is working, but the SDL2 initialising is still failing:

Init Error: No available video device

I’m using a lotta SDL2 applications, every one works fine, only RCBasic is crashing, so I think it may be a version conflict issue. I‘m using SDL2 2.0.14 – any known issue with this version?

There shouldn't be. Are you using 64-bit Ubuntu?

Yep: GNU/Linux 5.10.32-051032-generic x86_64, Ubuntu 20.04 LTS.

fish-3.1> env PAGER=cat dpkg -l libsdl2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-===========================================================================================================================================================================================
ii  libsdl2        2.0.14       amd64        Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.

I am going to install Ubuntu 20.04 and see if I can reproduce your issue.

Okay, thank you very much!!

I have tried installing it on a fresh install of Ubuntu 20.04 in a VM and it worked fine. I have a few ideas on what it could be.

 First of all, the install.sh installs the version of SDL2 that is in your distros repos. You said you have SDL2-2.0.14 which is 4 versions newer than what is in the Ubuntu 20.04 repo. It is possible that you might have 2 different versions of SDL2 installed. You might want to check that and uninstall one.

Next, try this:  export DISPLAY=:0

Hi noobCode!!

The only SDL2 version I got installed is 2.0.14. The Ubuntu repo SDL2 version is old, and it doesn’t support a lot of applications that is already using the new version, that’s why I’m using v.2.0.14.

As I’ve said, I think it seems to be a version issue, probably SDL2 version, as you supposed.

The DISPLAY envvar is already exported, and de value is :0 (my X11 display ID).

You can get the SDL 2.0.14 here, if you want to test it, but I think it isn’t necessary, I’ve already identified the cause (the SDL2 version).

Thanks!!

Ok.  Sorry about all that trouble.  I tested the linux version with Ubuntu, PopOS, Fedora, ElementaryOS, and Solus to make sure it worked across a wide range of distros.  It's really hard to make linux software work with every distro and every configuration.  I am working on a script to be able to just build it from source to help people run it on linux OS's that I haven't accounted for so hopefully that will be able to help out people in your situation.

Thanks again for your patience.

No worry, that happens. 😉

And the issue seems to be about SDL2 version.

Just watch out, ’cause this issue can come back to bore you when any distro upgrades its SDL2 version. 😲