XnaConvert: converting XNB files to PNG (All XNA versions)
Posted: Fri Jul 05, 2013 3:26 am
There's already a tool for converting XNB files to PNG ("XNB Exporter"), but it has all sorts of issues: to convert a whole directory, you need to copy executable file; only XNA 4.0 is supported; it has no command line options etc. So I wrote a tool which has everything I need. (Also I wanted to play around with MEF, but that's unrelated.)
Features
The tool converts only Texture2D files, but XNB files can contain pretty much any data. Out of the box, that's also fonts, sound banks and other stuff. I have no immediate plans to implement converting these (these objects don't have "Save" methods, so it would require much more code), but pull requests are welcome (the program is written in VS 2012, C# 5.0, .NET 4.5).
Download XnaConvert from GitHub
Documentation and sources on GitHub
Features
- Converting Texture2D XNB files to PNG images.
- All versions of XNA are supported: 1.0, 2.0, 3.0, 3.1, 4.0.
- Command line.
- Terraria (XNA 4.0)
- Dust: An Elysian Tail (XNA 4.0)
- Capsized (XNA 3.1)
- Blueberry Garden (XNA 3.0)
The tool converts only Texture2D files, but XNB files can contain pretty much any data. Out of the box, that's also fonts, sound banks and other stuff. I have no immediate plans to implement converting these (these objects don't have "Save" methods, so it would require much more code), but pull requests are welcome (the program is written in VS 2012, C# 5.0, .NET 4.5).
Download XnaConvert from GitHub
Documentation and sources on GitHub