Modding - how to generate small product icons for your MOD running CapLab v11.0

Discussions about modding and share your mods with other players in this forum.
Post Reply
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10462
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 233 times

Modding - how to generate small product icons for your MOD running CapLab v11.0

Post by David »

Before version 11, small product icons displayed on the city map were scaled down in-game using a simple algorithm, which caused the visual jarring. To improve this, we include a batch file called make_small_images.BAT in the MOD kit for version 11.0, located in the \MOD_kit\Images\Products folder. This file allows you to batch produce small images based on the standard images.

Here's what the make_small_images.BAT file looks like:

rem make smaller versions of the product images and save them in \small
rem smaller versions of the product images are displayed in various places in the game. For example, factories in the Firm Summary report showing the products they produce

rem you can download the magick app that this batch file runs from https://www.imagemagick.org/

md small
del small\*.png

magick mogrify -format png -define png:color-type=2 -resize 40x40! -path small *.png

cd small
pack
cd..


You would need to download and install the magick app from https://www.imagemagick.org/ first in order to run this batch file.

This screen shows the improved image quality of the small product icons:
firm-list-with-icon.png
firm-list-with-icon.png (421.76 KiB) Viewed 3701 times
Post Reply