08-23-2019, 11:27 AM
(This post was last modified: 08-23-2019, 11:29 AM by Simpsons Dumper.)
At long last I've got around to uploading some of the things from Masters which are in those tightly-packed spritesheets to The Spriters Resource, seeing as I think it's not too long now until the game releases worldwide. I may as well share my little script for despriting these now, in case it's handy for anyone, though it probably won't be for reasons I'll get into shortly.
Included in the attached archive is my messy and fragile source code, plus a pre-compiled executable for x86-64 Linux. It seems to not want to compile for 32-bit, and as it stands will not work on Windows due to botched directory creation. I think it might work on Mac if you can compile it! And on Windows if you make the appropriate edits. There is also a text file which includes a command for building it with g++.
To use it, ensure a PNG and Pokémon Masters PLIST file are in the same directory, and run it with the filename of your files without a file extension as the argument, e.g. ./plist battle_pack_99. Ensure you have full write access to the current directory.
Dependencies for building are the libMagick stuff. If on Ubuntu, I think sudo apt install libmagick++-dev graphicsmagick-libmagick-dev-compat will sort you out, but no promises are made.
Included in the attached archive is my messy and fragile source code, plus a pre-compiled executable for x86-64 Linux. It seems to not want to compile for 32-bit, and as it stands will not work on Windows due to botched directory creation. I think it might work on Mac if you can compile it! And on Windows if you make the appropriate edits. There is also a text file which includes a command for building it with g++.
To use it, ensure a PNG and Pokémon Masters PLIST file are in the same directory, and run it with the filename of your files without a file extension as the argument, e.g. ./plist battle_pack_99. Ensure you have full write access to the current directory.
Dependencies for building are the libMagick stuff. If on Ubuntu, I think sudo apt install libmagick++-dev graphicsmagick-libmagick-dev-compat will sort you out, but no promises are made.