Long Filename Browser for ZX-UNO / esxDOS

Field Programmable Gate Array based devices! As exciting as they sound
Post Reply
akeley
Dynamite Dan
Posts: 1048
Joined: Sat Feb 01, 2020 5:47 pm

Re: New File Browser for ZX-UNO

Post by akeley »

OMG!! I SEE LONG FILENAMES!!!1!!1

Man, this is really amazing. I have finally managed to upgrade my DIV SD's esx to 0.8.8 and I can run this browser now. It really changed my whole DIV experience, I can now see what games I'm playing/looking for...beforehand it was just jumbles of letters and bit of a potluck starting games. Thanks A LOT [mention]bob_fossil[/mention] !

Any chance you could update the first post with all the new instructions, features, keybinds, etc? This thread page count is now in double digits and the info is quite scattered. Is it possible to make snapshots, for example?
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

akeley wrote: Fri May 29, 2020 5:48 pm OMG!! I SEE LONG FILENAMES!!!1!!1

Man, this is really amazing. I have finally managed to upgrade my DIV SD's esx to 0.8.8 and I can run this browser now. It really changed my whole DIV experience, I can now see what games I'm playing/looking for...beforehand it was just jumbles of letters and bit of a potluck starting games. Thanks A LOT @bob_fossil !

Any chance you could update the first post with all the new instructions, features, keybinds, etc? This thread page count is now in double digits and the info is quite scattered. Is it possible to make snapshots, for example?
Thanks! :) Press Shift + H in the browser to show the help - which should hopefully answer your snapshot question. I can't update the first post. I should probably include a text version of the help screen alongside the changelog in the .zip file.
Last edited by bob_fossil on Fri May 29, 2020 6:07 pm, edited 1 time in total.
keithshaw3
Drutt
Posts: 31
Joined: Wed May 20, 2020 4:52 pm

Re: New File Browser for ZX-UNO

Post by keithshaw3 »

akeley wrote: Fri May 29, 2020 5:48 pm OMG!! I SEE LONG FILENAMES!!!1!!1
I know it's a revelation and soooo much easier to navigate :)

[mention]bob_fossil[/mention] do you have anywhere to donate to this great project or for a coffee or two :)
akeley
Dynamite Dan
Posts: 1048
Joined: Sat Feb 01, 2020 5:47 pm

Re: New File Browser for ZX-UNO

Post by akeley »

bob_fossil wrote: Fri May 29, 2020 6:04 pm I can't update the first post. I should probably include a text version of the help screen alongside the changelog in the .zip file.
I'm sure [mention]PeterJ[/mention] could help with that. It'd really be great to have all the crucial info in one place (for example I was first trying to install using the old method described there).

But yeah, adding a readme/help to the changelog or into the zip itself would be cool too. There's too many great features which could be missed otherwise.
In fact I was thinking about requesting "jump to the end of dir" and saw you've already implemented it. Then I thought, okay, if I request some way of naming snapshots it'll be too impossible. Cue my jaw literally dropping when I tried to save and saw it working :D

So, I don't know what to ask for, this really is just too perfect. Maybe remembering the last-game-played position within the directory? (I like to check games one by one). It's a very, very minor request thou.

Also, how do you deal with the old NMI again? I just renamed mine to something like "NMI old" but I see it's possible to re-animate it from within the UI?
User avatar
PeterJ
Site Admin
Posts: 6878
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: New File Browser for ZX-UNO

Post by PeterJ »

Hi [mention]bob_fossil[/mention]

Just PM me the changes you want.
User avatar
Luzie
Manic Miner
Posts: 910
Joined: Fri May 01, 2020 2:07 pm

Re: New File Browser for ZX-UNO

Post by Luzie »

akeley wrote: Fri May 29, 2020 8:01 pm Also, how do you deal with the old NMI again? I just renamed mine to something like "NMI old" but I see it's possible to re-animate it from within the UI?
Read on about it from here: viewtopic.php?p=37251#p37251
bukem
Drutt
Posts: 5
Joined: Sat May 30, 2020 10:18 am

Re: New File Browser for ZX-UNO

Post by bukem »

Hi, I'm using version 0.7 on ZX Spectrum Next with FlashAIR 64GB SXDC (FAT32) and it looks like browser is corrupting file system. This is the content of TMP folder where browser is dumping memory snapshot:

Image

When I tried to use brwscfg to change the config it corrupted also the bin folder content.
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

bukem wrote: Sat May 30, 2020 10:31 am Hi, I'm using version 0.7 on ZX Spectrum Next with FlashAIR 64GB SXDC (FAT32) and it looks like browser is corrupting file system. This is the content of TMP folder where browser is dumping memory snapshot:

Image

