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.
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.
$ mkdir build
$ cd build
$ cmake ..
$ make
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
- Xnb Texture2D <---> Png
- Xnb SoundEffect <---> Wav