New File Browser for ZX-UNO

Show us what you're working on, (preferably with screenshots).
User avatar
bob_fossil
Manic Miner
Posts: 239
Joined: Mon Nov 13, 2017 6:09 pm

Re: New File Browser for ZX-UNO

Post by bob_fossil »

XoRRoX wrote:
Thu May 21, 2020 3:57 pm

It seems that files with names that exceed the max display size do not load, for example: Indiana Jones and the Temple of Doom (1987)(US Gold).tap

- Would it be possible to remember the position in the folder list on the last (at least) 2 levels, instead of 1?

I think a folder structure like this is common:

Code: Select all

Games
 \A
  \Abadia Del Crimen, La
  \Arkanoid
  \.....
  \Agent-X - In The Brain Drain Caper
  \Agent-X II
 \B
  \......

And after having run one of the files in the

Code: Select all

Agent-X - In The Brain Drain Caper
folder and going up a level, the browser now jumps all the way back to the 1st entry on the first page, having to navigate all the way back to where one was to go into

Code: Select all

Agent-X II
folder.
I tried loading the following file off my test SD card:

Code: Select all

TAP/Games/new/Dizzy VII - Crystal Kindom Dizzy (2017) v1.0.2.tap
which displays with the '...' truncation in the browser and it loaded correctly. The browser always uses the underlying 8.3 filename when launching a file so it shouldn't matter what is shown on screen. Does the .tap load outside of the browser - e.g. with the .tapein command? What was the full path of the file on the disk?

I can add position remembering. How many levels should it remember - 2, 4, 8? You can always use cursor left and right to fast scroll pages in the browser or Shift + Q / A to jump to the first / last entry in the list.
1 x

Spezzi63
Berk
Posts: 17
Joined: Sat Dec 28, 2019 1:36 pm

Re: New File Browser for ZX-UNO

Post by Spezzi63 »

keithshaw3 wrote:
Thu May 21, 2020 5:25 pm
akeley wrote:
Thu May 21, 2020 5:17 pm
@keithshaw3 if you mean RTC error in esxDOS booting sequence, then it's quite common (and harmless).
That's good to know, it seems to have sorted itself out now, see the previous response.
Dummy RTC.SYS
https://tinyurl.com/yat4kxfz
1 x

keithshaw3
Berk
Posts: 27
Joined: Wed May 20, 2020 4:52 pm

Re: New File Browser for ZX-UNO

Post by keithshaw3 »

thanks, that will come in handy :)
0 x

XoRRoX
Dizzy
Posts: 53
Joined: Wed Jul 11, 2018 6:34 am

Re: New File Browser for ZX-UNO

Post by XoRRoX »

Some files not loading - probable cause: RVM

I think I discovered the reason for the issue for files not loading; it seems to have to do how Retro Virtual Machine is reading the file system.
With the following folder structure:

Code: Select all

...\Indiana Jones - El Idolo de Oro\
...\Indiana Jones and the Fate of Atlantis\Indiana Jones and the Fate of Atlantis (1992)(US Gold).Tap
...\Indiana Jones and the Last Crusade\Indiana Jones and the Last Crusade (1989)(US Gold).Tap

In the title of the browser, the folder names both show as /ZXSPECTR/J/INDIANAJ/

When I navigate to any Indiana Jones folder other than Ed Idolo de Oro and return to BASIC by pressing break and CAT, it's showing the Ed Idolo de Oro folder.

In Retro Virtual Machine when I do a CAT in the folder where the Indiana games subfolders are, it's showing 4 x INDIANAJ while on my real hardware (+2B & divMMC) that's shown as INDIANA~1, INDIANA~2.

I don't have my Uno at hand so not able to test how it's on that, but I suspect it's the same as the divMMC and thus no problem.


Store selection position

I tend to say "all" but don't know the implications on the code so will go with "as much as possible" ;)


Slow down key repeat.

The navigation keys repeat from the moment they're pressed, causing it sometimes to skip over the file intended to be selected. What about building in some sort of delay before repeat, like in Spectrum BASIC?
0 x

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

Re: New File Browser for ZX-UNO

Post by bob_fossil »

XoRRoX wrote:
Fri May 22, 2020 10:18 am

Store selection position

I tend to say "all" but don't know the implications on the code so will go with "as much as possible" ;)


Slow down key repeat.

The navigation keys repeat from the moment they're pressed, causing it sometimes to skip over the file intended to be selected. What about building in some sort of delay before repeat, like in Spectrum BASIC?
I've implemented store selection position in a way that works without levels. However, it only works for folders. So if you navigated inside the folder:

Code: Select all

