nfg.forums

NFG Forums => SIG X68000 => Topic started by: vampirefrog on July 07, 2014, 09:14:58 PM

Title: Tool for handling Human68k FAT images.
Post by: vampirefrog on July 07, 2014, 09:14:58 PM
So far it only lists and extracts files from DIM and XDF files, but in the future (and if anyone requests it) I'll add support for disk images and also writing (adding files, deleting etc), and make it into a full featured command line tool. I don't plan on making a GUI though, but I'll think about it if it is requested.

https://github.com/vampirefrog/fathuman
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: eidis on July 07, 2014, 09:37:55 PM
 Hi Vampirefrog !

Congratulations on a job well done ! Would it be possible to make a plugin for ye windoze platform file commanders such as FAR manager or Total Commander as well ?

Keep the scene alive !
Eidis
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: vampirefrog on July 07, 2014, 10:04:24 PM
That's a good idea. I was also thinking of writing an Explorer extension, but it's probably more difficult.

Here's my TODO list so far, in no particular order:

- Add support for all the floppy formats supported by XM6 (2DD, 2HD, 2HQ, D68, D88, DIM, DUP, HDM, IMG, XDF). Most of these are raw images, but D68, D88 and DIM have special headers which can be queried for info.
- Add support for SASI, SxSI, SCSI and MO images (HDF, HDS and MOS)
- Add write support  (add files, overwrite files and delete files)
- Far Manager plugin
- Total Commander plugin
- Maybe a windows Explorer plugin, similar to the LHA and ZIP support, but it's not that important right now.
- A GUI, similar to editdisk, with support for all of the above image types and possibly create new images.
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: eidis on July 07, 2014, 10:25:05 PM
 Hi Vampirefrog !

This sounds like the holy grail of handling disk images. Best of luck and keep up the good work !

Keep the scene alive !
Eidis
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: AnnaWu on July 07, 2014, 11:11:52 PM
Maybe it make more sense to add new plug-in(s) for the powerful DiskExplorer instead to make a similar one from the scratch?
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: vampirefrog on July 07, 2014, 11:22:36 PM
Quote from: AnnaWu on July 07, 2014, 11:11:52 PM
Maybe it make more sense to add new plug-in(s) for the powerful DiskExplorer instead to make a similar one from the scratch?

That looks complicated, is for money, and doesn't seem to do what we need.
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: AnnaWu on July 07, 2014, 11:33:33 PM
Example: white cat made a additional plug-in for the DiskExplorer to edit MEGA-SCSI and Sunrise IDE hard disk images for MSX.
Of course you can import, export, rename, delete, ... files.
tinyurl.com/puywyz7
tinyurl.com/qj28qv2
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: Opethian on July 07, 2014, 11:49:41 PM
damn I wish this was around when I was patching games for my 030
nice work here vamp!
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: vampirefrog on July 08, 2014, 04:53:53 AM
Quote from: AnnaWu on July 07, 2014, 11:33:33 PM
Example: white cat made a additional plug-in for the DiskExplorer to edit MEGA-SCSI and Sunrise IDE hard disk images for MSX.
Of course you can import, export, rename, delete, ... files.
tinyurl.com/puywyz7
tinyurl.com/qj28qv2

