ZX Spectrum Next: Problem saving basic programs.

Agrajag
Posts: 3
Joined: Tue May 18, 2021 8:24 am
Has thanked: 1 time

ZX Spectrum Next: Problem saving basic programs.

Unread post by Agrajag »

Whenever I try to save any ZX next basic program using something like save "progname.bas", I get the message "Not ready 0:1".

"progname.bas" will be saved to the .VHD but seems to be corrupted and is not recognised by NextBASIC as a basic file when I try to load it.

Anyone else getting this?
User avatar
NML32
Posts: 261
Joined: Sun May 24, 2020 6:57 pm
Has thanked: 203 times
Been thanked: 30 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by NML32 »

I was able to save a simple "Hello World" basic program and load it back without any errors. I'm using the second SD card not a .VHD.
User avatar
pgimeno
Posts: 582
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 212 times
Been thanked: 180 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by pgimeno »

I have the same problem with the .VHD image. If I try to erase it, the disk ends up corrupted (in the sense that dosfsck reports a problem).
Agrajag
Posts: 3
Joined: Tue May 18, 2021 8:24 am
Has thanked: 1 time

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by Agrajag »

I haven't noticed any corruption to the VHD image file, The file saved is saved to the correct place and has the correct name, but is always zero bytes in length. The Next's file browser works fine. I can create/delete/rename folders and I can rename/delete files that already exist, I just can't save basic files.

Odd.
antonie
Posts: 49
Joined: Mon May 25, 2020 7:03 pm
Has thanked: 2 times
Been thanked: 3 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by antonie »

Agrajag wrote: Tue May 18, 2021 9:38 pm I haven't noticed any corruption to the VHD image file, The file saved is saved to the correct place and has the correct name, but is always zero bytes in length. The Next's file browser works fine. I can create/delete/rename folders and I can rename/delete files that already exist, I just can't save basic files.

Odd.
Confirmed the same regarding writing .bas files to a VHD.
Bendz
Posts: 3
Joined: Sun May 24, 2020 10:59 pm
Been thanked: 3 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by Bendz »

I had the same issue. I though that perhaps having my VHD on an external drive might be causing an issue so I moved it to the SD card. I was able to save until I reset the core and now I am back to square one. Very odd.
caffeinekid
Posts: 70
Joined: Wed Nov 04, 2020 10:03 am
Has thanked: 20 times
Been thanked: 12 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by caffeinekid »

Well that's a shame and I hope it will be fixed. It would be nice to be able to develop for Next in the core. It would be nice to be able to create and save stuff in all (computer) cores to be honest. :)
Agrajag
Posts: 3
Joined: Tue May 18, 2021 8:24 am
Has thanked: 1 time

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by Agrajag »

On a whim I tried release 20210407 and that version allows me to save basic files just fine.

I guess the solution is to use 20210407 until the problem is fixed.
User avatar
pgimeno
Posts: 582
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 212 times
Been thanked: 180 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by pgimeno »

Agrajag wrote: Thu May 20, 2021 12:23 pm On a whim I tried release 20210407 and that version allows me to save basic files just fine.

I guess the solution is to use 20210407 until the problem is fixed.
It seems it's not reported in GitHub and Sorg hasn't noticed this thread. I'm not on GitHub but maybe someone who is can report it.

Losing RTC and TZX support is too much of a loss :(
Bendz
Posts: 3
Joined: Sun May 24, 2020 10:59 pm
Been thanked: 3 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by Bendz »

I've raised this as an issue on GitHub
User avatar
pgimeno
Posts: 582
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 212 times
Been thanked: 180 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by pgimeno »

I see that Sorg has closed it as duplicate. It's not a duplicate:

- The issue happens with no USB drive at all, with the primary SD and a VHD image.
- The configuration saves just fine.
- It's saving BASIC programs that fails.
- The issue is not reproducible in Release 20210407.
antonie
Posts: 49
Joined: Mon May 25, 2020 7:03 pm
Has thanked: 2 times
Been thanked: 3 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by antonie »

Additional comments, more clarity provided in Github.
User avatar
pgimeno
Posts: 582
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 212 times
Been thanked: 180 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by pgimeno »

I've bisected the issue and traced it to this commit: https://github.com/MiSTer-devel/ZXNext_ ... 06373b7ae8

This was reported in https://github.com/MiSTer-devel/ZXNext_MISTer/issues/6 but Sorgelig thought that it was a duplicate of https://github.com/MiSTer-devel/ZXNext_MISTer/issues/4 and closed it. That's not the case; the change causing this issue was committed *after* the report.

I've reverted that commit and now it saves properly. Fixed core is attached.
Attachments
ZXNext.rbf
(2.88 MiB) Downloaded 71 times
User avatar
pgimeno
Posts: 582
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 212 times
Been thanked: 180 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by pgimeno »

The new release still contains the bug. Apparently Sorg doesn't know about the problem yet. Oh well...

Here's the latest release with the fix applied.
Attachments
ZXNext-fix_20220217.rbf
(2.89 MiB) Downloaded 59 times
cathrynmataga
Posts: 88
Joined: Fri Aug 06, 2021 5:30 pm
Has thanked: 90 times
Been thanked: 15 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by cathrynmataga »

Nice work. Now I'm going to have to try this out. Thanks!
cathrynmataga
Posts: 88
Joined: Fri Aug 06, 2021 5:30 pm
Has thanked: 90 times
Been thanked: 15 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by cathrynmataga »

Oh, I did get it working and I actual managed to save a basic file. Hardest part was figuring out where the " key. I found ctrl-p, but now I think crl-' works also. This is such an unusual machine.
cathrynmataga
Posts: 88
Joined: Fri Aug 06, 2021 5:30 pm
Has thanked: 90 times
Been thanked: 15 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by cathrynmataga »

The new core does come up with 'Error opening 'menu.ini/.def'! pretty often. It's weird, I can get it to work, after resetting, and futzing with it, but often it's just printing this message. It's not the patch, both the patch and unpatched do this. The 12/10/21 patched core works a lot more stable is my take it.
Breaking Hard
Posts: 8
Joined: Sat Mar 13, 2021 6:41 am

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by Breaking Hard »

cathrynmataga wrote: Sat Mar 19, 2022 9:39 pm The new core does come up with 'Error opening 'menu.ini/.def'! pretty often. It's weird, I can get it to work, after resetting, and futzing with it, but often it's just printing this message. It's not the patch, both the patch and unpatched do this. The 12/10/21 patched core works a lot more stable is my take it.
There is no ooficial releases of 12/10/21 version https://github.com/MiSTer-devel/ZXNext_ ... n/releases
Breaking Hard
Posts: 8
Joined: Sat Mar 13, 2021 6:41 am

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by Breaking Hard »

Finaly i manage to run core, i got different errors including Error opening 'menu.ini/.def' and its solved when I change secondary SD sdcard. Some of cards just does not work properly as next card
User avatar
pgimeno
Posts: 582
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 212 times
Been thanked: 180 times

Re: ZX Spectrum Next: Problem saving basic programs.

Unread post by pgimeno »

Breaking Hard wrote: Sun Nov 20, 2022 8:52 pm There is no ooficial releases of 12/10/21 version https://github.com/MiSTer-devel/ZXNext_ ... n/releases
I think cathrynmataga was talking about this unofficial one: viewtopic.php?p=39223#p39223
Post Reply