stigzler Posted December 14, 2013 Share Posted December 14, 2013 Hi folks. I made this to solve a problem I was having with my PSX roms. Thought I'd share to spare others in similar situation the pain!Scenario: You have a bunch of psx roms you've sourced to match the ones you own for your console. All zipped, but with varying contents (some have .bin and .cue; others with .sub, .img, .cue etc). Furthermore, some are further sub-compressed with a .ecm extention (e.g. tekken.bin.ecm). This .bat file tackles these multi-format roms and launches them from GameEx. Furthermore, there is the option to create a separate 'quicklaunch' folder so you don't have to unzip the same game in the future. Limitations: ROM root folders must be zipped. Also, you will need at least one .cue, .mds or .ccd file in the zip. (however, it is OK if these are ".ecm" at the end too - for e.g. "tombraider.cue.ecm)Below, the zipped multi-format roms in the top window and various content to the right. Bottom left window, the auto generated unzipped + processed roms. :You'll need to set up two emulators - one for the zipped roms and one for the quicklaunch. Configs:Launch Zipped Games:[Emulator]Enabled=TrueSystem=Sony PlaystationCategory=ConsoleEmulator=ePSXeVersion=1.9.0Rating=8.3DownloadUrl=http://www.gamesdbase.com/setupwizard/emulators/download/epsxe.7zRequiredFiles=scph1001.bin (512kb)Website=http://www.epsxe.com/Info=Sony Playstation EmulatorTitleText=Sony PlaystationStartPageName=Sony Playstation (ePSXe) SlowloadStartPageLogo=Sony PlaystationCommand=ePSXe.bat "[rompath]" "[romfile]"RomFilter=*.cue;*.mds;*.ccdDatabase=[Console] Sony PlayStationConfigFile=[Mapping Off] Exit (Process Close)MapFile=[Console] Sony Playstation.mapRomPath=J:\Sony Playstation\psx_mixed_setSnapPath=I:\Assets\Sony_Playstation\SnapTitlePath=I:\Assets\Sony_Playstation\TitleBoxPath=I:\Assets\Sony_Playstation\BoxCartPath=I:\Assets\Sony_Playstation\Box_3DManualPath=I:\Assets\Sony_Playstation\ManualControlPanelPath=\Sony Playstation\ControlsWorkingPath=C:\Emulators\PLaystation\ePSXe190MapKeys=TrueWaitBeforeKeys=SendKeys=ReplaceDash=FalseReplaceUnder=TrueCapitals=FalseRemoveBrackets=TrueShowDesktop=TrueDebug=FalseAlsoLaunch=LaunchBefore=LaunchAfter=ExcludedFiles=CustomBackground=PlayMusic=FalseDontShowInfo=PlaySelectionMusic=FalseSelectionMusicFolder=PCGame=FalseGamesIn7Zips=TruePlayInScreenSaver=FalseShowMostPlayed=TrueRandomMostPlayed=TrueCDCheck=FalseCDCheckFile=VideoSnapPath=I:\Assets\Sony_Playstation\Video_MP4_HI_QUALUseDbName=TrueTVAdPath=GameExtenderCustomArtPath=I:\Assets\Sony_Playstation\BoxRomsInFolders=Truelastgame=Launch Quicklaunch Games:[Emulator]Enabled=TrueSystem=Sony PlaystationCategory=ConsoleEmulator=ePSXeVersion=1.9.0Rating=8.3DownloadUrl=http://www.gamesdbase.com/setupwizard/emulators/download/epsxe.7zRequiredFiles=scph1001.bin (512kb)Website=http://www.epsxe.com/Info=Sony Playstation EmulatorTitleText=Sony PlaystationStartPageName=Sony Playstation (ePSXe) QuicklaunchStartPageLogo=Sony PlaystationCommand=epsxe.exe -nogui -loadmemc0 "memcards\[rom]"RomFilter=*.cue;*.mds;*.ccdDatabase=[Console] Sony PlayStationConfigFile=[Mapping Off] Exit (Process Close)MapFile=[Console] Sony Playstation.mapRomPath=J:\Sony Playstation\psx_quicklaunchSnapPath=I:\Assets\Sony_Playstation\SnapTitlePath=I:\Assets\Sony_Playstation\TitleBoxPath=I:\Assets\Sony_Playstation\BoxCartPath=I:\Assets\Sony_Playstation\CDManualPath=I:\Assets\Sony_Playstation\ManualControlPanelPath=\Sony Playstation\ControlsWorkingPath=C:\Emulators\PLaystation\ePSXe190MapKeys=TrueWaitBeforeKeys=SendKeys=ReplaceDash=FalseReplaceUnder=TrueCapitals=FalseRemoveBrackets=TrueShowDesktop=TrueDebug=FalseAlsoLaunch=LaunchBefore="C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe" -mount scsi, 0,"[rompath]\[romfile]"LaunchAfter="C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe" -unmount scsi, 0ExcludedFiles=CustomBackground=PlayMusic=FalseDontShowInfo=PlaySelectionMusic=FalseSelectionMusicFolder=PCGame=FalseGamesIn7Zips=FalsePlayInScreenSaver=FalseShowMostPlayed=TrueRandomMostPlayed=TrueCDCheck=FalseCDCheckFile=VideoSnapPath=I:\Assets\Sony_Playstation\Video_MP4_HI_QUALUseDbName=TrueTVAdPath=GameExtenderCustomArtPath=RomsInFolders=Truelastgame=Place this bat file in your epsxe directory:@echo onset directory=%1set directory=%directory:~1,-1%set file=%2set file=%file:~1,-1%set gamename=%file:~0,-4%set intReturn2==9:: User Variables - SET HERE!:: Location of Quicklaunch Folder:set quicklaunchdir=J:\Sony Playstation\psx_quicklaunch:: Location of PakkISO Folder:set PakkISOdir=C:\Program Files (x86)\PakkISO:: Location of DaemonTools Folderset DTexe=C:\Program Files (x86)\DAEMON Tools Lite/DTLite.exe:: Enable/Disable Quicklaunch folder creation (Set to 1 to enable):set qlaunch=1:: Enable/Diable unzip (of any zipped within original zipped folder) - Set to 1 to skip:set 7zskip=0:: Codemkdir %temp%\Gameex_tempcd %temp%\Gameex_tempecho Set objArgs = WScript.Arguments >> messagebox.vbsecho Set objShell = CreateObject("Wscript.Shell") >> messagebox.vbsecho intReturn = objShell.Popup(objArgs(0), 1, "Recreating Playstation image") >> messagebox.vbsmessagebox.vbs "Copying Files...."copy "%directory%\*.*" %temp%\Gameex_tempcopy "%PakkISOdir%\*.*" %temp%\Gameex_tempcd %temp%\Gameex_temp:7zunpackif %7zskip% ==1 goto ecmprocmessagebox.vbs "Extracting 7z...."7za e "%directory%\*.7z":ecmprocmessagebox.vbs "Decompressing ECM..."unecm.exe *.ecmdel "*.ecm":apeprocmessagebox.vbs "Uncompressing APE audio..."for %%i in ("%directory%\*.ape") do mac "%%i" "%%~ni.wav" -d && sox.exe "%%~ni.wav" -t raw -s -c 2 -w -r 44100 "%%~ni.bin" && del "*.wav"del "*.exe":makeqlaunchif %qlaunch% ==0 goto mountstartmessagebox.vbs "Creating new quicklaunch files..."Echo Deleting extra filescd %temp%\Gameex_tempdel "*.txt"del "*.dat"del "*.bat"%quicklaunchdir:~0,2%cd %quicklaunchdir%mkdir "%gamename%"set fullpath=%quicklaunchdir%\%gamename%copy "%temp%\Gameex_temp\*.*" "%fullpath%":mountstart%temp:~0,2%cd %temp%\Gameex_tempmessagebox.vbs "Mounting image and starting emulation...""%DTexe%" -mount scsi, 0,"%temp%\Gameex_temp\%file%"cd C:\Emulators\PLaystation\ePSXe190start/wait epsxe.exe -nogui -loadmemc0 "memcards\%gamename%"ping -n 3 localhost > nul"%DTexe%" -unmount scsi, 0cd %temp%\Gameex_tempmessagebox.vbs "Tidying up......."if %qlaunch% ==0 goto delgamextemp%quicklaunchdir:~0,2%cd %fullpath%del "*.vbs"%temp:~0,2%cd %temp%\Gameex_temp:delgameextemprmdir /s /q %temp%\Gameex_temp:: NOTES:: By Stigzler (Search "Mago 20.13a" for cab) 8:):: Thanks to Chal021 for original code (search "ECMTools ePSXe gameex"):: For use with GameEx and Zipped psx roms:: Functions::: - Accesses GameEx's "Unzipped7-Zip" Folder:: - Removes any .ecm and .ape compression and converts into original format (e.g. bin or img):: - If option chosen, copies unzipped, converted files into new folder (for quicklaunch folder):: - Mounts, launches game and unmounts on exit of emu:: - Removes any temporary files.:: Pre-Requisites::: PakkISO - (Google):: DaemonTools Lite - (Google):: EPsxE - (Google):: Drive 0 of Daemon Tools set up as SCSI drive (you'll have to figure this!):: Setup::: Save this file as epsxe.bat into the root directory of epsxe (same folder as epsxe.exe):: GameEx Settings::: Command line: ePSXe.bat "[rompath]" "[romfile]":: 7-Zip Support: On:: Scan Subfolders: On:: Rom Filters: *.cue;*.mds;*.ccd:: NO commands in "launch before" or "launch after":: Works with following file types in zipped folders (any permutation)::: all .ecm:: .bin .cue:: .ccd .img .sub:: .mds .mdfFurther notes about setup at bottom of .bat file::: NOTES:: By Stigzler (Search "Mago 20.13a" for cab) 8:):: Thanks to Chal021 for original code (search "ECMTools ePSXe gameex"):: For use with GameEx and Zipped psx roms:: Functions::: - Accesses GameEx's "Unzipped7-Zip" Folder:: - Removes any .ecm and .ape compression and converts into original format (e.g. bin or img):: - If option chosen, copies unzipped, converted files into new folder (for quicklaunch folder):: - Mounts, launches game and unmounts on exit of emu:: - Removes any temporary files.:: Pre-Requisites::: PakkISO - (Google):: DaemonTools Lite - (Google):: EPsxE - (Google):: Drive 0 of Daemon Tools set up as SCSI drive (you'll have to figure this!):: Setup::: Save this file as epsxe.bat into the root directory of epsxe (same folder as epsxe.exe):: GameEx Settings::: Command line: ePSXe.bat "[rompath]" "[romfile]":: 7-Zip Support: On:: Scan Subfolders: On:: Rom Filters: *.cue;*.mds;*.ccd:: NO commands in "launch before" or "launch after":: Works with following file types in zipped folders (any permutation)::: all .ecm:: .bin .cue:: .ccd .img .sub:: .mds .mdfBefore I'm flamed - I aint no coder, so it aint the tidiest or most eloquent, but it bloody works!!Hope this is of some use to someone! 2 Link to comment Share on other sites More sharing options...
DazzleHP Posted December 14, 2013 Share Posted December 14, 2013 There have been a few posts about PSX image files recently so no doubt this will be a welcomed work around. Thanks for the contribution stigzler! Link to comment Share on other sites More sharing options...
nullPointer Posted December 14, 2013 Share Posted December 14, 2013 Thanks for the share stigzler! Link to comment Share on other sites More sharing options...
Krakerman Posted December 14, 2013 Share Posted December 14, 2013 Suggestion ... I would remove the link to a rom site within your spoiler 1 Link to comment Share on other sites More sharing options...
nullPointer Posted December 14, 2013 Share Posted December 14, 2013 Good catch Krak. Missed that one. Done. Link to comment Share on other sites More sharing options...
Krakerman Posted December 14, 2013 Share Posted December 14, 2013 Link to comment Share on other sites More sharing options...
stigzler Posted December 14, 2013 Author Share Posted December 14, 2013 Whoa, Kraker - didn't think about that - and it wasn't a link for game roms either! I'm assuming it was the pakkISO link? Thanks for the tidy-up, nullP! Link to comment Share on other sites More sharing options...
Recommended Posts