From fa8b16488a4476d0239a70f9a10ebb7e0523264f Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Mon, 25 Apr 2022 16:26:26 -0400 Subject: [PATCH] Document the scalerim patch. --- .../butterfly_scalerim_patch-vs-220114.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Bucket_Game-branches/butterfly_scalerim_patch-vs-220114.md diff --git a/Bucket_Game-branches/butterfly_scalerim_patch-vs-220114.md b/Bucket_Game-branches/butterfly_scalerim_patch-vs-220114.md new file mode 100644 index 0000000..166c70b --- /dev/null +++ b/Bucket_Game-branches/butterfly_scalerim_patch-vs-220114.md @@ -0,0 +1,30 @@ +# butterfly_scalerim_patch-vs-220114 +See "butterfly_rearrange_patch-vs-220114" instead. + +## Size +The size has been reverted to the original 16x16 size since they look better that way. Issue [ENI 539](https://github.com/poikilos/EnlivenMinetest/issues/539) is present in the 32x32 version of the images that were upscaled in later versions of bucket_game (at least as early as 190620). Even if reverted to 16x16 then upscaled using scalerim to fix the issue, the images need some hand work to fix some blocky parts otherwise they may look odd. The original 16x16 version looks more natural since the (original author's) hand work was done at that resolution. + +To upscale images in butterfly_scalerim_patch-vs-220114: +``` +# Use BUCKET_GAME if the patch is already applied (set it correctly in the line below) +# BUCKET_GAME= +cd ~/git/EnlivenMinetest/Bucket_Game-branches/butterfly_scalerim_patch-vs-220114 +# cd $BUCKET_GAME +cd mods/codermobs/codermobs/textures +i=1 +# Loop: See +while [ $i -ne 4 ] +do + i=$(($i+1)) + scalerim codermobs_butterfly$i.png codermobs_butterfly$i-scaled.png --force --command scalex + if [ $? -ne 0 ]; then + echo "Error: 'scalerim codermobs_butterfly$i.png codermobs_butterfly$i-scaled.png --force --command scalex' failed in \"`pwd`\"" + exit 1 + fi + mv -f codermobs_butterfly$i-scaled.png codermobs_butterfly$i.png + echo "* scaled codermobs_butterfly$i.png" +done +echo Done +``` + +