Sonic and Sega Retro Message Board: MOD player for the Sega Genesis - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

MOD player for the Sega Genesis Let's play Toy Story

#1 User is offline nineko 

  Posted 03 January 2009 - 12:17 PM

  • I am the Holy Cat
  • Posts: 5632
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251
I was reading this thread at project2612's forums and I found out that Toy Story supposedly supports MOD playback. Since the actual MOD used is available on the internet (as said in that thread), Oerg suggested me that the MOD data might actually be present in the ROM, so we looked for that and we found out that that's the case. Only a few bytes are different between the standalone MOD file and the data in the ROM. We then tried to put some other MODs in the ROM, and we found out that it works.
So yeah, Toy Story contains a semi-functional 4-channels MOD player; it doesn't support all the MOD effects, and the quality isn't that awesome, but still, someone might attempt to disassemble this and use MOD songs in their hacks. They can sound better than smps, and they are smaller than PCM files. I think the load on the 68k is very high though, so this may be useful only for title screens or something.

Now, on to the resources.
Toy Story ROM from romnation.net
Rename said ROM to "toy.bin" and get this nice utility I wrote to replace any MOD file into Toy Story's ROM (granted that said MOD's size is smaller than 93996 bytes). Also yes, lol filename, I didn't rename it kthx.
Grab this gens savestate to go straight to the title screen since Toy Story has like 9001 splash screens. Just press start once to hear your replaced MOD.

Have fun with this. Also, in before Oerg.

#2 User is offline Oerg866 

Posted 03 January 2009 - 12:27 PM

  • Posts: 1766
  • Joined: 07-September 06
  • Gender:Male
  • Location:Frankfurt, Germany
  • Wiki edits:3
By the way, for your interest, the original MOD from the game extracted is here.

BTW: The MOD Player plays the MODs 1x too fast.

That means on every F** command in the MOD, the value has to be increased by 1, because:

Let's take a MOD with an F06 at the beginning. It plays too fast. Change the F06 to F07 and it will play just or almost like it was intended to be.
This post has been edited by Oerg866: 03 January 2009 - 12:45 PM

#3 User is offline Overlord 

Posted 03 January 2009 - 03:18 PM

  • Substitute Meerkovo IT Chief
  • Posts: 16856
  • Joined: 12-January 03
  • Gender:Male
  • Location:Berkshire, England
  • Project:VGDB
  • Wiki edits:3,204
Nice work, guys. This could lead to some interesting stuff in Sonic hacks =P

#4 User is offline Oerg866 

Posted 03 January 2009 - 03:49 PM

  • Posts: 1766
  • Joined: 07-September 06
  • Gender:Male
  • Location:Frankfurt, Germany
  • Wiki edits:3
OK, so Update *ding*


The timing of the MOD was really related to PAL/NTSC Dickery. Here is a download of the PAL ROM.

I looked up the data in this ROM and it's at $2A2B8

So I modified nineko's tool to write to that address to check and BINGO - The MODs play at the right speed.

Download the tool for the PAL Version here

lolfilename1up

EDIT: loltypo

EDIT: Link fixed.
This post has been edited by Oerg866: 03 January 2009 - 07:31 PM

#5 User is offline Tweaker 

Posted 03 January 2009 - 03:55 PM

  • Posts: 12389
  • Joined: 27-June 04
  • Gender:Male
Very cool! I recall being very impressed at the DAC-based playback in Toy Story, and it's awesome to know that it's more than possible to put your own custom music in there. This could be put to great use in demos, homebrew, and hacks alike. The first thing I'll do is try out that "Spring Yard Past" module I haveā€”that's bound to sound awesome.

Fantastic work! :)

#6 User is offline nineko 

Posted 03 January 2009 - 04:08 PM

  • I am the Holy Cat
  • Posts: 5632
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251
Keep in mind that only 4-channels, 31-samples, ProTracker modules will work.

