BBC BASIC
« BBC BASIC for Linux (86) v0.07a »

Welcome Guest. Please Login or Register.
Jan 22nd, 2018, 4:59pm


Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: BBC BASIC for Linux (86) v0.07a  (Read 1501 times)
rpc
New Member
Image


member is offline

Avatar




PM


Posts: 1
xx Re: BBC BASIC for Linux (86) v0.07a
« Reply #8 on: Apr 7th, 2017, 12:35pm »

I can confirm that the "No such font" error is caused if you first run the application from one location and then move it to another. The solution is to delete the sdlide.ini. At least in Ubuntu 16.04 this is in .local/Share/BBCBasic.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 691
xx Re: BBC BASIC for Linux (86) v0.07a
« Reply #9 on: Apr 7th, 2017, 12:53pm »

on Apr 7th, 2017, 12:35pm, rpc wrote:
I can confirm that the "No such font" error is caused if you first run the application from one location and then move it to another.

Yes, exactly the same thing happens in Mac OS; it's because the absolute path to the font's TTF is stored in the ini file, which of course ceases to be valid if you move the application.

Some while ago I looked into what would be involved in working around this issue but I judged the complication to be out of proportion to the benefit, considering that deleting the sdlide.ini file is such a straightforward fix. Discovering its location is simply a matter of typing 'PRINT @usr$' in immediate mode.

Richard.
User IP Logged

PatrickM
New Member
Image


member is offline

Avatar




PM


Posts: 12
xx Re: BBC BASIC for Linux (86) v0.07a
« Reply #10 on: Apr 7th, 2017, 8:28pm »

Thanks, deleting sdlide.ini fixed the problem.

Quote:
That's no different from BB4W and all the other versions of BBC BASIC from my 'stable' for the last 35 years!


Right, I see, I didn't know that. I actually haven't used BB4W, up until now I've only used BASIC on the BBC Micro and in RISC OS, and the Brandy interpreter on linux, which behave differently in this regard. Thanks for letting me know.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 691
xx Re: BBC BASIC for Linux (86) v0.07a
« Reply #11 on: Apr 7th, 2017, 9:18pm »

on Apr 7th, 2017, 8:28pm, PatrickM wrote:
I've only used BASIC on the BBC Micro and in RISC OS, and the Brandy interpreter on linux, which behave differently in this regard.

It is usual in CP/M, MS-DOS and Windows for a 'default' extension to be assumed if none is explicitly supplied; the idea being that the application knows what file type is most appropriate for the particular operation. So if the filename you provide contains no 'dot' that default extension will be appended. In the special case of a file with no extension (which is rare in those Operating Systems, but less so in Unix) that is indicated by adding a trailing dot.

Admittedly I have on many occasions questioned whether defaulting to .bbc was sensible for OPENIN, OPENOUT and OPENUP, since that extension is supposed to indicate a tokenised program file. The conclusion I invariably come to is that it wasn't - probably something like .dat would have been a better choice - but that making a change now would break far too many existing programs.

You may well encounter more differences that have resulted from the divergence between the 'Wilson' and 'Russell' branches of BBC BASIC (a divergence which started very early on, for example in that 'suffixless' variables are numeric variants not floats). I hope you won't find the transition too traumatic!

Richard.

User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls