Skip to content
Utility for converting XNA XNB files (Texture2D to PNG images) [New BSD]
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget
Alba.Framework @ bbb87be Added URL zone check (MOTW). Jan 27, 2014
Alba.XnaConvert.Common Improved exception details when failing to load plugins. Updated Alba… Dec 20, 2013
Alba.XnaConvert.Loader.Xna10
Alba.XnaConvert.Loader.Xna20 Added support for XNA 2.0 Jul 4, 2013
Alba.XnaConvert.Loader.Xna30
Alba.XnaConvert.Loader.Xna31
Alba.XnaConvert.Loader.Xna40
Alba.XnaConvert
Build
.gitignore
.gitmodules
Alba.XnaConvert.sln
Alba.XnaConvert.sln.DotSettings Enabled DownloadNuGetExe Jul 9, 2013
License.md
ReadMe.md Added more info to ReadMe.md, renamed License.txt to License.md Jul 9, 2013

ReadMe.md

Alba.XnaConvert

Command-line utility for converting XNA XNB files.

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.

N.B.

Do not forget: the fact that you can technically extract and view the resources from some games does not mean you can legally use the resources. Even extracting can be illegal in your country. If you are unsure, do not use this program.

Installation

Download XnaConvert binary files from the Releases tab.

You need to install the following redistributable packages before using the program (also necessary for compiling from sources):

Command line

Verb: convert

Convert file from one format to another.

Options:

  • -l, --library (Default: XNA) Library name.
  • -v, --version (Default: 4.0) Library version.
  • -i, --input (Required) Input file (*.xnb).
  • -d, --inputdir (Required) Input directory (with *.xnb files).
  • -m, --mask *(Default: .xnb) Input mask (with *.xnb files).
  • -r, --recursive (Default: false) Process files in input directory recursively.
  • -o, --output (Required) Output file or directory.

Examples:

Alba.XnaConvert convert -v 4 -d "C:\Games\Terraria\Content\Images" -o "C:\Unpacked\Terraria"
Alba.XnaConvert convert -v 4 -r -d "C:\Games\Dust An Elysian Tail\content\gfx" -o "C:\Unpacked\Dust An Elysian Tail"
Alba.XnaConvert convert -v 4 -r -d "C:\Games\They Bleed Pixels\Content" -o "C:\Unpacked\They Bleed Pixels"
Alba.XnaConvert convert -v 4 -r -d "C:\Games\Adventures of Shuggy\gfx" -o "C:\Unpacked\Adventures of Shuggy"
Alba.XnaConvert convert -v 4 -r -d "C:\Games\DLC Quest\Content" -o "C:\Unpacked\DLC Quest"
Alba.XnaConvert convert -v 3.1 -r -d "C:\Games\Capsized\Content" -o "C:\Unpacked\Capsized"
Alba.XnaConvert convert -v 3 -d "C:\Games\Blueberry Garden\Content" -o "C:\Unpacked\Blueberry Garden"

Verb: listlibs

List supported libraries and versions.

Options:

  • -a, --all (Default: false) Include all aliases.

Examples:

Alba.XnaConvert listlibs
Alba.XnaConvert listlibs --all

Known issues

  1. XNA sometimes fails to properly free resources. If multiple huge images are converted (in directory input mode) and your computer is low on memory, the program will terminate. Workaround: run the program again. It will skip already converted files.

  2. Support for XNA 1.0 and 2.0 is not tested as no games seem to use these versions.

License

New BSD License

Copyright © 2013, Athari

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Athari nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ATHARI BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Links

You can’t perform that action at this time.