A lot of my more recent maps for The Age of the Ring use a unique cloud texture or macrotexture where appropriate.
This is what you will need before starting.
There isn't a way to edit the cloud texture or macrotexture in Worldbuilder. But you can use different cloud textures and macrotextures and here is the easiest way to do that.
- Sort through the vanilla maps for a cloud texture and macrotexture that you want
- Clear the map
- Start creating your new map
This is method two, and what I am writing this tutorial on. If you want to edit your map's cloud texture while you are creating your map then you must remember that the texture name must be the same number of characters.
- Edit - Edit Map Settings... - Compression dropdown box
- Save your map with No compression
- Open your map with Notepad++
- Ctrl-F to bring up the Find dialogue
- Type this in to search for it .tga
- If you have plenty of water bodies on your map you will be searching for a while
- Once you find your map's cloud texture select just the name and look below at the status bar of Notepad++, it will give you the selection's character count (the number is after "Sel : " and is the second to last number on the status bar)
- The default cloud texture TSCloudMed.tga has 10 characters in the name TSCloudMed
- Change it to a texture with 10 characters
- If your mod adds new cloud textures I recommend naming them the same length as the default cloud texture, 10 characters
- TSNoiseUrb is the default noise texture, it is 10 characters too, you can change it too
- A list of cloud textures that I found in the games' extracted textures are as follows
- There might be more cloud textures, and there are a few macrotextures in the compiledtextures/ts folder
- As you can see you could also search for "cloud" in the search dialogue
- You can now save your map in Notepad++ and reopen it in Worldbuilder or ingame to test it out.
- You can use the same method seen in the Blue Mountains map or Minhiriath to change the colour of the map by repurposing the macrotexture or the cloud texture. Both have a blend mode, but I am still developing the method and learning what the blend modes do.
In-game, clouds are a form of ambient lighting. Clouds colour everything on the map: objects, terrain and units. For example, in a map like Blue Mountains, the cloud texture is replaced by an ambient lighting map. This texture is coloured black and white, white are areas of the map in light and black are areas of the map in darkness.
The macrotexture colours just the terrain. For example, the Dol Guldur map has ground shading done by a stretched macrotexture. Another example is an unused Minhiriath macrotexture, the map has three sections to it, the Old Forest, a dark and foggy swamp and the green Barrow-downs, each section has a different colour intended to blend with the map.
A picture of the Dol Guldur ambient lighting and as seen on the map with terrain removed.
To set up a cloud texture as ambient lighting follow these instructions. Again you will need the map set to no compression, I work with a map using no compression as it reduces saving time.
- In Worldbuilder click Edit, Edit Map Settings, and set Compression to No compression
- In Notepad or Notepad++ edit the map and click Search, Find, and search for .tga, you will find both TSNoiseUrb.tga and TSCloudMed.tga if you are editing a default map. Noise is for the macrotexture.
- Replace the cloud texture with you ambient lighting texture. The filename must be the same length as the filename already there. TSCloudMed is 10 letters long
- In your mod, the file can be a compressed dds file, and it must be added to the asset.dat like normal textures
- Add the following code to your map.ini
Weather CloudTextureSize = X:1000 Y:1000 CloudOffsetPerSecond = X:-0 Y:-0 End
- CloudTextureSize is the "size in world units that one repetition of the cloud texture spans", this should be the size of your map, or otherwise aligned to where you want the ambient lighting texture to be placed and repeated
- CloudOffsetPerSecond is the "offset in texture units that the cloud texture moves per second", you will want your ambient lighting texture to not move so set it at 0.
- Your map will look bad if you abuse this method by modding in a crazy cloud texture
- Backup your map
- If your map is pink then you've used the wrong texture. Commonly you've got the wrong character length in the name.
- I might add some samples of the available cloud textures so you may choose one without as much trial and error.
Edited by MattTheLegoman, 11 March 2018 - 01:31 PM.