Jump to content

  •  

Photo

Basic Questions and Answers Thread


  • Please log in to reply
1572 replies to this topic

#1567 Joenick69

Joenick69

    "Its Tail Time"

  • Member
  • 308 posts
  • Gender:Male

Posted 04 May 2013 - 05:50 PM

Alright thanks Mainmemory and ya first time I followed someone correctly on the first try "pats self on back".
  • 0

#1568 Electroball

Electroball

    Always ending up in a Good Future

  • Member
  • 53 posts
  • Gender:Male
  • Location:Argentina
  • Interests:Main level layout/Palette design, Sonic 3 hacking

Posted 11 May 2013 - 01:29 AM

I'd like to know how to replace the DAC samples in Sonic 1, since I searched over the internet, and I didn't found anything, so does anyone know how?

Thanks.


  • 0

#1569 MarkeyJester

MarkeyJester

    A word in your shell-like, pal

  • Pro User
  • 1329 posts
  • Gender:Male

Posted 11 May 2013 - 01:58 AM

The Sonic 1 PCM playback driver is Z80 controlled, the drum samples are stored inside the Z80 driver itself, and the Z80 driver is compressed in the Kosinski format. The samples themselves are compressed in a DPCM lossy format. To replace the samples, you need to decompress the Z80 driver from the Kosinski format, compress your new samples in the DPCM format controlled by the Z80, place the compressed samples inside the Z80, change the sample pointers, and then recompress the Z80 driver. It is important however, to ensure that the Z80 ROM is lower or equal to 2000 (hex) bytes when uncompressed, because the Z80 RAM space is exactly that size. More thorough information on the driver can be found here.

It is recommended of course, to replace the sound driver with a more flexible driver, such as Jman2050's Sound Driver, or vladikcomper's Sound Driver.

There are a few other drivers out there, though I do believe they are either private or are just not worth looking at.
  • 1

#1570 Blazer

Blazer

    Bumpin

  • Member
  • 328 posts
  • Gender:Male
  • Location:Middletown, deleware

Posted 13 May 2013 - 05:34 PM

Is this Sonic 1 or 2? When the result screen shows up, it's not just one object; it's several. So you've got the "Ring Bonus" to scroll out, but the "Sonic has" is reading a code elsewhere. What you're better off doing is making a sub-routine to where it moves the text , then make several places in the result code bsr there. Where? Just trial-and-error it.

OK so i did what I could and i'm still having the same problem. i just cant seem to figure this out. i tried to make the routine the same way it is set for the second act of scrap brain zone by making a 3rd routine to check the position of the card and then make it set to where sonic runs to the right after and this is what i keep getting every time

 

1he7i.gif

(sorry for the crap quality)

 

anyway that I can fix this or am I missing something here? I have seen no lines that calls for the rest to scroll after the results have been added which makes things a bit more difficult for me.


  • 0

#1571 redhotsonic

redhotsonic

    Also known as RHS

  • Staff
  • 1586 posts
  • Gender:Male
  • Location:United Kingdom

Posted 13 May 2013 - 07:24 PM

You never answered my question, but looking at your animation, it's Sonic 1?

 

Anyway, I don't hack Sonic 1, but I just had a quick look at a disassembly and went here "Got_ChkBonus:"  and you'll see this (or similar):

		cmpi.w	#(id_SBZ<<8)+1,(v_zone).w

I literally changed "SBZ" to "GHZ" and I tried the ROM, and it works perfectly in GHZ2.  I guessed that "+1" meant add 1 to the act.  So currently it's doing act 2.  I changed it to "+0" and then it didn't work on GHZ2 but on GHZ1.  I didn't try this, but no doubt +2 means it will do it on act 3.


  • 1

#1572 Psycho RFG

Psycho RFG

    3 Chaos Emeralds

  • Member
  • 183 posts
  • Gender:Male

Posted 14 May 2013 - 08:17 AM

Blazer, long time has passed and you still continue copying my project... among other things, the Sonic standing with crossed arms... Now I can see you are using the same title cards font I'm using (mine is a bit edited but you are using the same anyway), and now the runing thing after the pose, same as my hack works... What can I say? Please, be more original...


  • 0

#1573 Blazer

Blazer

    Bumpin

  • Member
  • 328 posts
  • Gender:Male
  • Location:Middletown, deleware

Posted 14 May 2013 - 02:59 PM

Blazer, long time has passed and you still continue copying my project... among other things, the Sonic standing with crossed arms... Now I can see you are using the same title cards font I'm using (mine is a bit edited but you are using the same anyway), and now the runing thing after the pose, same as my hack works... What can I say? Please, be more original...

 

I don't know where the assumption of you thinking that I am copying you came from but the fact is that I am not. for one I actually did the crossed arms myself and at that time I didn't even know that you did the same thing, and secondly for the title card font, I'm not the only one who uses this font you know. though we may not know it, there are other people including myself who use it as well simply because they like the way it looks, and beside that, if this was in my real disassembly this font would have looked way different than what is shown, so technically the whole be more original thing wouldn't really apply there because there are going to be others that's going to do the same thing. 

 

@RHS: yes this is for sonic 1 and I will test this out whenever I can.

 

(Edit: Changed it like you said and it worked, though still have some errors to fix but i can do the rest myself of course. thanks for the help)


Edited by Blazer, 15 May 2013 - 12:21 AM.

  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users