Crashing HxC software

Anything related to the tools Tap2Wav, Tap2CD, Tap2Dsk, Sedoric Disc Manager, Tape Header Creator, WriteDsk, and generaly speaking tools related to the management of Oric data files and devices.
User avatar
Dbug
Site Admin
Posts: 5263
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Crashing HxC software

Post by Dbug »

I was trying to make 3" disks of Pulsoids, but I found out that the .DSK in Oric.org had 82 tracks, I tried to convert it to a 42 tracks file, it worked just fine in Oricutron, but when I tried to convert it to .HFE (or .IMD) using the HxC software the program exploded.

I've posted on the HxC forum: https://hxc2001.com/floppy/forum/viewtopic.php?t=4703
But since these games are only using a fraction of the available storage, my idea was just to format a new floppy in 42 tracks and copy the files, so what I did was to boot Oricutron with SEDORIC3.DSK in drive A, PULSOIDS.DSK (82 tracks) in drive B and UNFORMATED.DSK in drive C.

Then all I did is:

Code: Select all

INIT C,17,42,D
COPY "B-*.*" to C
Then I renamed UNFORMATED.DSK to PULSOIDS-42-17.DSK, rebooted the emulator on this floppy and validated that it worked just fine.
If someone feels like checking if something's wrong with my files, they are attached to this post.
You do not have the required permissions to view the files attached to this post.
User avatar
iss
Wing Commander
Posts: 1925
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Crashing HxC software

Post by iss »

Dbug wrote: Fri Sep 12, 2025 7:02 pm If someone feels like checking if something's wrong with my files, they are attached to this post.
Well, Jeff@hxc2001.com pointed the problem - it's the incorrect size of the DSK file.

Here are the actual details:
the main issue is in Oricutron - after any write operation DSK's size is automatically extended to:
2 sides * 128 tracks * 6400 bytes + 256 bytes header = 1638656 bytes!
The bug is that the header is NOT updated with the new sides/tracks values. Source:

Code: Select all

  if( rawimglen )
  {
    // FIXME: this is temporary solution to allow
    // low-level formatting up to 128 track per side
    if( 143360 != rawimglen && rawimglen < 128*2*6400+256 )
      rawimglen = 128*2*6400+256;

    buf = malloc( rawimglen );
    if( !buf ) return NULL;
  }
As workaround you can patch the header with hex-editor:
20250913_013530.jpg
... and then hxcfe will work and the new HFE image will be good,
... but this is a very ugly hack. :)

Else, I will be very happy to discuss and to find a proper solution for this (bare in mind Oricutron knows nothing about the logical DSK layout). Actually I've posted about it in the past (click) and now I reopened the github-issue #152... :D
You do not have the required permissions to view the files attached to this post.
User avatar
Dbug
Site Admin
Posts: 5263
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Crashing HxC software

Post by Dbug »

Ok, makes sense, and the Greaseweazle is smart enough to only write the 42 tracks I specified in the geometry parameters even if the physical file was larger.

I understand expanding the file during the formatting, but when I checked the header I did have "MFM_DISK 2 sides 42 tracks", is that written by Oricutron?

Could it not be as simple as handling a truncation of the file when Oricutron unmounts the disk, so either when swapping for another disk or before quitting if there was any changes made to the disk?
User avatar
Dbug
Site Admin
Posts: 5263
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Crashing HxC software

Post by Dbug »

Ok, I successfully made two 3" floppies of Pulsoids, and now I just encountered a "funny" read error on Magnetix Oo

I tried to make the same thing (transfer from 82 to 42 tracks) in Oricutron, but apparently the Magnetix source disk is corrupted!
image_2025-09-13_081701619.png
I wonder if the Magnetix DSK file has been corrupted all these years and we never realized before?

EDIT: I seem to have multiple different files on my hard drive, hopefully one of them is correct!
image_2025-09-13_082309818.png
You do not have the required permissions to view the files attached to this post.
User avatar
iss
Wing Commander
Posts: 1925
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Crashing HxC software

Post by iss »

