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 » Sat Aug 17, 2019 6:14 pm

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.
0 x

hikoki
Manic Miner
Posts: 396
Joined: Thu Nov 16, 2017 10:54 am

Re: BasinC oddnesses

Post by hikoki » Sat Aug 17, 2019 6: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.
0 x

User avatar
Fahnn
Microbot
Posts: 135
Joined: Sun Jan 27, 2019 7:56 pm
Location: Redcar, UK
Contact:

Re: BasinC oddnesses

Post by Fahnn » Sat Aug 17, 2019 6:59 pm

hikoki wrote:
Sat Aug 17, 2019 6: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!
0 x

ASH-II
Berk
Posts: 11
Joined: Sun Jun 16, 2019 10:48 am

Re: BasinC oddnesses

Post by ASH-II » Sun Aug 18, 2019 7: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.
1 x

llewelyn
Dizzy
Posts: 94
Joined: Thu Feb 22, 2018 3:27 pm
Location: virginias eastern shore
Contact:

Re: BasinC oddnesses

Post by llewelyn » Sun Aug 18, 2019 1:36 pm

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.
0 x

User avatar
Fahnn
Microbot
Posts: 135
Joined: Sun Jan 27, 2019 7:56 pm
Location: Redcar, UK
Contact:

Re: BasinC oddnesses

Post by Fahnn » Sun Aug 18, 2019 4:59 pm

ASH-II wrote:
Sun Aug 18, 2019 7: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!
0 x

User avatar
ZXDunny
Manic Miner
Posts: 237
Joined: Tue Nov 14, 2017 3:45 pm

Re: BasinC oddnesses

Post by ZXDunny » Sun Aug 18, 2019 6: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.

paul.dunn@gmail.com
1 x

hikoki
Manic Miner
Posts: 396
Joined: Thu Nov 16, 2017 10:54 am

Re: BasinC oddnesses

Post by hikoki » Sun Aug 18, 2019 7:35 pm

ZXDunny wrote:
Sun Aug 18, 2019 6: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.

paul.dunn@gmail.com
@ZXDunny please try this, rename a .bas file with a very long name and open it with Basin
0 x

Post Reply