Despite the .mod extension, some modules can't be played here. Namely, old 15-samples MODs won't work (but it's easy to fix them by adding 16 blank samples), just like non-4-channels MODs. I've yet to check compatibility with other MOD subformats, though most of them were pretty much compatible so there is some hope.

#7 User is offline Qjimbo 

Posted 03 January 2009 - 06:34 PM

  • Your friendly neighbourhood lemming.
  • Posts: 4437
  • Joined: 17-February 03
  • Gender:Male
  • Location:Vancouver
  • Wiki edits:69
Quite funny that this has been sitting there all this time, nice find!

#8 User is offline nineko 

Posted 03 January 2009 - 06:53 PM

  • I am the Holy Cat
  • Posts: 5632
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251
By the way, you all should thank Oerg if this thread exists -- I thought nobody was going to be interested into this, but he was so enthusiastic about it that I couldn't avoid to post what we've done :p

edit:
I just found this. I swear, Oerg and I didn't know about it when we were working on this :(
Oh well.
This post has been edited by nineko: 03 January 2009 - 07:26 PM

#9 User is offline Oerg866 

Posted 03 January 2009 - 07:28 PM

  • Posts: 1766
  • Joined: 07-September 06
  • Gender:Male
  • Location:Frankfurt, Germany
  • Wiki edits:3
They are not as advanced as we are!



... lol

EDIT: Fixed typing
This post has been edited by Oerg866: 03 January 2009 - 07:33 PM

#10 User is offline nineko 

Posted 03 January 2009 - 07:32 PM

  • I am the Holy Cat
  • Posts: 5632
  • Joined: 17-August 06
  • Gender:Male
  • Location:italy
  • Project:I... don't even know anymore :U
  • Wiki edits:5,251

View PostOerg866, on Jan 4 2009, 01:28 AM, said:

They are not as advaned as we are!
But can they type?

#11 User is offline Oerg866 

Posted 03 January 2009 - 07:33 PM

  • Posts: 1766
  • Joined: 07-September 06
  • Gender:Male
  • Location:Frankfurt, Germany
  • Wiki edits:3

View Postnineko, on Jan 4 2009, 01:32 AM, said:

View PostOerg866, on Jan 4 2009, 01:28 AM, said:

They are not as advaned as we are!
But can they type?


Hoyl shit I mades a tpyo

Fixed anyway

#12 User is offline ICEknight 

Posted 04 January 2009 - 07:17 PM

  • Posts: 10815
  • Joined: 11-January 03
  • Gender:Male
  • Location:Spain
  • Wiki edits:18
Awesome. I had always wondered about that song in particular, and why did it sound more like a SNES game...

Just wondering, is the same MOD being used for the PAL and NTSC versions?
This post has been edited by ICEknight: 04 January 2009 - 07:20 PM

#13 User is offline Oerg866 

Posted 04 January 2009 - 07:40 PM

  • Posts: 1766
  • Joined: 07-September 06
  • Gender:Male
  • Location:Frankfurt, Germany
  • Wiki edits:3
Almost. The NTSC one has a lower speed set because the NTSC 60HZ to 50Hz difference automatically makes it faster. The PAL one is the same, just without any speed command because the MOD Player is written for 50HZ and therefore does not need a speed compension.

#14 User is offline TmEE 

Posted 04 January 2009 - 08:24 PM

  • Master of OPL3-SA2/3
  • Posts: 1726
  • Joined: 06-January 08
  • Gender:Male
  • Location:Estonia, Rapla City
  • Project:T-04YBSC-A !
  • Wiki edits:11
That MOD player needs to be extracted, and made into a 68K+Z80 player, so Z80 would do playback, which will give some free time on 68K side and greatly improve playback quality as there will not be any jitter, or at least not as much. It will still be too CPU heavy for use in some Sonic hack...

#15 User is offline Oerg866 

Posted 04 January 2009 - 08:43 PM

  • Posts: 1766
  • Joined: 07-September 06
  • Gender:Male
  • Location:Frankfurt, Germany
  • Wiki edits:3
Just a MOD player with UI for the genesis would be awesome :)

  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users