Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: Sparkolicious 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 (http://mrdo.mameworld.info/compile.php)
Follow those instructions and use these .bat files instead. Worked for me.
-
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.
-
Here it is but please remember that some CHDs should not be converted to new format
@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]
-
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?
-
There was such topic at [romsite name redacted].
-
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.
-
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
^|find /v "chd convert.cmd"^|find /v "chdman64.exe"