When I tried to use brwscfg to change the config it corrupted also the bin folder content.
I'm using the esxdos API functions to write files (/TMP/BROWSE.NMI and /BIN/BROWSE.CFG) to the SD card - so if there is an issue it's likely to be in there. Judging from the filenames and sizes it looks like something has gone horribly wrong when esxdos saved the data to the disk. I don't have a 64gb card or a ZX Spectrum Next to test with. Can you try another SD card - maybe a smaller size?
bukem
Drutt
Posts: 5
Joined: Sat May 30, 2020 10:18 am

Re: New File Browser for ZX-UNO

Post by bukem »

I'll try to find smaller SD card and do some test.
bukem
Drutt
Posts: 5
Joined: Sat May 30, 2020 10:18 am

Re: New File Browser for ZX-UNO

Post by bukem »

OK, I've found the cause :shock: - I had enabled DMA support for esxDOS in config. I've just disabled it and corruption is gone.
andydansby
Microbot
Posts: 147
Joined: Fri Nov 24, 2017 5:09 pm
Location: Syracuse, NY, USA
Contact:

Re: New File Browser for ZX-UNO

Post by andydansby »

Another casual observation of my trouble with slow browser I just had is the delay only happens if I activate the browser via NMI. If I use .browse the browser comes up immediately with no delay at all. I had before today just used the NMI to activate the browser.
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

bukem wrote: Sat May 30, 2020 11:46 am OK, I've found the cause :shock: - I had enabled DMA support for esxDOS in config. I've just disabled it and corruption is gone.
Glad you found the problem!
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

andydansby wrote: Sat May 30, 2020 12:22 pm Another casual observation of my trouble with slow browser I just had is the delay only happens if I activate the browser via NMI. If I use .browse the browser comes up immediately with no delay at all. I had before today just used the NMI to activate the browser.
The .dot command doesn't write the file /TMP/BROWSE.NMI as the assumption is that as you've launched it from BASIC, we can just return back to that when you exit. Writing that file is the overhead on some SD cards. I have written another NMI.SYS for slower SD cards which doesn't write that file when you press the NMI button so it will start instantly. As you're not saving memory any more, snapshot saving and POKEs won't work. It will also trash the memory. However, if you just want to use the NMI as a hotkey to launch the browser to autostart your snapshots, tapes and disks it'll do. The user can then choose which NMI.SYS to use.
andydansby
Microbot
Posts: 147
Joined: Fri Nov 24, 2017 5:09 pm
Location: Syracuse, NY, USA
Contact:

Re: New File Browser for ZX-UNO

Post by andydansby »

bob_fossil wrote: Sat May 30, 2020 12:37 pm
andydansby wrote: Sat May 30, 2020 12:22 pm Another casual observation of my trouble with slow browser I just had is the delay only happens if I activate the browser via NMI. If I use .browse the browser comes up immediately with no delay at all. I had before today just used the NMI to activate the browser.
The .dot command doesn't write the file /TMP/BROWSE.NMI as the assumption is that as you've launched it from BASIC, we can just return back to that when you exit. Writing that file is the overhead on some SD cards. I have written another NMI.SYS for slower SD cards which doesn't write that file when you press the NMI button so it will start instantly. As you're not saving memory any more, snapshot saving and POKEs won't work. It will also trash the memory. However, if you just want to use the NMI as a hotkey to launch the browser to autostart your snapshots, tapes and disks it'll do. The user can then choose which NMI.SYS to use.
Nice. I had not even really thought about the overhead of some SD cards as it wasn't even on my radar. The next time before I buy my next one, I'm going to try to make sure it's a faster SD card. I had always thought PNY was a decent SD card, but now I'm going to have to stick with Sandisk.
Any recommended cards other than Sandisk?
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

v0.08
  • Added setting 'No NMI write (Slow SD Cards)' to BRWSCFG which disables the saving of RAM when entering the NMI to stop delays on slow SD cards. Be aware that with this option enabled, saving snapshots and POKEs are disabled. It's also highly likely to cause a reset rather than returning you to your previous state if you decide to exit the NMI browser with this setting enabled.
  • Shift + F file information now shows the size of the file in bytes.
  • Shift + E will erase the selected file. Press Shift + Y to confirm.
  • NMI.SYS now creates a /TMP/ folder if not present to stop a reported issue with saving snapshots when the folder isn't there.
  • NMIINIT .dot command now takes an optional filename path parameter to load another NMI.SYS .
Download.
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

andydansby wrote: Sat May 30, 2020 2:27 pm Nice. I had not even really thought about the overhead of some SD cards as it wasn't even on my radar. The next time before I buy my next one, I'm going to try to make sure it's a faster SD card. I had always thought PNY was a decent SD card, but now I'm going to have to stick with Sandisk.
Any recommended cards other than Sandisk?
It's not company policy to give out endorsements. :) I have a 1 gig Micro SD card from Samsung inside an SD card adaptor and that exhibits the same slowness problems as a no name 4 gig Micro SD card.

