don't click here

AMBextract

Discussion in 'Engineering & Reverse Engineering' started by Sappharad, Oct 9, 2010.

Thread Status:
Not open for further replies.
  1. Sappharad

    Sappharad

    Oldbie
    1,421
    72
    28
    Here's an AMB extractor that I threw together early this morning.

    Windows:
    ambextract-windows.zip
    Linux:
    ambextract-linux.tar.gz
    Mac OS X:
    Download the Linux version and run it with Mono. The Windows and Linux builds were built with MonoDevelop on OS X, and I did all of the development under OS X so I know it works there.

    Usage:
    ambextract filename.amb
    Optionally, you can provide multiple filenames to extract multiple files at once.
    -l argument will force filenames to lowercase. I added this because PVRTexTool doesn't see uppercase .PVR files in it's file open dialog.
    -f argument will display filenames only without extracting, so you can see what's in a file.

    What is this for? Almost everything in Sonic 4 seems to be packed into these AMB files.
    [​IMG]
     
  2. Polygon Jim

    Polygon Jim

    Eternal Tech Member
    0
    3
    0
    across town from Hinchy
    All the bitches.
    Appears it won't work with the 360 files, so the iPhone version must have it's own variant of the AMB files.
     
  3. Spanner

    Spanner

    Zzz... Member
    3,384
    192
    43
    United Kingdom
    Falling asleep for once
    Maybe they changed the AMB structure after the PartnerNet leak? Maybe we'll see once the console versions are out and examined.
     
  4. Hanoch

    Hanoch

    Also known as TheKnock, Birashot Member
    491
    0
    0
    Israel
    everything
    Sonic 4 hacking, already?
    Now all we need is a disassembly and the physics will be fixed!

    By the way, are the layouts real 3D models with the camera fixed to look 2.5ds, or is it 3D rendered?
     
  5. Overlord

    Overlord

    Now playable in Smash Bros Ultimate Moderator
    19,631
    1,145
    93
    Long-term happiness
    More likely the iPhone ones are differently compressed due to the smaller sizes of the game data files.

    EDIT: ffffffff, Hanoch'd
     
  6. Andlabs

    Andlabs

    「いっきまーす」 Wiki Sysop
    2,175
    2
    0
    Writing my own MD/Genesis sound driver :D
    What is the structure of the fifth longword (offset $10) of the iPhone AMB file, 00s on the right or 00s on the left?
     
  7. Sappharad

    Sappharad

    Oldbie
    1,421
    72
    28
    The iPhone files are little endian since ARM processors are typically little endian. I forgot about the PPC being big endian, this will be very easy to fix. I don't have any sample data from the console versions to test with though.

    The layout's don't appear to be 3D at all, all of the level pieces are in PVRTC textures.
     
  8. Azu

    Azu

    I must be stupid. Member
    Sega's still lazy. The sound files (.CSB) cab still be opened up using PSound.
    Anyway, nice job on the editor.
     
  9. Dude

    Dude

    Tech Member
    3,138
    0
    16
    Southbridge, MA
    Random VR/AR trash
    In the partnernet build, the level tiles were 3d planes with those textures you mentioned mapped over them. Don't know about the ipod one.
     
  10. Sappharad

    Sappharad

    Oldbie
    1,421
    72
    28
    I've uploaded a new build, this should handle big endian files from the PPC versions of the game as well.
    But that's not tested, since I don't have any of those files. We'll know on monday, unless someone with the leak wants to try it.

    I don't either then. I just assumed because it appeared that way.
     
Thread Status:
Not open for further replies.