Sonic 4.

Discussion in 'Engineering & Reverse Engineering' started by Polygon Jim, Oct 12, 2010.

  1. Polygon Jim

    Polygon Jim

    Eternal Tech Member
    0
    0
    0
    across town from Hinchy
    All the bitches.
    <!--id1--><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/emf2kVV8xBA&"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/emf2kVV8xBA&" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object><!--id2-->
    Attempted to put the minecart stage back into the final Wii game, with weird results.


    Very basic stuff done, I'll post updates as I learn more about the formats.



    AMB
    Code (Text):
    1. 0x00 dword = #AMB
    2.  
    3. 0x04 to 0x0F = unknown, seems to be part of the header.
    4.  
    5. 0x10 dword = number of files
    6.  
    7. 0x14 dword = unknown
    8.  
    9. 0x1C dword = address to the filenames
    10.  
    11. 0x20 dword = address to beginning of the first file
    12.  
    13. 0x24 dword = size of file
    14.  
    15. Followed by FF FF FF FF 00 00 00 00, then new file start address, and file size, check the dword at 0x10 for amount of files.
    There is some stuff I'm missing in my format spec, but it works to extract most files.



    G_ZONE*/MAP/ZONE*_ATTR.AMB is the collision data, and G_ZONE*/MAP/ZONE**_MAP.AMB is the level layout. There's a decent bit of research into the layout files, but that's not my work so you'll have to wait until the person working on that posts the info.
     
  2. Sparks

    Sparks

    Member
    3,033
    13
    18
    Kyle and Lucy: Wonderworld
    Sonic 4 Hacking already, awesome. :v:

    Seems you tried to put back the original level map too?
     
  3. Blue Blood

    Blue Blood

    Member
    4,775
    49
    28
    That's pretty excellent. Now we just need to see the minecart in every other level.
     
  4. Slingerland

    Slingerland

    Oldbie
    668
    0
    0
    Hechoeg Frat
    Sonic Mania
    I laughed the whole time while watching this video.
     
  5. Mr. Mash

    Mr. Mash

    All fanbases are awful Member
    1,440
    0
    0
    drawing
    Wow, hacking already. Impressive. Though you know what's probably on the tip of everyone's tongue <span style='color:#000000;background:#000000'>Classic physics hack/fix please</span>
    So does the minecart stage pretty much play itself then?
     
  6. Xkeeper

    Xkeeper

    lgkdfvlbjepasvdjzcvpaaaaaaaaaaaaaaaaaaaaaaaa Researcher
    1,498
    8
    18
    the bone zone
    current-project-fart
    Haha, what?

    I think my head just exploded.


    And hey, you know what you should do? <a href="http://wiki.rustedlogic.net/The_Cutting_Room_Floor" target="_blank">Start putting this kind of crap on the wiki.</a> :v:
     
  7. Solaris Paradox

    Solaris Paradox

    Member
    2,456
    0
    0
    On my butt in front of the computer. Where else?
    I'm working on working up the willpower to work on learning how to make my own Sonic fangames. Not quite there yet.
    Awesomesauce! I didn't know development on Atomic Sonic 2 was so far along!
     
  8. Sappharad

    Sappharad

    Oldbie
    1,360
    21
    18
    There are some (useless, but important) omissions from your AMB spec. I use the 32-bit value at 0x04 to determine endian-ness.

    But anyway...
    0x14 - I believe this is the length of filenames in the filename table. Unconfirmed, because it's always 0x20.
    0x18 - Size of header
    0x1C - This can be 0 for files without a filename table. They do exist. Likewise, there can be files without names in the filename table.

    In the file entries. 0x08 is not always FFFFF. I located a few files where it was 0B. I believe it to be an attribute related to the file.
     
  9. MarkoMan

    MarkoMan

    In memory of Dreds... Member
    294
    0
    0
    Queens, NY
    Sonic 2 Turbo
    Polygon Jim, are you trying to phix the physics already? That would be one hell of a proof of concept.
     
  10. The Game Collector

    The Game Collector

    Member
    837
    0
    0
    Washington State, USA
    Being Ted Narcotic's bass player; working on Kelly Kristjanson's tape archive; collecting video games
    Check it out, the minecart parts are still in the PS3 version of the game.
     
  11. Azu

    Azu

    I must be stupid. Member
    This pretty awesome. However, I must ask, how did you unpack the WAD file?
     
  12. Rika Chou

    Rika Chou

    Tech Member
    5,254
    115
    43
    <!--quoteo(post=516605:date=Oct 13 2010, 04:45 AM:name=Azu)--><div class='quotetop'>QUOTE (Azu @ Oct 13 2010, 04:45 AM) <a href="index.php?act=findpost&pid=516605"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->This pretty awesome. However, I must ask, how did you unpack the WAD file?<!--QuoteEnd--></div><!--QuoteEEnd-->
    Google for "wad unpacker"?
     
  13. Trunks

    Trunks

    AGAIN TRY Oldbie
    It's not that easy, Rika Chou. We're talking like six levels of compression and whatnot. I hope someone makes an automated exporter/importer.
     
  14. GHNeko

    GHNeko

    sega stockholm syndrome Member
    660
    1
    18
    テキサス、アメリカ
    Hybrid Souls Card Game
    Looking forward to Sonic 4.1 unofficial fan patch.

    Or Super Sonic 4 Turbo.

    Or Super Sonic 4 Champion Ship Turbo+.
     
  15. Cooljerk

    Cooljerk

    NotEqual Tech, Inc - VR & Game Dev Oldbie
    4,332
    70
    28
    Lol this is simultaneously hilarious and impressive. I tip my hat, Jim.
     
  16. The Game Collector

    The Game Collector

    Member
    837
    0
    0
    Washington State, USA
    Being Ted Narcotic's bass player; working on Kelly Kristjanson's tape archive; collecting video games
    So let me get this straight. Does the Wii version not have any minecarts in Lost Labyrinth Act 2 at all, making it different from the PS3 version in level design as well? Or are you guys talking about a minecart only level that was replaced? The reason I ask was because near the end of that stage, I used a minecart and had to jump over a few pits just like in Donkey Kong Country for SNES. It was a pretty short segment though.
     
  17. Afti

    Afti

    ORIGINAL MACHINE Member
    3,521
    0
    0
    <a href="http://www.joystiq.com/2010/04/05/leaked-sonic-4-mine-cart-footage-is-all-yours/" target="_blank">http://www.joystiq.com/2010/04/05/leaked-s...e-is-all-yours/</a>

    The minecart level in the iShit versions was intended for the console versions, and apparently large parts of it still exist in them.
     
  18. Namo

    Namo

    take a screenshot of your heart Member
    2,912
    0
    0
    <!--quoteo(post=516661:date=Oct 13 2010, 01:40 AM:name=The Game Collector)--><div class='quotetop'>QUOTE (The Game Collector @ Oct 13 2010, 01:40 AM) <a href="index.php?act=findpost&pid=516661"><img src="public/style_images/retro/snapback.png"></a></div><div class='quotemain'><!--quotec-->So let me get this straight. Does the Wii version not have any minecarts in Lost Labyrinth Act 2 at all, making it different from the PS3 version in level design as well? Or are you guys talking about a minecart only level that was replaced? The reason I ask was because near the end of that stage, I used a minecart and had to jump over a few pits just like in Donkey Kong Country for SNES. It was a pretty short segment though.<!--QuoteEnd--></div><!--QuoteEEnd-->

    The Wii version's got the same treatment. There's only a small minecart segment.
     
  19. Cooljerk

    Cooljerk

    NotEqual Tech, Inc - VR & Game Dev Oldbie
    4,332
    70
    28
    so hey, I was just thinking, since wii hacking is apparently all the rage, would it be possible to stop sonic from uncurling when he hits a ramp? I'm unfamiliar with wii hacking, but I'd imagine it couldn't be too difficult - just change the pointer which changes sonic's state from rolling to flailing back to the rolling state.

    Or am I way off base here?
     
  20. Polygon Jim

    Polygon Jim

    Eternal Tech Member
    0
    0
    0
    across town from Hinchy
    All the bitches.
    So you know the ending pose Sonic does?

    <a href="http://imgur.com/SwYan.png" target="_blank">http://imgur.com/SwYan.png</a>


    Well while looking through the files I found 2 ending poses I don't remember seeing.


    <img src="http://imgur.com/oeP4L.png" border="0" class="linked-image" />


    <img src="http://imgur.com/VKhIu.png" border="0" class="linked-image" />


    I beat the game as Super Sonic, and normal Sonic, and neither of those appeared, it was just that first one both times.