Dbug wrote: Sat Sep 13, 2025 7:17 am EDIT: I seem to have multiple different files on my hard drive, hopefully one of them is correct!
This looks to me like an updated High Score table... :)
Here is what "versions" I found on internet:

Code: Select all

CRC32                                   Size        URL
edce36ac        0-magnetix.dsk          1049856     https://twilighte.oric.org/twinew/magnetix.htm
edce36ac        1-magnetix.dsk          1049856     https://www.oric.org/software/magnetix-581.html
edce36ac        2-magnetix.dsk          1049856     https://www.planetemu.net/rom/tangerine-oric-1-atmos-telestrat-disk/magnetix-1993-jonathan-bristow-pd
4972da11        3-magnetix.dsk          1049856     https://www.planetemu.net/rom/tangerine-oric-1-atmos-telestrat-disk/magnetix-1993-jonathan-bristow-pd-a
92da62f0        0-magnetix-demo.dsk     537856      https://doperoms.org/files/roms/oric/Magnetix+Demo+by+Twilighte+%28UK%29+%281994%29+%28PD%29.zip/634990/Magnetix+Demo+by+Twilighte+.zip
And the diff 2-magnetix.dsk vs. 3-magnetix.dsk is exactly as by you:
20250913_150456.jpg
Off-topic here: beside the issue "Oricutron writes DSKs" I'm very eager to have discussion about an "Oric media library" which can easily compare and classify TAPs and DSKs by their content. I've started someting with TAP files and it looks promising so far but it stil in "theory phase"...
You do not have the required permissions to view the files attached to this post.
User avatar
Dbug
Site Admin
Posts: 5263
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Crashing HxC software

Post by Dbug »

iss wrote: Sat Sep 13, 2025 1:14 pm Off-topic here: beside the issue "Oricutron writes DSKs" I'm very eager to have discussion about an "Oric media library" which can easily compare and classify TAPs and DSKs by their content. I've started someting with TAP files and it looks promising so far but it stil in "theory phase"...
Well, having known checksums of file contents for disk and tapes would definitely help with finding corruption issues, but also differentiating the various versions of the same game. There are probably already standardized way to do that?
User avatar
Symoon
Archivist
Posts: 2532
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: Crashing HxC software

Post by Symoon »

I was about to post here that you should give a try making DSK files with Euphoric but didn't want to interfere as I hadn't read the problems in detail.

But for information, Dbug and I just solved the Magnetix copy problem by using Euphoric. At least this is solved!
User avatar
Symoon
Archivist
Posts: 2532
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: Crashing HxC software

Post by Symoon »

Dbug wrote: Sat Sep 13, 2025 2:26 pm
iss wrote: Sat Sep 13, 2025 1:14 pm Off-topic here: beside the issue "Oricutron writes DSKs" I'm very eager to have discussion about an "Oric media library" which can easily compare and classify TAPs and DSKs by their content. I've started someting with TAP files and it looks promising so far but it stil in "theory phase"...
Well, having known checksums of file contents for disk and tapes would definitely help with finding corruption issues, but also differentiating the various versions of the same game. There are probably already standardized way to do that?
I support the idea, wishing you luck!
Some original programs exist in 3 or 4 different (silent) releases: fast or slow mode, silent fixes, Atmos/Oric-1 versions, new batches with new protections, and some probably being batches that used the same program but from a different master, with different bytes in the header, etc.

Having a way to catalog, CRC them and have a comment section alongside would be great.
It would be great if the CRC could ignore the synchro bytes and the extra bytes (after the end of the program) that sometimes exist in TAP files. But that won't be easy when the content hold specific loading routines using specific synchro etc.
User avatar
iss
Wing Commander
Posts: 1925
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: Crashing HxC software

Post by iss »

Oricutron fixed now! :)
User avatar
Dbug
Site Admin
Posts: 5263
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: Crashing HxC software

Post by Dbug »

iss wrote: Sun Sep 14, 2025 9:56 pm Oricutron fixed now! :)
I'll have to check that.

Just wanted to say that I was able to make 3" version of Magnetix using Symoon version!
Post Reply