Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kambala-decapitator/qdc6
Diablo 2 dc6 image converter using Qt
https://github.com/kambala-decapitator/qdc6
cpp11 diablo2 image-processing qt
Last synced: about 2 months ago
JSON representation
Diablo 2 dc6 image converter using Qt
- Host: GitHub
- URL: https://github.com/kambala-decapitator/qdc6
- Owner: kambala-decapitator
- License: mit
- Created: 2021-10-14T12:59:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T21:04:14.000Z (11 months ago)
- Last Synced: 2024-02-24T22:24:06.131Z (11 months ago)
- Topics: cpp11, diablo2, image-processing, qt
- Language: C++
- Homepage: https://d2mods.info/forum/viewtopic.php?f=7&t=67328
- Size: 39.1 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qdc6
Diablo 2 dc6 image converter using [Qt framework](https://qt.io/).
## Using
Check the help message for details.
You can find palettes in `d2data.mpq` under `data\global\palette\*`. The default one already embedded in the application is `data\global\palette\units\pal.dat`.
## Building
You will need:
1. C++11 compiler.
2. Qt 4 or higher.
3. Optionally: CMake.To build from GUI, simply open `qdc6.pro`, `qdc6.qbs` or `CMakeLists.txt` in Qt Creator. The following instructions are for command line.
### qmake
Standard `qmake` approach. Create build directory anywhere you like and run
/path/to/qmake /path/to/qdc6.pro
If you want to build with SVG support (requires respective Qt module), also pass `CONFIG+=svg` parameter:
/path/to/qmake CONFIG+=svg /path/to/qdc6.pro
After that use `jom` or `nmake` on Windows and `make` on other OS.
### Qbs
Standard Qbs approach. From the repo directory run
qbs -d /path/to/build/dir
- pass `products.qdc6.svg:true` if you want to build with SVG support (requires respective Qt module)
- pass other parameters like `-j` as needed### CMake
Standard CMake approach.
cmake -B /path/to/build/dir -S /path/to/source/dir
- pass `-DSVG=ON` if you want to build with SVG support (requires respective Qt module)
- pass `"-DCMAKE_PREFIX_PATH="` to find your Qt installation
- pass other parameters like `-G` as neededAfter that:
cmake --build /path/to/build/dir
Note: using Qt 4 with CMake requires CMake 3.17+.
## Resources
- [dc6 format info](https://d2mods.info/forum/viewtopic.php?t=724#p148076)
- [other dc6 tools](https://d2mods.info/forum/downloadsystemcat?id=14)## Why
Got really fed up with:
- dc6con -> pcx (who uses this format nowadays anyway?) -> ImageMagick® to obtain png
- run DC6Creator under wine and make lots of clicks to convert skill icons into separate imagesBesides, none of the tools I know allow saving multi-frame dc6 into separate files from command-line.
And it's cross-platform!