GEMS Playback ROM

Discussion in 'Technical Discussion' started by SoullessSentinel, Sep 3, 2010.

  1. SoullessSentinel

    SoullessSentinel

    Member
    257
    0
    16
    Grimsby, England
    Cxbx-Reloaded
    A friend of mine asked if I could find a VGM rip of Warlock, and I was unable to find one, this appears to be because the game lacks a sound test screen.
    In order to satisfy this need, I created this.

    GEMS Playback Rom is a Megadrive ROM containing the GEMS sound driver from the GEMS SDK over at Hacking-Cult. It is basically a sound test for the GEMS sound driver. It is VERY badly coded in some areas (READ: Rushed just to make it work), and hacked together quickly with code from GEMS, Hacking-Cults examples (for the font/print routine) and Sonic 1 (Joypad Code), however, it does work, both in GENS and KEGA, so I decided to make a release.

    Usage: DPAD Left/Right: Select Sound/Music
    Buttons (ANY): Play Selected Track.

    Source code is included, and it should work with any game using the GEMS driver, just replace the files in the "sounddata" folder with files ripped from the GEMS game of your choice, and run BUILD.BAT. (The required data can usually be found above just the start of the GEMS code, and is pointed to via a call to the gemsinit routine).

    This release includes the data from Warlock, as it is what I used to develop/test this.

    Download Link (Megaupload, sorry, my usual host is down):
    <a href="http://www.megaupload.com/?d=HWIBD1EW" target="_blank">http://www.megaupload.com/?d=HWIBD1EW</a>
     
  2. theocas

    theocas

    Tech Member
    346
    0
    0
    <!--quoteo(post=500583:date=Sep 3 2010, 10:40 AM:name=lukeusher123)--><div class='quotetop'>QUOTE (lukeusher123 @ Sep 3 2010, 10:40 AM) <a href="index.php?act=findpost&pid=500583"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->A friend of mine asked if I could find a VGM rip of Warlock, and I was unable to find one, this appears to be because the game lacks a sound test screen.
    In order to satisfy this need, I created this.

    GEMS Playback Rom is a Megadrive ROM containing the GEMS sound driver from the GEMS SDK over at Hacking-Cult. It is basically a sound test for the GEMS sound driver. It is VERY badly coded in some areas (READ: Rushed just to make it work), and hacked together quickly with code from GEMS, Hacking-Cults examples (for the font/print routine) and Sonic 1 (Joypad Code), however, it does work, both in GENS and KEGA, so I decided to make a release.

    Usage: DPAD Left/Right: Select Sound/Music
    Buttons (ANY): Play Selected Track.

    Source code is included, and it should work with any game using the GEMS driver, just replace the files in the "sounddata" folder with files ripped from the GEMS game of your choice, and run BUILD.BAT. (The required data can usually be found above just the start of the GEMS code, and is pointed to via a call to the gemsinit routine).

    This release includes the data from Warlock, as it is what I used to develop/test this.

    Download Link (Megaupload, sorry, my usual host is down):
    <a href="http://www.megaupload.com/?d=HWIBD1EW" target="_blank">http://www.megaupload.com/?d=HWIBD1EW</a><!--QuoteEnd--></div><!--QuoteEEnd-->
    Whoa. This is awesome. Thanks for the share! Now my evil plan will finally have the missing element! *MUAHHH*
    No, this is just pure gold.

    And since the source is included, I was able to port the driver in not a lot of time, and got it working perfectly. Is there a way to fade out the currently playing music instead of just stopping it? Or maybe it is being faded out, and then I'm just deaf.
     
  3. Chibisteven

    Chibisteven

    Member
    1,293
    6
    18
    US
    Does anyone still have this download or file? Being that MegaUpload is gone now anyway.
     
  4. Robochao

    Robochao

    Member
    156
    0
    0
    Maybe this'll help?
    https://www.youtube.com/watch?v=iQjfjEHVnGY
    http://elektropage.ru/r57shell/sample.7z
     
  5. Chibisteven

    Chibisteven

    Member
    1,293
    6
    18
    US
    Not as easy and straight forward as I thought it be. Is anything anymore? LOL

    I was under the impression that...
    • Game Name - 00 Driver.bin
    • Game Name - 01 Instruments.bin
    • Game Name - 02 Envelopes.bin
    • Game Name - 03 Sequences.bin
    • Game Name - 04 Samples.bin

    Would be enough for any game that lacks a sound test. Guess not. I have no idea how to separate and to arrange these into separate files required for this program or anything I can do to make it work. The game in question uses 2.5 of the GEMS sound driver and annoyingly has four different final versions of itself. :/ Programming languages is not my strong suit.
     
  6. ValleyBell

    ValleyBell

    Tech Member
    237
    10
    18
    researching SMPS sound drivers
    That thing makes it just more complicated than it could be, in order to support songs from multiple games within the same data banks.
    And GEMS 2.5 and 2.8 are incompatible because GEMS 2.8 uses larger sequence pointers.

    Now, how to get it working:
    1. remove "gems_combine" from build.bat. You don't need to compile the songs/samples/etc. into library files, because you ripped the library files from a GEMS game.
    2. in GEMS.asm, instead of including Z80.asm, incbin your driver binary.
    3. fix the paths for all the other files (patches = instruments), put quotation marks around file names with spaces
    4. build and you should get a working ROM

    (If you just want to listen to the songs, you could also use the GEMSPlay tool, btw.)
     
  7. Chibisteven

    Chibisteven

    Member
    1,293
    6
    18
    US
    Got it.

    Kind of glitchey and unsure how it'll perform on real hardware. Seems to need hard resets Fusion. Regen drops notes all the time (does it with other games, too) and needs Hard / Soft Resets in between tracks like Fusion. Exodus runs too slow for my computer to give any major clues in real time, but seems to need resets between songs.


    If you guys want to download this, here's the link:
    http://www.filedropper.com/neatstuffupdated