Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: These may be helpful  (Read 2061 times)

0 Members and 1 Guest are viewing this topic.

Sparkolicious

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:June 21, 2024, 11:49:25 pm
  • Measure twice cut once dern it!
These may be helpful
« on: January 23, 2015, 12:33:55 pm »
Below are some batch files that I have found pretty helpful in this hobby. If you don't find them useful, or they don't work for you well.. disregard.

7zip-

All of those files that you want to 7zip.  Place the 7z.bat file in the directory with the files you want to 7zip and execute. If you have 7zip installed, it should run through and 7zip everything nicely. Nothing will be deleted just in case. You will have an archive and the original.

.nib conversion-

Because all of those c64 .nib files want to be .g64. You will have to edit this file a little based on the location of nibconv.exe. For example min is in "p:\nibtools\nibconv.exe". Simply change that bit of text and place nibconv.bat in the directory with all of your .nib files and execute. Nothing will be deleted just in case. You will have .g64 and the original .nib.

makemess and makemame-

Both of these are used to shorten the crap you have to type to start compiling mess64 and mame64. This is an update to the compile_extras.zip available from Mr. Do. If you haven't been to Mr. Do's arcade and read the link on applying .diff's and compiling mame, here it is:

http://mrdo.mameworld.info/compile.php

Follow those instructions and use these .bat files instead. Worked for me.


MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: These may be helpful
« Reply #1 on: January 23, 2015, 01:17:27 pm »
I'm sure they will help people out!

Does anyone have a script to convert my chds to the latest format? I have each of the CHDs in their own subfolder in the roms directory. So, it like roms\carneveil\carnevil.chd etc. etc.
I suppose I could brush up and make one myself....but why reinvent the wheel...plus, I am getting lazy.

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1543
  • Last login:July 15, 2025, 03:41:34 pm
  • retro maniac
Re: These may be helpful
« Reply #2 on: January 23, 2015, 01:51:03 pm »
Here it is but please remember that some CHDs should not be converted to new format

Code: [Select]
@echo off
set old_dir=.\
set new_dir=.\CHDs_new
set chdman=.\chdman64.exe

if NOT exist "%old_dir%" (
   goto :EOF
)

for /F "tokens=*" %%a in ('dir /b "%old_dir%"^|find /v "chd convert.cmd"^|find /v "chdman64.exe"') DO (
   if NOT exist "%new_dir%\%%a" (
      mkdir "%new_dir%\%%a"
   )
   for /F %%b in ('dir /b "%old_dir%\%%a"') do (
      echo Converting: %%b
      "%chdman%" copy -i "%old_dir%\%%a\%%b" -o "%new_dir%\%%a\%%b"
   )
)

Just save it as convert.cmd and put chdman exe named chdman64.exe (if you use 64bit version). Now:

set old_dir=.\                       [it's your chds main directory]
set new_dir=.\CHDs_new      [it's your new chds directory]
set chdman=.\chdman64.exe [name of your chdman exe]
« Last Edit: January 23, 2015, 01:53:44 pm by haynor666 »

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: These may be helpful
« Reply #3 on: January 23, 2015, 02:06:28 pm »
Thanks! Last question...
Is there a list of which CHDs should not be converted...or if they are (since this will be automated), is it detrimental if they were?

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1543
  • Last login:July 15, 2025, 03:41:34 pm
  • retro maniac
Re: These may be helpful
« Reply #4 on: January 23, 2015, 03:30:50 pm »
There was such topic at [romsite name redacted].
« Last Edit: February 05, 2015, 01:45:23 am by PL1 »

MKChamp

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 502
  • Last login:February 07, 2024, 02:45:53 pm
  • Stil around.
Re: These may be helpful
« Reply #5 on: January 23, 2015, 03:40:33 pm »
Thanks...I'll go check it out.

Since my zip roms were in the same directory as my chd folder, it started to try to convert all of them. I changed the one line to this to process only the files in the sub folders:

for /F "tokens=*" %%a in ('dir /b /A:D "%old_dir%"^|find /v "chd convert.cmd"^|find /v "chdman64.exe"') DO (

Added the /A:D parameter...just in case anyone else has the same rom/chd storage as me.
« Last Edit: January 23, 2015, 04:26:10 pm by MKChamp »

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1543
  • Last login:July 15, 2025, 03:41:34 pm
  • retro maniac
Re: These may be helpful
« Reply #6 on: January 23, 2015, 04:59:22 pm »
For this script I temporary move all chds to different directory so I didn't bothered to exclude files but yeah that's a good idea to exclude files as well. I think with this modification you could remove
Code: [Select]
^|find /v "chd convert.cmd"^|find /v "chdman64.exe"