Layer Tiles

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design

Post Reply
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6105
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Layer Tiles

Post 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.
Yrfin
1st Lieutenant - 15 cm sFH 18
1st Lieutenant - 15 cm sFH 18
Posts: 818
Joined: Sun Dec 04, 2016 6:47 am
Location: Behind your backs

Re: Layer Tiles

Post 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.
When im died - I must be a killed.
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6105
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Layer Tiles

Post by terminator »

It will just be necessary to wait a little (24-48h), this evening it is election night in France.
Yrfin
1st Lieutenant - 15 cm sFH 18
1st Lieutenant - 15 cm sFH 18
Posts: 818
Joined: Sun Dec 04, 2016 6:47 am
Location: Behind your backs

Re: Layer Tiles

Post 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 ?
When im died - I must be a killed.
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6105
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Layer Tiles

Post 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 3887 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 3887 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 3887 times
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6105
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Layer Tiles

Post 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 3887 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 3887 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
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6105
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Layer Tiles

Post 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 3884 times
After:
Capture d’écran (10).jpg
Capture d’écran (10).jpg (105.96 KiB) Viewed 3884 times
Here is the missing Tile :
LayerTile7.png
LayerTile7.png (7.81 KiB) Viewed 3884 times
parmenio
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 105
Joined: Sun Jan 10, 2010 5:41 pm

Re: Layer Tiles

Post by parmenio »

Nice!

Many thanks for this. I'll give it a go when I get home tonight.
parmenio
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 105
Joined: Sun Jan 10, 2010 5:41 pm

Re: Layer Tiles

Post 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.
terminator
Field Marshal - Gustav
Field Marshal - Gustav
Posts: 6105
Joined: Mon Aug 15, 2011 12:48 pm
Location: the land of freedom

Re: Layer Tiles

Post 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 3789 times
Download :
LayerTilesUtility(1.1).zip
(161.31 KiB) Downloaded 168 times
parmenio
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 105
Joined: Sun Jan 10, 2010 5:41 pm

Re: Layer Tiles

Post by parmenio »

That was quick! Thanks!

Downloading now...
Post Reply

Return to “Panzer Corps : Scenario Design”