Page 1 of 1

Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Tue Aug 09, 2022 2:50 am
by Elefant
You will need: A Windows computer, FLICster, and GIMP

FLICster: https://forums.civfanatics.com/resources/flicster.5860/
GIMP: https://www.gimp.org/

• open the .flc file, default is preferred
• export with options: Storyboard with border, maximum size (240x240).
• Open exported file with GIMP
• Colours, Colour to Alpha, chose BG colour, mess with settings until happy
• open palettes over selection editor, right-click, import palette, from file, chose Filename_Alpha.Pal from the directory of the image.
• Colours, Map, Set Colourmap, set to your new palette.
• If more than one column, Box select, location 0,0, size 242x1929 px, Image, crop canvas to selection.
• On all layers, layer, layer to image size

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Sat Oct 01, 2022 3:08 am
by Elefant
Update: I wrote a python script to do this automatically. It loads a file with links to download .rar archives with the units, and converts them to 64 x 48 images with transparent backgrounds.

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Sat Oct 01, 2022 2:49 pm
by Elefant
A few things i forgot. First, big thanks to radarhere from the pillow project for fixing the way .flc palettes are loaded. Second, because of the issues necessitating this fix, unless you modify your pillow library, the script will not fully work. I hope that the fix will be in the upcoming 9.3 release. Or you can go and do the modification manually.

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Sat Oct 01, 2022 8:13 pm
by Elefant
I also have an exe, but it is too big to post. If there is somewhere that I can post that, please let me know.

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Tue Oct 04, 2022 12:02 am
by Elefant
Here is the patch radarhere made to fix pillow.
https://github.com/python-pillow/Pillow/pull/6626

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Wed Oct 05, 2022 3:37 am
by Elefant
Fixed some bugs with the first version.
Also included a fliimageplugin.py file that fixes some problems with pillow 9.2.
This file is not my code. It is the standard file, fixed by radarhere.
As such, it is subject to the applicable licenses.

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Wed Oct 05, 2022 8:47 pm
by Elefant
Would it be possible to get a program included in the modpack installer?
Ideally, I would like it if ruleset authors could distribute a c3ts file with their mod, which could then build the tileset from the thousands of civ iii unit graphics on the internet. This would bypass license issues by having each user download and convert the graphics themselves, so that what is distributed is the intellectual property of the tileset author.

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Sat Dec 03, 2022 1:38 pm
by cazfi
Elefant wrote: Wed Oct 05, 2022 8:47 pmWould it be possible to get a program included in the modpack installer?
Ideally, I would like it if ruleset authors could distribute a c3ts file with their mod, which could then build the tileset from the thousands of civ iii unit graphics on the internet. This would bypass license issues by having each user download and convert the graphics themselves, so that what is distributed is the intellectual property of the tileset author.
I'm not sure what you are after here. Modpack that is not part of freeciv, does not need to be GPL2+ to begin with. That's the reason Modpack Installer has the "License" information column.
Or do you mean that the license in question disallows you from building up an tileset (and distributing it under some license)?

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Mon Dec 05, 2022 1:53 am
by Elefant
The problem is that there is no explicit license for the graphics, and there are many different authors.

Re: Tutorial: How to convert civ 3 unit graphics for use in Freeciv

Posted: Wed Dec 14, 2022 10:28 pm
by Elefant
viewtopic.php?t=92953
The project was moved to this thread.