How to rip BIN/CUE image contents

For a lot of disc-based game consoles (Sony PlayStation 1 / PlayStation 2 / PlayStation 3, NEC TurboGrafx-CD / PC Engine CD-ROM², Sega CD / Dreamcast / Saturn, Microsoft Xbox) you will encounter when ripping them, a pair of files with the extensions .BIN and .CUE. The .BIN file is the disc image data itself and the .CUE is a metadata file for describing how the “tracks” of the disc are arranged. In simple terms, the .CUE file tells software (emulators, disc-burning apps) how long an audio track is for music and how long a data track is for the game itself as well as gaps between them and blank spaces on the disc as well (often used to reduce seek times).

 

While having the .BIN and .CUE file is usually all you need to burn a game to a disc or even play it in an emulator there are cases where you will want to rip out the contents (individual tracks) for compatibility with some emulators (using an .ISO file instead of .BIN or for playing the CD-audio tracks in the game) or disc-burning apps but also for another reason: Modifying (patching) the contents of the game. This can be done for simple improvements such as making the game run properly in some emulators, language translation patches or even overhauling the game itself. Another benefit of this is it’s use in extracting the soundtrack of the game. I will guide you through the simple steps of ripping the contents of BIN/CUE images for whatever purposes you require.

 

  1. Rip your disc or obtain the image as a BIN/CUE pair. This may also work in a RAW/CUE file extension pair but thats less common these days. If you have an ISO/CUE set then you will need to convert the .ISO file to a .BIN.
  2. Download/obtain bchunk from the official website or your own system’s ports, you can download a pre-built mac binary here that works for myself on macOS 10.12 – bchunk-mac-v1.2.0.zip (sha512 f0b6d869887410adcb42045407f3a4b4c3ba2ff864ffe5d3094980848feeab4f97b41836ba9c5b925e33d2bbe970b770619e0cbf2852b4103d5facc86347d751)- Windows users best bet is to use another operating system by running one in a Virtual Machine like VirtualBox with Debian or OpenBSD.
    • bchunk (BinChunker) is a program that will do the ripping of your BIN/CUE contents and is meant for use on UNIX-like systems such as Debian, OpenBSD or macOS
  3. Now you will execute bchunk by specifying your .BIN image file and .CUE sheet file and then a base name for the ripped contents. I also recommend that you use the -w option to enable the conversion of the audio tracks to .WAV (uncompressed audio) files or else they will result in .CDR (CD audio tracks). You must use the -p option if you are running this against a Sony PlayStation 1 image. The “base name” is used for naming the extracted content files. A base name of “coolgame” will result in your files being named “coolgame01.wav, coolgame02.iso, coolgame03.wav – so it is basename[track#].extension. You will want to use the -r for .RAW image files (Video-CDs/MPEG).
    • EXAMPLE #1: bchunk -w <image.bin> <image.cue> <basename>
    • EXAMPLE #2 using the TurboGrafx-16 game “Human Sports Festival”: bchunk -w HumanSportsFestival.bin HumanSportsFestival.cue humansportsfestival
    • Example #3 using the Sony PlayStation One (PS1 / PSX / PSOne) game Metal Gear Solid: bchunk -p -w MetalGearSolid.bin MetalGearSolid.cue metalgearsolid
    • Example #4 using a .RAW image file: bchunk -r <image.bin> <image.cue> <basename>
  4. You should now have a directory filled with .ISO and .WAV files from the previous BIN/CUE image pair. You can apply whatever patches you like to your .ISO, bundle these files up for an emulator to play and also have the full soundtrack in .WAV format. Some emulators may not be able to handle the .WAV (too large) and you may wish to convert them to .OGG (Ogg Vorbis) audio files instead.

Getting English Cave Story working on your RetroPie

cave story title screen

 

Please use the following steps to get your English Cave Story game working on the RetroPie. Please remember to backup EVERYTHING that you are not willing to lose (screenshots, roms, saves, save states, artwork, etc).

 

  1. Install lr-nxengine
  2. Download and extract my current Cave Story setup files here: https://www.iruberleet.org/files/retropie/ports-cavestory.7z
  3. Place these files on your RetroPie in the following location: ~/RetroPie/ports/
  4. Try out Cave Story under the Ports category in Emulation Station with the English translation now applied.

 

If I have missed anything or you can think of any suggestions, please contact me as I want this to be as easy as possible.

How to apply all fixes and enhancements to SDL Prince of Persia on your RetroPie

prince of persia box art

 

Please use the following steps to apply all fixes and enhancements for your SDL Prince of Persia game on the RetroPie. Please remember to backup EVERYTHING that you are not willing to lose (screenshots, roms, saves, save states, artwork, etc).

 

  1. Install sdlpop
  2. Download and extract my current SDL Prince of Persia SDLPoP.ini here: https://www.iruberleet.org/files/retropie/ports-sdlpop-config.zip
  3. (Backup first) Overwrite the existing SDLPoP.ini with the one above in this directory: /opt/retropie/configs/ports/sdlpop/
  4. Try out SDL Prince of Persia under the Ports category in Emulation Station with all of the fixes and enhancements to the game now applied.

 

If I have missed anything or you can think of any suggestions, please contact me as I want this to be as easy as possible.

Getting Wolfenstein 3D and the Spear of Destiny to work on your RetroPie

wolfenstein 3d box art

 

Please use the following steps to get your Wolfenstein 3D games working on the RetroPie. Please remember to backup EVERYTHING that you are not willing to lose (screenshots, roms, saves, save states, artwork, etc).

 

  1. Install wolf3d
  2. Download and extract my current Wolfenstein 3D setup files here: https://www.iruberleet.org/files/retropie/ports-wolf3d.7z
  3. Place these files on your RetroPie in the following location: ~/RetroPie/ports/
  4. Download and extract my copy of the Wolfenstein 3D emulators.cfg configuration file here: https://www.iruberleet.org/files/retropie/ports-wolf3d-emulators.cfg
  5. (Backup first) Overwrite the existing emulators.cfg file with the one above in this directory: /opt/retropie/configs/ports/wolf3d/
  6. Restart Emulation Station and try the new item found in your Ports category. Please ensure they all work before moving away.
  7. To access the Spear of Destiny expansion packs you need to select them from the runcommand menu

 

If I have missed anything or you can think of any suggestions, please contact me as I want this to be as easy as possible.

Getting Doom, Doom 2, Final Doom TNT Evilution and The Plutonia Experiment to work on your RetroPie

doom box art

 

Please use the following steps to get your Doom games working on the RetroPie. Please remember to backup EVERYTHING that you are not willing to lose (screenshots, roms, saves, save states, artwork, etc).

 

  1. Install lr-prboom
  2. (Backup first) Delete the file: ~/RetroPie/ports/doom.sh
  3. (Backup first) Delete the file ~/RetroPie/ports/doom/doom.wad
  4. Download and extract my current Doom setup files here: https://www.iruberleet.org/files/retropie/ports-doom.7z
  5. Place these files on your RetroPie in the following location: ~/RetroPie/ports/
  6. chmod the new *.sh files to either 755 or by running the following command in the ~/RetroPie/ports/ directory: sudo chmod +x ./*.sh
  7. Restart Emulation Station and try the new items found in your Ports category. Please ensure they all work before moving away.

 

If I have missed anything or you can think of any suggestions, please contact me as I want this to be as easy as possible.

Notes: I am concerned about the music files as my copies of these Doom games contain more tracks than lr-prboom uses: https://github.com/libretro/libretro-prboom/blob/e328381ce5ff6b045824ceba20148579f5f4dbe4/src/m_misc.c