Python script for aligning Fallout scenery
Fallout scenery has to be stripped into several pieces because the engine doesn't handle well objects bigger than roughly 200x250 px. Unfortunately, after converting to frm and aligning, you have to set offset for each piece to be able to align it to other pieces.
The engine uses hexes which have width of 32px and height of 16px. Everything is aligned to the center of the hex. So, basically, if you make parts of the scenery of exact size, they will always match as the engine will not move them.
The script (designed for huge scenery which is e.g. 200x200px) reads image(s) from input, creates directory for each image, get's image size, calculates best number of hexes in each tile (e.g. image has width of 200, the script will split it into 4 pieces, each 2 hexes = 64px). Generally, there is a possible number of hexes in tile and the engine uses the highest possible (at maximum 2 hexes off the image). Then it will add space to the source image at right and top to make the size of image dividable by tile size. In the end, tiles are cut from source image and saved to the directory named after source filename (after removing "aeiouy", making lowercase, ...). Accepts .png only.
The script is untested. It will change in the future. Use at your own risk. Do not redistribute without prior permission of TowerOfCreation.com team (contact info at towerofcreation (dot) com).

