Sonic and Sega Retro Message Board: Basic Questions & Answers thread - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 

Basic Questions & Answers thread NEWBIES: Start here!

#4651 User is online Caverns 4 

Posted Today, 06:19 PM

  • Posts: 76
  • Joined: 07-December 12
  • Gender:Male

View PostMarkeyJester, on Today, 05:26 PM, said:

Hmm, try this... In the source code, put:

		dc.l	'Test'


Right before the binclude of the music track, then open up the binary ROM and search for "Test" ASCII text string, directly after that will be your music track, you'll then have the address of the music track, using that, you can track down the exact address of the voice, you then take the voice address, subtract the music address, and that'll give you the offset in the individual music track binary file itself (if that makes sense).


okay, I've done that, and the address that came out is $13DE6C.

So, let me make sure I've got this right:

E617 is already byte-swapped, so I subtract $8000, and get $6617

Now I take $13DE6C, and round it down to the nearest $8000 (138000)

Then I add $6617, ending with the address $13E617?

That can't be right... Now the address is supposedly $7AB from the file start, and it was only $4E3 bytes long...

EDIT: Also, if anyone is willing to help me with porting an object in from Sonic 2 Beta, please PM me. I've gotten it to compile already, but it crashes the game when loading.
This post has been edited by Caverns 4: Today, 06:53 PM

#4652 User is online MarkeyJester 

Posted Today, 07:18 PM

  • A word in your shell-like, pal
  • Posts: 1311
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
Whoops, I just had a look in Z80 RAM in Sonic 2, it seems Sonic 2 does things a lot differently than I remember, it seems it uses the bankswitching to access the music, but then it copies the music to Z80 RAM offset 1380, so all the addresses are different.

RIGHT, let's start again...

Take the pointer (E617), swap the bytes (17E6), subtrack the Z80 RAM offset (17E6 - 1380), thus, you have the resulting offset (0466), do this for every pointer.

Sorry for the misleading information, it's been a while since I've edited Sonic 2 music.

#4653 User is offline E-122-Psi 

Posted 23 minutes ago

  • Posts: 1165
  • Joined: 29-December 09
  • Gender:Male
  • Wiki edits:41
Does anyone know the coding branch in Sonic 3's ASM to recognize when to load co op Tails? Something I've skipped over has made Icecap load without Tails.

  • 311 Pages +
  • ◄ First
  • 309
  • 310
  • 311
    Locked
    Locked Forum

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