nativeit / img2bpl.pl

Perl script for converting image file into Valheim PlanBuild mod blueprint file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

img2bpl.pl

Script for converting image file into Valheim blueprint (suitable for using with PlanBuild mod)

Usage: img2bpl.pl image_file blueprint_name > blueprint_name.blueprint

Requirements: Perl, perl module Image::Magick

Notes: Preferably, the vertical resolution of the picture should be a multiple of three (otherwise one or two lines will be lost). Also, PlanBuild can only use the generated blueprints only in direct mode (because the labels on the signs will be lost during building in normal mode). If immediately after construction the image does not look quite correct, try to move away a distance sufficient for it to disappear, and then return.

Example of conversion:

The image file

may be converted into following structure

About

Perl script for converting image file into Valheim PlanBuild mod blueprint file


Languages

Language:Perl 61.5%Language:PHP 38.5%