English Amiga Board


Go Back   English Amiga Board > Support > support.Demos

 
 
Thread Tools
Old 21 November 2006, 15:57   #1
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,451
Combine split .dms files?

Downloaded some megademos from ftp and most of them are split in half (to fit on PC floppys I guess). Stupid question maybe, but how do I combine them to one .dms to run in WinUAE? Mounting each half in DF0: and DF1: in WinUAE and copy tracks with X-Copy or something would take too much time I think
Photon is offline  
AdSense AdSense  
Old 21 November 2006, 16:02   #2
thor
Registered User
thor's Avatar
 
Join Date: Mar 2006
Location: Germany
Posts: 898
Does this work: copy /b first.dms+second.dms final.dms?
thor is offline  
Old 21 November 2006, 16:03   #3
Belgarath
HOL Team Member

Belgarath's Avatar
 
Join Date: Dec 2001
Location: Manchester
Posts: 2,392
copy /b is the method I always use for joining split .dms files.
Belgarath is offline  
Old 21 November 2006, 18:16   #4
Adderly
[Satan^God]
Adderly's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 701
Send a message via ICQ to Adderly
Strange that this works for you.
I always depack the two dms parts to adf-images and then join the adf files.
If you join two dms files you have the header of the second dms-file added in the middle of the joined file and at least the popular XDMS cannot depack those files!
Just tested: original amiga DMS can depack those joined dms files, seems it ignores the second header information. Dunno about Winuae's dms handling....
Adderly is offline  
Old 21 November 2006, 19:53   #5
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,451
Did the copy /b, got a file of the right size, WinUAE guru'd when I opened it.

Anyone have a link to a clear and concise description of the .dms format? Might do a quick PC utility...
Photon is offline  
Old 21 November 2006, 20:17   #6
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,451
Found a description here:

http://lclevy.club.fr/amiga/DMS.txt

If I do a utility I will limit it to two .dms files, only use track info to see if they are contiguous and don't overlap, and I won't interpret the track data at all, just form a new file with a (modified) single header.

I'll see if I can do it tonight... meanwhile, anyone see a problem with that method?
Photon is offline  
Old 21 November 2006, 20:38   #7
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,451
Hmm, might get trouble with unpacked/packed CRC, especially unpacked CRC since I don't want to unpack it... Is it a simple 16-bit sum, so I can add the words from the respective .dms files to join? But it's probably a "proper" CRC though, is it the 16-bit IBM CRC, or what flavor. Argh.
Photon is offline  
Old 21 November 2006, 20:39   #8
Codetapper
2 contact me: email only!

Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,135
Why not just insert a blank disk, unpack the first DMS to it (using DMS of course), then unpack the second DMS and now you have the complete ADF? It won't matter if tracks overlap or anything.
Codetapper is offline  
Old 21 November 2006, 23:50   #9
Adderly
[Satan^God]
Adderly's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 701
Send a message via ICQ to Adderly
Codetapper is right. It's very easy, no tool coding needed. You can also use xdms to unpack both splitted dms files and then a simple copy /b later you have what you want...
Dms used the x^16+x^15+x^2+1 polynom as CRC-16 for the headers and for all tracks.
Adderly is offline  
Old 25 November 2006, 02:09   #10
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,451
CodeTapper, Adderly, sure - but then I have to do that for every megademo I've downloaded from scene.org... As a programmer I like niftier solutions, if possible I mean, there are tons of split archives out there...
Quote:
Originally Posted by Adderly
Dms used the x^16+x^15+x^2+1 polynom as CRC-16 for the headers and for all tracks.
Right, so it's not possible to combine the checksums without interpreting the compressed or uncompressed data. Gah.
Photon is offline  
Old 25 November 2006, 03:28   #11
thor
Registered User
thor's Avatar
 
Join Date: Mar 2006
Location: Germany
Posts: 898
You could make a batch file for using xdms:
Code:
xdms.exe u %1.dms
xdms.exe u %2.dms
copy /b %1.adf+%2.adf %3.adf
Then you can write
Code:
xdms.bat part1 part2 final
(without endings!) for joining part1.dms and part2.dms to final.adf.

Or you can replace
Code:
fo = fopen(oname,"wb");
with
Code:
fo = fopen(oname,"ab");
in pfile.c of the xdms sources and then you can use the batch file

Code:
if exist %3 goto error
xdms.exe u %1 +%3
xdms.exe u %2 +%3
goto end
:error
echo Output file %3 exists already
:end
This way you can use it with endings or without.
thor is offline  
Old 25 November 2006, 12:00   #12
Phiber
Hardware Freak
Phiber's Avatar
 
Join Date: May 2002
Location: Helsinki / Finland
Age: 43
Posts: 222
Send a message via MSN to Phiber
I remember asking this question a few years back.. AFAIR never really got a decent answer back then.. maybe this time..?
Phiber is offline  
Old 25 November 2006, 19:09   #13
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,451
Thor: Sweet. Might do a simple shell for it that does a search for split archives in the directory of choice and turns them all into .adfs.
Photon is offline  
Old 30 November 2006, 23:29   #14
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 43
Posts: 5,858
Send a message via ICQ to andreas Send a message via AIM to andreas
@Phiber: well Heikki aka "shd" has taken over xDMS development from Andre.
=> http://zakalwe.fi/~shd/foss/xdms/

He's been absent for ages now, but if anyone is interested in adding this, it's him - Andre doesn't have time for that stuff anymore.
andreas is offline  
Old 01 December 2006, 12:07   #15
Paul
RIP Friends
Paul's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 2,157
Also see this thread
http://eab.abime.net/showthread.php?t=25018
Paul is offline  
Old 14 September 2017, 22:39   #16
chip
Registered User
chip's Avatar
 
Join Date: Oct 2012
Location: Italy
Age: 43
Posts: 101
You can use ADF Workshop

There's a command called "Merge some files..." which can be used to put together the splitted .dms
chip is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find out what files are missing? [split from "Reactions to GBA v1.4 release"] formater project.MAGE 1 03 June 2007 18:45
DMS files RokChild support.WinUAE 2 28 May 2007 10:47
Split .DMS files - splicing them back together Phiber New to Emulation or Amiga scene 6 04 May 2003 13:51
DMS files Mr Creosote New to Emulation or Amiga scene 3 27 October 2002 15:07

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:47.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.19746 seconds with 14 queries