Привет всем! я начал делать хак на sonic3&knuckles и задался одним вопросом? С изменением уровней и заменой палитры я вроде бы разобрался, но я столкнулся с такой вещью, как замена музыки( ведь какой же хак без музыки)! Я искал просмотрел много инфы и ничего не нашел! Я решил залезть на sonic retro/info/hacks/community hacking guide/s3&k music editing. Оттуда меня направили сюда-
http://stephenuk.hacking-cult.org/SCHG/General/MusicGuide/MusicGuide.htm Я тут почитал и не совсем понял. Может кто-нибудь помочь:
Pointer format
First off, what is a pointer? Well, a pointer is a set of hexadecimal values that point to a location in the ROM (or, in other cases, RAM. More advanced stuff there though). There are different types of pointers.
Some are part of an offset index. These kinds of data pointers are usually 16-bits (2 bytes) long and are determined by adding the pointer value to the current location in the ROM. So if one offset index added to 80000, and a pointer read 0890, then it is reading offset 80890, which would be the location of the data it is looking for.
Other pointers are very basic. 32-bit pointers are the easiest to deal with. They are big endian when dealing with the Megadrive and define the exact location using four bytes. So let's use the previous example. Our location was 80890. The pointer appears as "00 08 08 90". Couldn't be any simpler.
The pointer format in the Sonic games music differs from game to game. I will list the pointer format for each incarnation of the music engine. Follow along.