Difference between revisions of "DIY terrain"

From Worms Knowledge Base

Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
DIY terrains must be converted from an IFF template (pictured right). The template is laid out as follows:
 
DIY terrains must be converted from an IFF template (pictured right). The template is laid out as follows:
  
{| style="width: 65%" border="1"
+
{| style="width: 65%" border="1" class="wikitable"
 
|-  
 
|-  
| style="width: 100px;" | '''Ground''' || Texture for solid terrain.
+
| style="width: 100px;" | '''Ground''' || Texture for solid terrain. Image Dimensions 64x128
 
|-
 
|-
| '''Background''' || Texture for background terrain, revealed as ground texture is damaged (comparable to "soil" in W2/WA/WWP terrains).
+
| '''Background''' || Texture for background terrain, revealed as ground texture is damaged (comparable to "soil" in W2/WA/WWP terrains). Image Dimensions 64x128
 
|-
 
|-
| '''Bridge''' || Three sections - upward-sloped bridge, flat bridge, downward-sloped bridge. Only used for map generation - girders retain their standard appearance.
+
| '''Bridge''' || Three sections - upward-sloped bridge, flat bridge, downward-sloped bridge. Only used for map generation - girders retain their standard appearance. Image Dimensions 32x9
 
|-
 
|-
| '''Grass''' || Topsoil, place atop the generated landscape.
+
| '''Grass''' || Topsoil, place atop the generated landscape. Image Dimensions 32x7
 
|-
 
|-
| '''Shade''' || Bottomsoil, placed underneath the generated landscape for definition.
+
| '''Shade''' || Bottomsoil, placed underneath the generated landscape for definition. Image Dimensions 32x6
 
|-
 
|-
 
| '''Remaining spaces''' || Objects which may be placed on the map, space-permitting.
 
| '''Remaining spaces''' || Objects which may be placed on the map, space-permitting.
 
|}
 
|}
  
Of these, the only box that absolutely must have something placed within it is the "Ground" box. Everything else can theoretically be left blank, although no bridge objects mean no bridges. Additionally, the "Ground" box cannot have any pixels using palette reference 0 (used for transparency) as this results in [[DIY terrains with gaps in "ground" texture generate glitch maps|glitched maps]].
+
Of these, the only box that absolutely must have something placed within it is the "Ground" box. The "Ground" box cannot have any pixels using palette reference 0 (used for transparency) as this results in [[DIY terrains with gaps in "ground" texture generate glitch maps|glitched maps]]. Everything else can theoretically be left blank, although no bridge objects mean no bridges.
  
 
The IFF template palette must contains the following colour references, as they are also used for other elements of the game:
 
The IFF template palette must contains the following colour references, as they are also used for other elements of the game:
Line 33: Line 33:
 
* 07-15 - Any colours
 
* 07-15 - Any colours
  
As with [[Colour map (first generation)|colour maps]], if you are using DeluxePaint you must not have the "Stencil" feature enabled when you save your template otherwise [[Loading maps saved with DeluxePaint "Stencil" feature active crashes the game|the game will crash]].
+
As with [[Colour map (first generation)|colour maps]], if you are using DeluxePaint or Personal Paint you must not have the "Stencil" feature enabled when you save your template otherwise [[Loading maps saved with DeluxePaint or Personal Paint "Stencil" feature active crashes the game|the game will crash]].
  
 
Once the template is finished, it must be imported using [[WormPrefs]]' "Create Landscape" mode, where it will be converted into a usable .DIY file. Here it is possible to adjust gravity, friction, choose a [[Mountain set]], adjust the sky colours, and select a type of water to use as well as adjust the water palette.
 
Once the template is finished, it must be imported using [[WormPrefs]]' "Create Landscape" mode, where it will be converted into a usable .DIY file. Here it is possible to adjust gravity, friction, choose a [[Mountain set]], adjust the sky colours, and select a type of water to use as well as adjust the water palette.
  
 
DIY terrains support names up to 10 characters in length, although longer names may be incompatible with the "[[cavern]]" modifier.
 
DIY terrains support names up to 10 characters in length, although longer names may be incompatible with the "[[cavern]]" modifier.

Latest revision as of 16:38, 21 December 2023

(Up to File formats)
Wdc-diy.png
DIY terrains (also called Landscapes) are custom terrain styles for WormsDC, which supports the creation of custom terrains that can be used for random map generation. They are stored in the "TWDIY" drawer.

DIY terrains must be converted from an IFF template (pictured right). The template is laid out as follows:

Ground Texture for solid terrain. Image Dimensions 64x128
Background Texture for background terrain, revealed as ground texture is damaged (comparable to "soil" in W2/WA/WWP terrains). Image Dimensions 64x128
Bridge Three sections - upward-sloped bridge, flat bridge, downward-sloped bridge. Only used for map generation - girders retain their standard appearance. Image Dimensions 32x9
Grass Topsoil, place atop the generated landscape. Image Dimensions 32x7
Shade Bottomsoil, placed underneath the generated landscape for definition. Image Dimensions 32x6
Remaining spaces Objects which may be placed on the map, space-permitting.

Of these, the only box that absolutely must have something placed within it is the "Ground" box. The "Ground" box cannot have any pixels using palette reference 0 (used for transparency) as this results in glitched maps. Everything else can theoretically be left blank, although no bridge objects mean no bridges.

The IFF template palette must contains the following colour references, as they are also used for other elements of the game:

  • 00 - Black or dark colour (transparency)
  • 01 - White or near-white (also used for sheep, worms' eyes, worms' name/HP font, and graves)
  • 02 - Pink (also used for worms' bodies and antialiasing on worms' name/HP font)
  • 03 - Any colour (also used for crates)
  • 04 - Lighter variant of 03 (also used for shading on crates)
  • 05 - Any colour (also used for mines)
  • 06 - Lighter variant of 05 (also used for shading on mines)
  • 07-15 - Any colours

As with colour maps, if you are using DeluxePaint or Personal Paint you must not have the "Stencil" feature enabled when you save your template otherwise the game will crash.

Once the template is finished, it must be imported using WormPrefs' "Create Landscape" mode, where it will be converted into a usable .DIY file. Here it is possible to adjust gravity, friction, choose a Mountain set, adjust the sky colours, and select a type of water to use as well as adjust the water palette.

DIY terrains support names up to 10 characters in length, although longer names may be incompatible with the "cavern" modifier.

Personal tools