MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Pages: 1

mw
MAME Fan
Reged: 01/01/07
Posts: 76
Send PM


Converting new (0.185) v4 -> v5 CHDs
#365049 - 04/09/17 06:42 PM


See the comment by p1pkin here: https://github.com/mamedev/mame/commit/cfa43e6ae554920d99f307a7959e2a656e3dfa70



mw
MAME Fan
Reged: 01/01/07
Posts: 76
Send PM


Re: Converting new (0.185) v4 -> v5 CHDs new [Re: mw]
#365219 - 04/15/17 09:06 PM Attachment: convert.7z 19 KB (26 downloads)


Spotted over on RR a few days ago: http://www.retroroms.info/forum/topic/MAME-0-185-SL-CHD-sooner-requests.htm#1387

Quote:


Here is a batch file to process these conversions.

They converted easily, except for radirgyo\gdl-0032. The problem with it seems to be that the first .bin file unpacked from the v4 CHD isn't correct. The correct .bin file compresses down pretty well, so I have included it in this distribution. The batch file will automatically replace the incorrect .bin file with the correct one.

This distribution contains the batch files and two command line utilities to truncate and byteswap files, plus the correct gdl-0032 first .bin file. Also included is the C# source code for trunc.exe and byteswap.exe (in the src folder). You don't need to compile them, they are only there for reference.

What you have to do to prep:

Place a copy of all the .chd files that need to be converted into a single folder and unpack the distribution (convert.7z) there as well. Also place a copy of chdman.exe into that folder. I used v0,184, but any recent version of chdman.exe ought to work.

Here is a list of the .chd files that can be converted:

cleoftp\gdl-0012.chd
radirgyo\gdl-0032.chd (may be in the radirgy folder)
monkeyba\gds-0008.chd
lupinsho\gds-0018.chd
initdv3jb\gds-0032b.chd (may be in the initdv3j folder)
tfupdate\gdt-0011.chd
avalon20\gdt-0017b.chd
hotd3\gdx-0001.chd
mj2\gdx-0006c.chd (may be in the mj2 folder)
ghostsqu\gdx-0012a.chd
gundamos\gdx-0013.chd
outr2st\gdx-0014a.chd
wangmid2j\gdx-0015.chd (may be in the wangmid2 folder)
wangmid2\gdx-0016a.chd
mj3d\gdx-0017d.chd (may be in the mj3 folder)
scg06nt\gdx-0018a.chd

Run the doAll.bat batch file to convert everything. It will call the doOne.bat batch file for each conversion. If you don't want to convert everything at once, you can remove lines from the doAll.bat file. Each CHD file conversion will take a few minutes, spending most of the time compressing the new .chd file. The converted CHDs will appear in a subfolder named "new" under the folder you are working from. The SHA1: hash will appear for each .chd file as it completes. If the batch file finds the CHD it is about to process is already in the "new" folder, it will skip it. If the batch file does not find the specified .chd file, it will skip it. You can interrupt the batch file with Ctrl-C, but it might leave a partial CHD in the "new" folder, so you might have to delete that partial ,chd file afterwards. If you are in any doubt about the .chd files in the "new" folder, you can run the chdman "verify" command on them.





R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Converting new (0.185) v4 -> v5 CHDs new [Re: mw]
#365281 - 04/19/17 01:58 AM


Use this process at your own risk; you are on your own if it destroys all your CHDs and you end up having to blow a bunch of PD ratio to recover.

Additionally, I have not yet verified that discs processed in this manner won't actually need to be redumped in the future.


Pages: 1

MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 22 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3458