Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

WiiMarioHacker

macrumors member
Original poster
Apr 3, 2010
96
0
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.
 
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
 
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.
 
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.

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.
 
Last edited:
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.

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

Attachments

  • Screen shot 2010-12-17 at 1.25.25 PM.png
    Screen shot 2010-12-17 at 1.25.25 PM.png
    159.1 KB · Views: 124
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.