hessu / bchunk

BinChunker for Unix / Linux converts .bin / .cue images to .iso and .cdr
GNU General Public License v2.0
63 stars 15 forks source link

Error message "ouch, no space after track number" #17

Open vanessakindell opened 5 months ago

vanessakindell commented 5 months ago

Every time I try to convert this .cue .img file it throws the error "ouch, no space after track number". The cue file indeed has a space after each track number so I'm not sure why it's throwing this error.

The cue file in question: https://pastebin.com/uupzeBR0

I can't seem to get it to work and I have no idea why.

I'm running version 1.2.2

My neofetech system info: https://pastebin.com/nndsDTmV

root42 commented 1 month ago

I have the same issue after ripping some old games with data and audio tracks to cue/bin using cdrdao. bchunk simply goes:

Reading the CUE file:                 

... ouch, no space after track number.
Track %                               

The cue file looks like this:

CD_ROM                                                                           

// Track 1                                                                       
TRACK MODE1                                                                      
NO COPY                                                                          
DATAFILE "mygame.bin" 26:23:64 // length in bytes: 243279872 

// Track 2                 
...                                                      
root42 commented 1 month ago

I think this is because bchunk expects the tracks to look like this:

TRACK 1 MODE1
NO COPY
...
TRACK 2 AUDIO
...

That is we need three entries per TRACK line. It seems some programs like cdrdao don't provide that. Editing the cue sheet fixes this. One could also enhance bchunk to check how many fields there are and automatically count the tracks.