Sorry, I thought you meant this DiskExplorer (https://www.runtime.org/diskexplorer.htm)!

Then I figured it out. I was already using it, though I call it editdisk, after the executable.

Anyway, where can I find docs about writing plugins for it? It looks like a good idea!
EDIT: Found the docs on the editdisk japanese page, looking into it, cheers!
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: caius on July 08, 2014, 05:09:30 AM
Quote from: AnnaWu on July 07, 2014, 11:33:33 PM
Example: white cat made a additional plug-in for the DiskExplorer to edit MEGA-SCSI and Sunrise IDE hard disk images for MSX.
Of course you can import, export, rename, delete, ... files.
tinyurl.com/puywyz7
tinyurl.com/qj28qv2

And Kasanova (the creator of UNZ emulator) made the plug-in to handle FM-TOWNS HDD images.
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: AnnaWu on July 08, 2014, 05:38:40 AM
QuoteAn Kasanova (the creator of UNZ emulator) made the plug-in to handle FM-TOWNS HDD images.

Yes, this is known but to support other floppy disk image formats beside EX68 as example will be not bad.
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: eidis on July 08, 2014, 05:44:03 AM
Hi Vampirefrog !

Would it be possible for you to write a simple program which allows writing XDF and DIM images to physical media and vice versa ? Kind of like xFloppy but compatible with new operating systems ?

Keep the scene alive !
Eidis
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: Opethian on July 08, 2014, 05:49:05 AM
compatible with USB drives in particular. Im contemplating getting a kryoflux soon.
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: vampirefrog on July 08, 2014, 06:10:41 AM
Duh, in the meantime I've found that you can just configure editdisk to read XDF and DIM images, here is how:

for XDF files, just select 'plain image' and it will open it properly.

For DIM files, just append this to types.ini:


[Human68k DIM Floppy image]
Extension = ".DIM"
ProfileType = 1
HDDType = 2
DiskStart = 256
Sectors = 0
Heads = 0
Cylinders = 0
SecLen = 1024

Title: Re: I've written a tool for handling Human68k FAT images.
Post by: vampirefrog on July 08, 2014, 06:12:53 AM
Quote from: eidis on July 08, 2014, 05:44:03 AM
Hi Vampirefrog !

Would it be possible for you to write a simple program which allows writing XDF and DIM images to physical media and vice versa ? Kind of like xFloppy but compatible with new operating systems ?

Keep the scene alive !
Eidis

Quote from: Opethian on July 08, 2014, 05:49:05 AM
compatible with USB drives in particular. Im contemplating getting a kryoflux soon.


I really wouldn't know where to begin, since I don't own such devices. Also, I'm sure it's possible to write the image file to the floppy once you have it, even with kryoflux.
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: AnnaWu on July 08, 2014, 06:30:28 AM
Quote from: vampirefrog on July 08, 2014, 06:10:41 AM
Duh, in the meantime I've found that you can just configure editdisk to read XDF and DIM images, here is how:

For DIM files, just append this to types.ini:


[Human68k DIM Floppy image]
Extension = ".DIM"
ProfileType = 1
HDDType = 2
DiskStart = 256
Sectors = 0
Heads = 0
Cylinders = 0
SecLen = 1024


Simple but effective, thanks!
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: H68k on July 09, 2014, 02:56:12 AM
Vampirefrog

Would you consider "fleshing out" or in other words, adding some more of the proposed features to your disk utility program before you decide to call it a day on it?

It would be grate to have a program that could handle certain disk images. without a chance of corruption occering like with editdisk (the author of edit disk said he was aware of the problem and that the next version due for release was going to try and fix this issue.. but sadly.. it never saw the light of day).
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: vampirefrog on July 10, 2014, 02:58:00 AM
Sure, please list your top 3 wishes for the project.

grate -> great
occering -> occurring

Has anyone obtained the editdisk source?  Can someone contact the author? I'd gladly take it over if he agrees to open source it.
Title: Re: I've written a tool for handling Human68k FAT images.
Post by: vampirefrog on July 11, 2014, 09:58:46 PM
Just gathering info here about the file formats:

Floppy formats:
.2HD - 1232K, no header
.2DD - 720K, no header
.2HQ - 1440K, no header
.D68 - Contains a 704 byte header, can be of multiple sizes
.D88 - Seems the same as .D68
.DIM - Contains a 256 byte header
.DUP - 1232K, no header
.HDM - 1232K, no header
.IMG - 1232K, no header
.XDF - 1232K, no header

Disk formats:
.HDF - SASI image
.HDS - SCSI image
.MOS - SCSI MO drive image
Title: Re: Tool for handling Human68k FAT images.
Post by: vampirefrog on July 11, 2014, 11:31:50 PM
.DIM Floppy image format

Consists of a 256-byte header, followed by the floppy image.

- Contains the 13-byte string DIFC HEADER  (two trailing spaces) at offset 0xAB (171).
- Contains a disk name at offset 0xc2 (60 bytes max, including zero-terminator) (need to check this)
- Contains 8 bytes of IOCS data at offset 0xba
- Contains a byte describing the disk type at offset 0x00:
#FormatBytes per sectorSectors
02HD/2HDA10248
12HS10249
22HC51215
32HDE10249
92HQ51218
17N88-BASIC25626

I obtained this info by looking at XM6 source code.

The floppy formats are also described here http://datacrystal.romhacking.net/wiki/X68k:FD_Format (http://datacrystal.romhacking.net/wiki/X68k:FD_Format)

(http://i.imgur.com/xScaeKh.jpg)
Title: Re: Tool for handling Human68k FAT images.
Post by: Opethian on July 12, 2014, 12:52:14 AM
nice! Im just gonna strip all these .dim files and make then .xdf
thanks vamp!
Title: Re: Tool for handling Human68k FAT images.
Post by: vampirefrog on July 12, 2014, 05:07:43 AM
Quote from: Opethian on July 12, 2014, 12:52:14 AM
nice! Im just gonna strip all these .dim files and make then .xdf
thanks vamp!

What's the point of that?
Title: Re: Tool for handling Human68k FAT images.
Post by: 98pacecar on July 12, 2014, 05:11:20 AM
Omniflop wants files in XDF format to be able to write them. It doesn't seem to support DIM files natively.
Title: Re: Tool for handling Human68k FAT images.
Post by: vampirefrog on July 12, 2014, 07:38:35 AM
Quote from: 98pacecar on July 12, 2014, 05:11:20 AM
Omniflop

Wow that thing looks ancient, at least from the web page :D
Title: Re: Tool for handling Human68k FAT images.
Post by: eidis on August 07, 2014, 01:35:30 AM
 Hi Vampirefrog !

Any news ?

Keep the scene alive!
Eidis