Page 1 of 1

Layer Tiles

Posted: Sun Apr 23, 2017 2:47 pm
by terminator
Hi,
Is anybody interested in a small utility program for Layer Tiles ?
Layer Tiles (for example LayerRails) are big image. If you want to remplace or add a new Layer it is a little complicated.
With my first program, you load the LayerRails.png and the program will cut every Layer (Layer1.png, layer2.png......).
Now you can remplace or add the Layer you want (Layer3.png for example).
With the second program, it is going to re-assemble all the Layers in one image.

Re: Layer Tiles

Posted: Sun Apr 23, 2017 3:31 pm
by Yrfin
Excellent !
Now everyone can to combine with layers tiles from different Layer. Nice work !
I was going to add several pieces to LayerStations from different versions long ago, but too lazy to work with Photoshop.

Re: Layer Tiles

Posted: Sun Apr 23, 2017 4:10 pm
by terminator
It will just be necessary to wait a little (24-48h), this evening it is election night in France.

Re: Layer Tiles

Posted: Sun Apr 23, 2017 4:37 pm
by Yrfin
terminator wrote:It will just be necessary to wait a little (24-48h), this evening it is election night in France.
President's Layer ?

Re: Layer Tiles

Posted: Mon Apr 24, 2017 1:16 pm
by terminator
Here is the program : "LayerTilesUtility" (coded with Purebasic)

- Step 1 :
Place the file containing the LayerTilesUtility.exe wherever (on the Windows desktop for example).
Plaste a LayerTiles file (LayerPorts.png for example) then run the LayerTilesUtility.exe :
Capture d’écran (7).png
Capture d’écran (7).png (54.24 KiB) Viewed 3891 times
- Step 2 :
Type yhe name of the file without the extension (.png).
The number of column and line will appear and "Ready to cut" :
Capture d’écran (8).png
Capture d’écran (8).png (22.78 KiB) Viewed 3891 times
- Step 3 :
Press on the button "Cut the Layer Tiles" and all the Tiles will appear :
Capture d’écran (9).png
Capture d’écran (9).png (153.37 KiB) Viewed 3891 times

Re: Layer Tiles

Posted: Mon Apr 24, 2017 1:26 pm
by terminator
- Step 4:
Now you can modify the tiles you want , or you can add a line. You have to enter the number of column and line and change the name of the file. If you use the same name as the original file , the program will overwrite the original file.
You can not use some caracter for the name like "?" (you will receive a message in that case and change the name).
Now you will save :
Capture d’écran (10).png
Capture d’écran (10).png (148.49 KiB) Viewed 3891 times
- Step 5 :
Finished !
Note : you can load and cute and then close the program , make modifications , reopen the program and then save (It is just necessary to have to note the number of columns and lines) or you can minimize the window...
Capture d’écran (11).png
Capture d’écran (11).png (140.86 KiB) Viewed 3891 times
You can see that I have added a line to the file "LayerTest.png"

- Step 6:
Download my program !
LayerTilesUtility.zip
(159.71 KiB) Downloaded 182 times

Re: Layer Tiles

Posted: Mon Apr 24, 2017 2:05 pm
by terminator
You can make a test with the scenario Lake Balaton and the LayerRails.
Before :
Capture d’écran (9).jpg
Capture d’écran (9).jpg (97.01 KiB) Viewed 3888 times
After:
Capture d’écran (10).jpg
Capture d’écran (10).jpg (105.96 KiB) Viewed 3888 times
Here is the missing Tile :
LayerTile7.png
LayerTile7.png (7.81 KiB) Viewed 3888 times

Re: Layer Tiles

Posted: Tue Apr 25, 2017 11:38 am
by parmenio
Nice!

Many thanks for this. I'll give it a go when I get home tonight.

Re: Layer Tiles

Posted: Wed Apr 26, 2017 4:59 pm
by parmenio
A request if I may.....

A checkbox to allow you to remove the cut tiles when re-assembling the tileset would be helpful.

Re: Layer Tiles

Posted: Thu Apr 27, 2017 6:25 am
by terminator
parmenio wrote:A request if I may.....

A checkbox to allow you to remove the cut tiles when re-assembling the tileset would be helpful.
LayerTilesUtility version 1.1 :
- Chekbox "Remove the cut layer tiles" added.
- MessageRequester if saving file already exists added.
LayerTilesUtility(1.1).JPG
LayerTilesUtility(1.1).JPG (28.23 KiB) Viewed 3793 times
Download :
LayerTilesUtility(1.1).zip
(161.31 KiB) Downloaded 169 times

Re: Layer Tiles

Posted: Thu Apr 27, 2017 6:57 am
by parmenio
That was quick! Thanks!

Downloading now...