Opening Foreign File Formats (.szs, .bmg, etc)

Discussion in 'Mac Programming' started by WiiMarioHacker, Dec 17, 2010.

  1. WiiMarioHacker macrumors member

    Joined:
    Apr 3, 2010
    #1
    I am trying to port the SZS Explorer, a program that can open .szs files and .bmg files.

    Any ideas on how to open foreign file formats?

    Thanks.
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
    Do you know the binary format of the file? Is it documented? If so, it's just going to be a bit of tedium writing the code that matches that specification, then displaying the discrete data elements you've extracted. If you have no idea what the format is, then it's basically an impossibility unless these file formats are so popular that others have already written solid libraries for parsing them.

    -Lee
     
  3. subsonix macrumors 68040

    Joined:
    Feb 2, 2008
    #3
    You can open and read any file format. The problem that needs to be solved relates to interpreting the data in it. To do that you need to look into the specification of the file format to understand how the data is stored and the header is constructed.

    Look at the source you are trying to port as well as any publicly available specs of the format.
     
  4. ulbador, Dec 17, 2010
    Last edited: Dec 17, 2010

    ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #4
    A quick googling reveals this link:

    http://www.emutalk.net/showthread.php?t=26062

    Looks like the guy was even nice enough to provide the source to uncompressing the SZS file.

    The BMG file format is described here, though it looks incomplete:

    http://wiibrew.org/wiki/BMG_files

    Edit:

    As an FYI, this looks like it is written .NET. Which means chances are you can probably run it via mono.
     
  5. WiiMarioHacker thread starter macrumors member

    Joined:
    Apr 3, 2010
    #5
    I tried to run the SZS Explorer via Mono and got errors. A screenshot is attached.
     

    Attached Files:

Share This Page