nukeykt / NBlood

Reverse-engineered ports of Build games using EDuke32 engine technology and development principles (NBlood/Rednukem/PCExhumed)
602 stars 74 forks source link

Read additional files directly from cue/bin image [GOG] #34

Open neuromancer opened 5 years ago

neuromancer commented 5 years ago

The GOG version of Blood contains a CD image in cue/bin format with music, cutscenes, etc. It will be nice if NBlood could read directly these files from it using libcdio-k2k.

Squall-Leonhart commented 5 years ago

be nice if it could read the cryptic passage episode files too.

h3xx commented 5 years ago

If you run the installer in DOSBox, and choose everything, you should be able to run nblood -i cryptic.ini and it'll start up the Cryptic Passage episode.

CommonLoon102 commented 5 years ago

What would be the easiest is to copy the contents of the movie folder from the CD to NBlood's movie folder using something similar to this: https://github.com/Karlson2k/libcdio-k2k/blob/master/example/C%2B%2B/OO/isofile2.cpp

I don't know if this would be a good enough solution for @nukeykt. Because it is kinda hacky, the beautiful way would be to read the files directly on the fly from the .bin file. But that would require much more code change since currently it wants to load files from the disk, not bytes. Also, the Smacker decoder expects a filename and then it is using BUILD's file opening routines (GRP file system) instead of standard fopen or something.

CommonLoon102 commented 5 years ago

If you run the installer in DOSBox, and choose everything, you should be able to run nblood -i cryptic.ini and it'll start up the Cryptic Passage episode.

It is nblood -ini cryptic.ini, just in case somebody gets here.