\Tapes\Games\A\Agent-X - In The Brain Drain Caper
and then selected '..' or pressed delete to go back to the 'A' folder, the selection will now be on the 'Agent-X - In The Brain Drain Caper' folder entry, rather than on the first '..' entry. This only works for folders - to remember the position of a file, I'd need to store away the path and file index and reload that in when you restart the browser. Hopefully this is better than nothing. :) This option is disabled by default (it does require extra processing to figure out which entry it needs to move back to). To enable it, run the brwscfg .dot command, enable the 'Remember last folder' setting and save.

I've also increased the delay when moving the selection.

Test version with these two changes can be downloaded here.

Would appreciate feedback, especially for the increased delay on the selection movement.
0 x

XoRRoX
Dizzy
Posts: 53
Joined: Wed Jul 11, 2018 6:34 am

Re: New File Browser for ZX-UNO

Post by XoRRoX »

I tested on real hardware and it works a treat - thanks :)

I don't know how far you like to take it, but could you consider this feature?

Regarding running specific commands on specific files extensions, what about a more flexible config file system with a text file containing the extension + command to execute, something in the form of:

pt3 playpt3
stc playstc
tfm playtfm

When Enter is pressed, the extension is read, checked if it's internally supported by the browser. If not, then the text file is parsed and, if found, the appropriate command executed with the file under the cursor as a parameter.

This way one can add support when new commands for other formats are released.

I don't know if it's possible for the browser to call the command and, when the command has finished processing or is cancelled, continue where it left off, or if it's needed to exit the browser and give control to the command.
0 x

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

Re: New File Browser for ZX-UNO

Post by bob_fossil »

XoRRoX wrote:
Fri May 22, 2020 1:57 pm
I tested on real hardware and it works a treat - thanks :)

I don't know how far you like to take it, but could you consider this feature?

Regarding running specific commands on specific files extensions, what about a more flexible config file system with a text file containing the extension + command to execute, something in the form of:

pt3 playpt3
stc playstc
tfm playtfm

When Enter is pressed, the extension is read, checked if it's internally supported by the browser. If not, then the text file is parsed and, if found, the appropriate command executed with the file under the cursor as a parameter.

This way one can add support when new commands for other formats are released.

I don't know if it's possible for the browser to call the command and, when the command has finished processing or is cancelled, continue where it left off, or if it's needed to exit the browser and give control to the command.
Is the keyboard delay any better now?

As for the feature request, it's something to think about. Some .dot commands like snapload can be executed from inside the NMI / .dot command without issue. On the ZX-UNO I use the loadpzx .dot command to provide PZX tape file support. If I try and load this from inside the NMI / .dot command it starts to run and then crashes. The only reliable way I could make it work was to quit the program, wait a bit and then execute some resident code to type the appropriate command and filename into BASIC to run the command. So it's do-able. Continuing or switching back once the command has finished would be the hard part.
1 x

User avatar
Luzie
Berk
Posts: 40
Joined: Fri May 01, 2020 2:07 pm

Re: New File Browser for ZX-UNO

Post by Luzie »

Loading of /sys/NMI.ORG via Shift+N don´t seem to work anymore in BROWSE_TEST007-2.zip/.browse v0.07a2 ?!

Could you please add display size of the file the cursor stands on? And maybe show it´s 8.3-filename?

Regards,

Luzie
0 x

XoRRoX
Dizzy
Posts: 53
Joined: Wed Jul 11, 2018 6:34 am

Re: New File Browser for ZX-UNO

Post by XoRRoX »

Sorry about not letting you know about the key repeat. On my +2 & divMMC it seems OK.
1 x

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

Re: New File Browser for ZX-UNO

Post by bob_fossil »

Luzie wrote:
Fri May 22, 2020 3:49 pm
Loading of /sys/NMI.ORG via Shift+N don´t seem to work anymore in BROWSE_TEST007-2.zip/.browse v0.07a2 ?!

Could you please add display size of the file the cursor stands on? And maybe show it´s 8.3-filename?

Regards,

Luzie
Not work as it in crashes or not work as in it doesn't do anything? Did BROWSE_TEST007-1.zip work? The changes I made for BROWSE_TEST007-2.zip shouldn't have changed the NMI reloading code. I've just tried it on SpecEmu and with my ZX-UNO and it's still working for me. Remember that switching NMI only works when the browser is launched from the NMI. If you start from the .dot command, Shift + N is disabled.

I go to all the trouble of making a LFN browser and you want to see the 8.3 filename? :) It's unlikely that I'll add it in the main display. I may add a hotkey to show additional file properties - e.g. size, 8.3 filename for the selected file. Why do you need to know the 8.3 filename?
2 x

Post Reply