I've no idea why it takes ~17 seconds to write 49152 bytes to a file - especially when I can copy a larger file onto the same Samsung card on my PC instantaneously. My Plus D disk drive I had many moons ago managed to write an entire 48K RAM snapshot in about 3 seconds to a 3.5" floppy disk. :)
andydansby
Microbot
Posts: 147
Joined: Fri Nov 24, 2017 5:09 pm
Location: Syracuse, NY, USA
Contact:

Re: New File Browser for ZX-UNO

Post by andydansby »

Wow, that’s was amazing fast. I’m going to give it a go later on.
akeley
Dynamite Dan
Posts: 1048
Joined: Sat Feb 01, 2020 5:47 pm

Re: New File Browser for ZX-UNO

Post by akeley »

It's got to be about these write speeds Seven.FFF was talking about earlier. It's similar in the SSD market, and it is how the other brands can stay in the game and offer cheaper alternatives. It's because we mostly read data, not write it. Fast write speeds only matter in specific situations, such as video/photo recording, or indeed using a homebrew browser to load ancient games...as you do :)

I just installed this browser on another card (*GB Platinet) I had been using before for esx 0.8.6, and it's also slow, about 5-7 seconds to evoke NMI menu. It was fine with esx though, so these cards are still pretty decent - do their jobs - but now that we have a cutting edge browser, we need similar cards too :) I've moved my ZX library to a spare Sandisk Ultra and it's near-instant.

[mention]bob_fossil[/mention] any chance for SCR support?
keithshaw3
Drutt
Posts: 31
Joined: Wed May 20, 2020 4:52 pm

Re: New File Browser for ZX-UNO

Post by keithshaw3 »

Another quality of life improvement if possible, can we have a sort option for directories, alphabetical or last added?

K
User avatar
Seven.FFF
Manic Miner
Posts: 744
Joined: Sat Nov 25, 2017 10:50 pm
Location: USA

Re: New File Browser for ZX-UNO

Post by Seven.FFF »

bob_fossil wrote: Sun May 31, 2020 6:38 pm I've no idea why it takes ~17 seconds to write 49152 bytes to a file - especially when I can copy a larger file onto the same Samsung card on my PC instantaneously. My Plus D disk drive I had many moons ago managed to write an entire 48K RAM snapshot in about 3 seconds to a 3.5" floppy disk. :)
Could it be related to the F_OPEN mode? Is it faster on the second usage if you open with esx_mode_open_creat instead of esx_mode_creat_trunc?
Robin Verhagen-Guest
SevenFFF / Threetwosevensixseven / colonel32
NXtel NXTP ESP Update ESP Reset CSpect Plugins
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

Seven.FFF wrote: Mon Jun 01, 2020 8:13 pm Could it be related to the F_OPEN mode? Is it faster on the second usage if you open with esx_mode_open_creat instead of esx_mode_creat_trunc?
My NMI code is using ESXDOS_MODE_WRITE|ESXDOS_MODE_OPEN_CREATE . I'm not using ESXDOS_MODE_CREAT_TRUNC at all.
User avatar
Cgonzalez
Drutt
Posts: 40
Joined: Thu Mar 15, 2018 10:03 pm
Location: Santiago, Chile

Re: New File Browser for ZX-UNO

Post by Cgonzalez »

Bob

Your browser is nearly perfect, just one suggestion, can it remember last selected file. For example if I select a game, load it, then press nmi again it loses the current selection and select the start of the current directory.

Also if I try to delete the Windows auto created folder "System Volume Information" I got an Error 016.

Regards
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

Cgonzalez wrote: Mon Jun 01, 2020 10:47 pm Bob

Your browser is nearly perfect, just one suggestion, can it remember last selected file. For example if I select a game, load it, then press nmi again it loses the current selection and select the start of the current directory.

Also if I try to delete the Windows auto created folder "System Volume Information" I got an Error 016.

Regards
There is a bug where you can't delete directories - ESXDOS error code 16 is 'Is a DIRECTORY'. I've fixed this in the next version.
User avatar
Pobulous
Dynamite Dan
Posts: 1365
Joined: Wed Nov 15, 2017 12:51 pm

Re: New File Browser for ZX-UNO

Post by Pobulous »

I have tap files in folders of the same name, so that I can have multiple versions of the game without having too many files.
One problem is that the folders don't seem to be sorted properly - it looks like they file browser isn't sorting the directory names, or not doing it properly.
User avatar
bob_fossil
Manic Miner
Posts: 659
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

Pobulous wrote: Sat Jun 06, 2020 8:55 pm I have tap files in folders of the same name, so that I can have multiple versions of the game without having too many files.
One problem is that the folders don't seem to be sorted properly - it looks like they file browser isn't sorting the directory names, or not doing it properly.
Can you give an actual example of the folder layout and contents as it's not particularly clear from your description? Also be aware that folders and files are sorted by the 8.3 filename not the long filename. So if you had 'Jet Set Willy 2.tap' which was stored as JETSET~1.TAP and 'Jet Set Willy.tap' which was stored as JETSET~2.TAP, 'Jet Set Willy 2.tap' would be listed first.
Post Reply