Short story: I had 400+ hand made image files for ufopedia in a mod, but my HDD has died and my ass was torn into pieces, I am releasing the tool and forgetting about it. There is also an attachment with 80 saved images. Feel free to use.
Q: What is does?A: Convertes images to x-pirates palette with one click, palette is being made according to this guide
https://openxcom.org/forum/index.php/topic,4957 by
Meridian.
Q: How to use?A:
• You will need irfanview, this script uses irfanview as palette extraction tool. Get irfanview here
http://www.irfanview.com/ don't use x64 version, it has issues.
• Then you need to drop image converter into irfanview folder.
• Next you need to prepare image files, you can use literally any image editor for that, irfanview would work too, but i strongly recommend photoshop with its powerful and flexible index palette options.
YOU NEED TO DECREASE COLOR DEPTH TO 233 COLORS. Any other in range 1-256 would work too(any 8bpp image), but any other number would lead to some loss of quality. (233 = 256 minus palette entries occupied by game for its needs)
• Next you either drag-n-drop image file on converter executable, or run the exe and choose file through dialog menu. It would do the rest by itself and would
OVERWRITE the source image file.
• The converted files can be used in game with mods, check
Meridian's guide on top. ↑
Q: How it works?A: I have included both exe and source files in the archive. It is written in autoit(
https://www.autoitscript.com/site/autoit/), the source has commentaries on every action, very easy to read and modify. There are online compilers for that language if you want to compile it by yourself but don't want to install autoit.
Small notice: I did not do any failchecks in the script, was not worth it. It means that if you click in wrong places or do something unexpected - it would throw errors at you. It won't corrupt your windows files or something like that though, don't worry about that.
I was not following the game developent, so idk whats the current situation with those images and palettes and etc, but the source of tool can be very easily modified, so if you find it useful - feel free to edit it and modify to your needs, I don't take any credit for that. It would literally take a couple of minutes to modify source script to any palette.
GET FILES:Just in case uploading everywhere. It is identical to attached archive.
http://rgho.st/7bRfKDjBZhttps://mega.nz/#!pTwHEZ5L!DZnYCnaYXLNC4yrm-L9FylaW7x5lEGRdIM4gKl2lEQUhttps://myfile.org/Z577ded6be/X-Piratez_image_tool.ziphttps://www.dropbox.com/s/wsadp50dfndzpzz/X-Piratez%20image%20tool.zip?dl=0https://drive.google.com/open?id=1-v8xkPVUYaQN7P6qUuNAYliX6vH7aGT-