/GuncraftExtractor

Converter for XNB files

Primary LanguageC++GNU General Public License v2.0GPL-2.0

Guncraft Extractor statusBuild status

This tool is made for modding the texture and sound files of Guncraft, but you can use it for other games too with little to no modifications.

Usage

Drag and drop the file(s) you want to convert onto the executable, it will detect the file types and convert them accordingly. The converted file will have the same name as the original file, but with another extension. This program overwrite files without a warning so be sure to have a backup.

Build

$ mkdir build
$ cd build
$ cmake ..
$ make

Note on Android NDK / some MinGW / etc with lame C++11 stdlib

The build steps are slighly different, because you should set option USE_TO_STRING_HACK (cmake -DUSE_TO_STRING_HACK=1 ..) and clone hackish implementation of std::to_string from https://github.com/leha-bot/to_string (git submodule update)

$ git submodule init
$ git submodule update
$ mkdir build
$ cd build
$ cmake -DUSE_TO_STRING_HACK=1 ..
$ make

Possible convertions

  • Xnb Texture2D <---> Png
  • Xnb SoundEffect <---> Wav