BasinC oddnesses

The place for codemasters or beginners to talk about programming any language for the Spectrum.
User avatar
Fahnn
Microbot
Posts: 135
Joined: Sun Jan 27, 2019 7:56 pm
Location: Redcar, UK
Contact:

Re: BasinC oddnesses

Post by Fahnn »

OK, here's an odd one. I've been messing with something for the last couple of days and saving it as a .bas file. Everything was fine, the file was saved and re-opened probably ten times or more with no problems, until today. Attempting to open it does nothing, there is apparently no program.

It's not actually a problem as I have a .txt listing of what I'd written so far (interestingly, I got this from uploading the .bas file and then trying to download it; instead of a download, I got a text listing of variables from its last run and then the entire program, which was helpful).

I'm a little bit wary of using BasinC again if this kind of thing is going to happen. Prior to this I'd only had lines going missing (or randomly re-numbered) and I could deal with that, but potentially losing entire programs is another issue (even though it's possible to get them back, it's a pain to have to do that). It's a shame because I think it's generally a really great environment for writing BASIC.

Tell me what I'm doing wrong. I must be doing something wrong.
hikoki
Manic Miner
Posts: 576
Joined: Thu Nov 16, 2017 10:54 am

Re: BasinC oddnesses

Post by hikoki »

Did you rename the file with a really long name?
Something like that happened to me after renaming, Basinc erased the content not only in ram but also on the saved file.
User avatar
Fahnn
Microbot
Posts: 135
Joined: Sun Jan 27, 2019 7:56 pm
Location: Redcar, UK
Contact:

Re: BasinC oddnesses

Post by Fahnn »

hikoki wrote: Sat Aug 17, 2019 7:44 pm Did you rename the file with a really long name?
Something like that happened to me after renaming, Basinc erased the content not only in ram but also on the saved file.
Nope, it was called "d".bas. Maybe too short names also mess it up!
ASH-II
Drutt
Posts: 11
Joined: Sun Jun 16, 2019 11:48 am

Re: BasinC oddnesses

Post by ASH-II »

As the author of BASin has said it might have a few bugs and it will be fixed but not yet (and he is hinting it will be merged into a shiny new Spin :) )

so if you are having an issue with saving then save as a .bas and before you exit basin just copy the text into notepad and save that.
if the .bas fails (1 in 10 chance) then paste the text from the saved notepad. nothing has been lost.

As you yourself say the advantages to using BASin far outway a little save/load glitch.
llewelyn
Manic Miner
Posts: 205
Joined: Thu Feb 22, 2018 3:27 pm
Location: virginias eastern shore
Contact:

Re: BasinC oddnesses

Post by llewelyn »

Mine won't work at all and I don't know why. I downloaded it, installed it into my Programs folder and it comes up when clicked but all the directories show up as names, such as 'welcome' but have a question mark where the icons are and clicking on them gets an empty screen! Its been unzipped properly and checking file size shows that there's something there alright. So frustrated, I just leave it in place, hoping someday perhaps I'd find a solution.

Oddly enough the first time I used it a couple of years ago, it all worked properly! Computer weirdness beyond my ken.
User avatar
Fahnn
Microbot
Posts: 135
Joined: Sun Jan 27, 2019 7:56 pm
Location: Redcar, UK
Contact:

Re: BasinC oddnesses

Post by Fahnn »

ASH-II wrote: Sun Aug 18, 2019 8:08 am As the author of BASin has said it might have a few bugs and it will be fixed but not yet (and he is hinting it will be merged into a shiny new Spin :) )

so if you are having an issue with saving then save as a .bas and before you exit basin just copy the text into notepad and save that.
if the .bas fails (1 in 10 chance) then paste the text from the saved notepad. nothing has been lost.

As you yourself say the advantages to using BASin far outway a little save/load glitch.
Yes, I'll persevere, as it really is a fantastic tool for writing BASIC. Knowing that the listing can be retrieved from a non-working .bas file certainly makes it easier to deal with any potential errors of this kind that might happen in the future. Fingers crossed it doesn't become a regular thing though!
User avatar
ZXDunny
Manic Miner
Posts: 498
Joined: Tue Nov 14, 2017 3:45 pm

Re: BasinC oddnesses

Post by ZXDunny »

You might like to send me the offending .bas file for examination. When I do eventually get around to working in BASin again I can fix the issue.

[email protected]
hikoki
Manic Miner
Posts: 576
Joined: Thu Nov 16, 2017 10:54 am

Re: BasinC oddnesses

Post by hikoki »

ZXDunny wrote: Sun Aug 18, 2019 7:57 pm You might like to send me the offending .bas file for examination. When I do eventually get around to working in BASin again I can fix the issue.

[email protected]
[mention]ZXDunny[/mention] please try this, rename a .bas file with a very long name and open it with Basin
Post Reply