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

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

  1. WiiMarioHacker macrumors member

    Apr 3, 2010
    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?

  2. lee1210 macrumors 68040


    Jan 10, 2005
    Dallas, TX
    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.

  3. subsonix macrumors 68040

    Feb 2, 2008
    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


    Feb 11, 2010
    A quick googling reveals this link:

    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:


    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

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

    Attached Files:

Share This Page