Posted September 21, 2023 by Steven Colling
Before I go into more detail about some of the changes, let's have a look at the changes in summary:
A member of my Discord server (Besnoel) pointed out that the tiles were not completely regular, which means all sides having an equal length. To fix that, I adjusted the dimensions of the ground images and all the borders as well as their positioning within a 840x840px tile (accepting some rounding errors of course, as we work with rasterized images here). All tiles had to be rebuilt as a result. The following image shows a comparison between an old tile and a new tile with fixed positioning. The changes are overall barely noticeable, because the adjustments are mostly a couple pixels.
The following table provides the exact changes made to the ground images and the thin, medium and thick borders, for both flat-bottom and pointy-bottom tiles. The same table can be viewed in the documentation (under changelog). You can see how the fix had a bigger effect on the flat-bottom tiles.
Entity | Size Before | Size Now | Position Before | Position Now |
---|---|---|---|---|
Ground (Flat) | 725x634 | 725x628 | 57, 103 | 57, 106 |
Ground (Pointy) | 624x728 | 628x725 | 108, 56 | 106, 57 |
Border Medium (Flat) | 795x708 | 795x688 | 22, 66 | 22, 76 |
Border Medium (Pointy) | 688x792 | 688x795 | 76, 24 | 76, 22 |
Border Thin (Flat) | 758x668 | 758x656 | 41, 76 | 41, 92 |
Border Thin (Pointy) | 654x756 | 656x758 | 93, 42 | 92, 41 |
Border Thick (Flat) | 812x720 | 812x703 | 14, 60 | 14, 68 |
Border Thick (Pointy) | 708x812 | 703x812 | 66, 14 | 68, 14 |
Besides these changes there's a new naming scheme for paths, roads and rivers. A thanks to Discord server member Leonid, who pointed this idea out. Instead of naming paths, roads and rivers with codes for north (n), south (s) etc. in their file name, they now use a bit mask to denote which sides of a tile the path, road or river is connecting to, with a 1 indicating a connection and 0 otherwise, starting in the north for flat-bottom tiles and in the north-east for pointy-bottom tiles, going clockwise. The following image demonstrates the new naming scheme for the file overlay_river_c100100_8.png.
This should make using paths, roads and rivers programmatically much easier.
I hope the changes are useful. Happy creating! :)
Best regards,
Steven