Difference between revisions of "Editing Castles"

From The Battle for Wesnoth Wiki
m (Making other Corner-Based Terrains: placeholder sentence)
(Editing the Existing Castles)
 
(4 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
It will show you how to edit the existing castle tiles while making sure they continue to line up properly in game. The same technique can be used for any tiles which work on the same principle (such as Eleazar's new canyons, or Scott's indoor walls).
 
It will show you how to edit the existing castle tiles while making sure they continue to line up properly in game. The same technique can be used for any tiles which work on the same principle (such as Eleazar's new canyons, or Scott's indoor walls).
  
You will need to download both [http://www.wesnoth.org/forum/download.php?id=5197 this overlay template], and [http://www.wesnoth.org/forum/download.php?id=5196 this gimp-python script]. ''Extract the python script to your GIMP "plug-ins" directory'', and you're ready to go.
+
'''You will need to download both [http://www.wesnoth.org/forum/download.php?id=5197 this overlay template], and [http://www.wesnoth.org/forum/download.php?id=5196 this gimp-python script]. ''Extract the python script to your GIMP "plug-ins" directory'', and you're ready to go.'''
  
 
== Editing the Existing Castles ==
 
== Editing the Existing Castles ==
Line 11: Line 11:
 
Open the overlay template in The GIMP.
 
Open the overlay template in The GIMP.
  
http://www.wesnoth.org/forum/files/shot1_568.jpg
+
http://wesnoth.org/wiki-images/exong-backup/shot1_568.jpg
  
 
Find the castle tiles you want to modify and drag them onto your image. This should add each castle image as a separate layer. In this case I'm modifying the "castle-convex" parts of pekka's castles.
 
Find the castle tiles you want to modify and drag them onto your image. This should add each castle image as a separate layer. In this case I'm modifying the "castle-convex" parts of pekka's castles.
 
Press 'M' and move the layers around so that the images line up around the central white hex. The layers should snap to the guides in the overlay template, so this should be easy to get exactly right.
 
Press 'M' and move the layers around so that the images line up around the central white hex. The layers should snap to the guides in the overlay template, so this should be easy to get exactly right.
  
http://www.wesnoth.org/forum/files/shot2_531.jpg
+
http://wesnoth.org/wiki-images/exong-backup/shot2_531.jpg
  
 
You can hide the guides (as I've done here) by pressing shift-control-T, or deselecting "show guides" in the "View" menu.
 
You can hide the guides (as I've done here) by pressing shift-control-T, or deselecting "show guides" in the "View" menu.
Line 24: Line 24:
 
Edit the castle to your heart's content. Here I'm just going to put some annoying little flags on top. Make sure you edit one corner at a time, and that you keep each corner on a separate layer. It's useful to turn "Snap to Guides" off (in the "View" menu) if you're doing any freehand drawing.
 
Edit the castle to your heart's content. Here I'm just going to put some annoying little flags on top. Make sure you edit one corner at a time, and that you keep each corner on a separate layer. It's useful to turn "Snap to Guides" off (in the "View" menu) if you're doing any freehand drawing.
  
http://www.wesnoth.org/forum/files/shot3_178.jpg
+
http://wesnoth.org/wiki-images/exong-backup/shot3_178.jpg
  
 
=== Step 3: Save ===
 
=== Step 3: Save ===
Line 30: Line 30:
 
Now to save the edited castle. First, make everything except for one corner invisible.
 
Now to save the edited castle. First, make everything except for one corner invisible.
  
http://www.wesnoth.org/forum/files/shot4_494.jpg
+
http://wesnoth.org/wiki-images/exong-backup/shot4_494.jpg
  
Then run the "WesCutter" script. If you've extracted the plugin to the right place, it should be found in "Wesnoth" under the "Python-Fu" menu. You'll be doing this again, so click the dotted line to detach the Wesnoth menu and save yourself a few clicks.
+
Then run the "WesCutter" script. If you've extracted the plugin to the right place, it should be found under "Wesnoth" in the Gimp "Python-Fu" menu. You'll be doing this again, so click the dotted line to detach the Wesnoth menu and save yourself a few clicks.
  
 
The script lets you choose a directory to save the file in (I'm saving to my desktop), the base filename (in this case, "castle"), whether it's a concave or convex image (added to the filename) and which corner it is (in this case, NW).
 
The script lets you choose a directory to save the file in (I'm saving to my desktop), the base filename (in this case, "castle"), whether it's a concave or convex image (added to the filename) and which corner it is (in this case, NW).
  
http://www.wesnoth.org/forum/files/shot5_193.jpg
+
http://wesnoth.org/wiki-images/exong-backup/shot5_193.jpg
  
 
After clicking on "OK", I have a shiny new image called "castle-convex-nw.png" on my desktop, just the right size to work in Wesnoth. After doing this with all 6 corners, you can put them in the "images/terrain" subdirectory of your userdata directory (see [[EditingWesnoth]]). If you've put them in the right place, your new castles will automatically replace the old ones next time you run wesnoth http://www.wesnoth.org/forum/images/smiles/icon_smile.gif.
 
After clicking on "OK", I have a shiny new image called "castle-convex-nw.png" on my desktop, just the right size to work in Wesnoth. After doing this with all 6 corners, you can put them in the "images/terrain" subdirectory of your userdata directory (see [[EditingWesnoth]]). If you've put them in the right place, your new castles will automatically replace the old ones next time you run wesnoth http://www.wesnoth.org/forum/images/smiles/icon_smile.gif.
  
http://www.wesnoth.org/forum/files/shot6_273.jpg
+
http://wesnoth.org/wiki-images/exong-backup/shot6_273.jpg
  
 
hooray!
 
hooray!
Line 54: Line 54:
 
* [[CastleTutorial]]
 
* [[CastleTutorial]]
 
* [[EditingWesnoth]]
 
* [[EditingWesnoth]]
 +
 +
[[Category: Art Tutorials]]

Latest revision as of 13:17, 1 April 2014

This tutorial is based on a gimp-python script, and as such is aimed squarely at users of The GIMP.

It will show you how to edit the existing castle tiles while making sure they continue to line up properly in game. The same technique can be used for any tiles which work on the same principle (such as Eleazar's new canyons, or Scott's indoor walls).

You will need to download both this overlay template, and this gimp-python script. Extract the python script to your GIMP "plug-ins" directory, and you're ready to go.

Editing the Existing Castles

Step 1: Open

Open the overlay template in The GIMP.

shot1_568.jpg

Find the castle tiles you want to modify and drag them onto your image. This should add each castle image as a separate layer. In this case I'm modifying the "castle-convex" parts of pekka's castles. Press 'M' and move the layers around so that the images line up around the central white hex. The layers should snap to the guides in the overlay template, so this should be easy to get exactly right.

shot2_531.jpg

You can hide the guides (as I've done here) by pressing shift-control-T, or deselecting "show guides" in the "View" menu.

Step 2: Edit

Edit the castle to your heart's content. Here I'm just going to put some annoying little flags on top. Make sure you edit one corner at a time, and that you keep each corner on a separate layer. It's useful to turn "Snap to Guides" off (in the "View" menu) if you're doing any freehand drawing.

shot3_178.jpg

Step 3: Save

Now to save the edited castle. First, make everything except for one corner invisible.

shot4_494.jpg

Then run the "WesCutter" script. If you've extracted the plugin to the right place, it should be found under "Wesnoth" in the Gimp "Python-Fu" menu. You'll be doing this again, so click the dotted line to detach the Wesnoth menu and save yourself a few clicks.

The script lets you choose a directory to save the file in (I'm saving to my desktop), the base filename (in this case, "castle"), whether it's a concave or convex image (added to the filename) and which corner it is (in this case, NW).

shot5_193.jpg

After clicking on "OK", I have a shiny new image called "castle-convex-nw.png" on my desktop, just the right size to work in Wesnoth. After doing this with all 6 corners, you can put them in the "images/terrain" subdirectory of your userdata directory (see EditingWesnoth). If you've put them in the right place, your new castles will automatically replace the old ones next time you run wesnoth icon_smile.gif.

shot6_273.jpg

hooray!

Making other Corner-Based Terrains

The same technique can also be used to make other corner-based terrains (for examples of other corner-based terrains, see Eleazar's Canyons and Scott's Indoor Walls).

See Also

This page was last edited on 1 April 2014, at 13:17.