srtextool

所属分类:图形图像处理
开发工具:C++
文件大小:55KB
下载次数:0
上传日期:2017-02-18 04:13:23
上 传 者sh-1993
说明:  用于将DDS纹理转换为Volition位图格式和从该格式转换为Volution位图格式的工具
(Tool for converting DDS textures to and from the Volition bitmap format)

文件列表:
CMakeLists.txt (1105, 2017-02-18)
LICENSE (7652, 2017-02-18)
LICENSE-GPLv3 (35142, 2017-02-18)
cmake (0, 2017-02-18)
cmake\toolchain-lin32.cmake (1013, 2017-02-18)
cmake\toolchain-lin64.cmake (1013, 2017-02-18)
cmake\toolchain-win32.cmake (774, 2017-02-18)
cmake\toolchain-win64.cmake (782, 2017-02-18)
external (0, 2017-02-18)
external\args.hxx (73726, 2017-02-18)
release.sh (1408, 2017-02-18)
src (0, 2017-02-18)
src\byteio.cpp (4939, 2017-02-18)
src\byteio.hpp (1912, 2017-02-18)
src\cli (0, 2017-02-18)
src\cli\cmd_add.cpp (7924, 2017-02-18)
src\cli\cmd_check.cpp (4184, 2017-02-18)
src\cli\cmd_delete.cpp (3478, 2017-02-18)
src\cli\cmd_extract.cpp (4760, 2017-02-18)
src\cli\cmd_list.cpp (3412, 2017-02-18)
src\cli\cmd_modify.cpp (4455, 2017-02-18)
src\cli\main.cpp (1928, 2017-02-18)
src\cli\shared.cpp (5173, 2017-02-18)
src\cli\shared.hpp (2017, 2017-02-18)
src\common.hpp (377, 2017-02-18)
src\ddsfile.cpp (4758, 2017-02-18)
src\ddsfile.hpp (4413, 2017-02-18)
src\errors.hpp (922, 2017-02-18)
src\gcc (0, 2017-02-18)
src\gcc\abi_fix.hpp (740, 2017-02-18)
src\gcc\new_abi.cpp (511, 2017-02-18)
src\gcc\old_abi.cpp (136, 2017-02-18)
src\headerfile.cpp (7633, 2017-02-18)
src\headerfile.hpp (4306, 2017-02-18)
src\path.hpp (2202, 2017-02-18)
todo.txt (292, 2017-02-18)

# SR Textool Tool for converting DDS textures to and from the Volition bitmap format. Supports Saints Row: The Third and Saints Row IV. ## Usage ### Help Every command has a help flag to print out its usage information. Use this if you want to know all the available arguments and how to specify them. ``` srtextool --help srtextool x --help srtextool a --help ``` ### Extract textures Extract all textures to the current directory. ``` srtextool x professorgenki.cpeg_pc ``` Extract only `professorgenki_sm_n.tga` and `professorgenki_sm_dp.tga`. ``` srtextool x professorgenki.cpeg_pc professorgenki_sm_n.tga professorgenki_sm_dp.tga ``` Extract everything to the folder `extracted` (needs to be created first). ``` srtextool x professorgenki.cpeg_pc -o extracted ``` ### Update or add textures Textures get automatically added it they don't exist. There's no need to specify which action to use. Update `professorgenki_sm_n.tga.dds` and add `new_texture.tga.dds` ``` srtextool a professorgenki.cpeg_pc professorgenki_sm_n.tga.dds new_texture.tga.dds ``` Update everything in the current directory ``` srtextool a professorgenki.cpeg_pc -i . ``` Create a new cpeg file ``` srtextool a new.cpeg_pc new_texture.tga.dds ``` Linux only: Update all textures matching `*.dds` ``` srtextool a professorgenki.cpeg_pc *.dds ``` Note: New textures with an alpha channel require the `BM_F_ALPHA` flag to be set. This can be done using the modify command. Existing textures already have it and don't need to be modified. ### Delete textures Delete `new_texture.tga.dds` ``` srtextool d professorgenki.cpeg_pc new_texture.tga.dds ``` ### Modify texture Change name of `new_texture.tga` to `new_texture2.tga` ``` srtextool m professorgenki.cpeg_pc new_texture.tga -n new_texture2.tga ``` Set alpha flag. A complete list of flags can be found in the [Peg file format] thread. ``` srtextool m professorgenki.cpeg_pc new_texture.tga -f 0x1 ``` ### List contents ``` srtextool l professorgenki.cpeg_pc ``` ### Check file for errors This command only prints errors. No output means the file is good. ``` srtextool c professorgenki.cpeg_pc ``` ## Building This section only applies if you downloaded the source code. Regular users can safely ignore it. ### Dependencies * [CMake] * Compiler with good C++11 support * Taywee's [args], which is included in `external` with slight modifications ### Linux ``` mkdir build cd build cmake .. make -j 4 ``` If you get an error about which mentions `std::ios_base::failure`, add `-DGCC_ABI_WORKAROUND=ON` to the cmake command. This applies to all GCC builds using version 5 or 6 at the time of writing. ### Windows Using the CMake GUI: * Select `...\srtextool` as the source location * Select `...\srtextool\build` as the binary location * Run "Configure" and "Generate" * Open the project file in `build` in your IDE or run make, ninja, whatever you used as the generator target ### Cross compiling for Windows First make sure the paths in `cmake/toolchain-win32.cmake` are correct. Then do the same as for [Linux](https://github.com/Yepoleb/srtextool/blob/master/#linux), but replace `cmake ..` with `cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain-win32.cmake`. ## Credits * \[V\] Knobby for providing the headers of the [Peg file format] * Scanti for writing the [SR3 Texture Utilities], which were a great starting point ## License [LGPL-3.0+](https://github.com/Yepoleb/srtextool/blob/master/LICENSE) [CMake]: https://cmake.org/ [args]: https://github.com/Taywee/args [Peg file format]: https://www.saintsrowmods.com/forum/threads/peg-file-format.2908/ [SR3 Texture Utilities]: https://www.saintsrowmods.com/forum/threads/sr3-texture-utilities.566/

近期下载者

相关文件


收藏者