I have been meaning to get around to this at some time, but I was prompted by Garniers thread about Kingdoms skies to go ahead and start on it. My goal here is a weather type for a fantasy mod like you see in the movies, funky cloud patterns that fly across the sky, rapidly changing weather types, lots of noise and random lightning strikes, totally unpredictable.
While you cant assign more than one mesh to a pattern, you can create all types of new patterns, so you could basically have two patterns with two totally different meshes that are assigned by random. See Garnier's thread here. Eventually I will also include this in my Ultimate Docudemons.
I have created one basic weather type called blight that is close to what I want for my fantasy mod, that will be used only on one climate where the Dark One lives. Eventually I will branch this out into 8 or 10 different weather types that rapidly shift during the course of battle, so you never know what you are going to get. If you want to check out the beta version of this then you need to drop the attached weather file into your mod/data folder and start a battle someplace in the unused1 climate. At this point I have not changed any of the vanilla meshes or textures, just matched them up in unique ways, so you only need the one file. Eventually I may try editing the meshes to get some different colors, but first I will work with just the text files. This was all done by editing weather_db.xml.
Vanilla M2TW Meshes
skydome.mesh, this is the only one used in the vanilla file
skydome_night.mesh, unused in vanilla
skydome_sunset_cloudy.mesh, unused in vanilla
lightning_test.mesh, this one is pure black, like its name suggests it was probably only used to test how lightning looks without having any other graphics to distract you.
Vanilla Patterns, you can add as many as you need up to whatever the hardcoded limit is, I havent hit that limit yet
clear
clear arid
clear winter
rain
storm
snow
blizzard
custom LF
cloudy
cloudy arid
dusty
cloudy winter
light fog
light fog winter
heavy fog
heavy fog winter
france custom
Vanilla Audio Types, you can change these by editing the mp3s and recompiling using the sound text files
calm
rain
storm
snow
blizzard
breezes
gales
wind
Vanilla Period IDs, I dont think these can be changed, and are randomly assigned when the battle starts
sunrise
morning
midday
afternoon
sunset
night
Vanilla Precipitations Types, havent figured out how to change these yet
none
rain
snow
dust
Vanilla Precipitation Levels, havent figured out how to change these yet
dry
drizzle
light
heavy
torrential
Vanilla Wind Types, havent figured out how to change these yet
wind
breezes
gusts
gales
Underneath the skydome_mesh there are two layers of clouds, a high layer and a low layer and a speed setting that controls how fast they move across the screen. The vanilla files use the same cloud types for both upper and lower. In my beta version I have used two different cloud types and set the X speed of one really fast, and the Y speed of the other really fast. The upper clouds fly across the screen in one direction, the lower clouds fly across the screen in the other direction. Screenshots dont do it justice you have to see it in action to appreciate it.
<cloud id="high" texture="globallighting/cloudtile_sunset_cloudy.texture" speed_x="0.75" speed_y="0.0"/>
<cloud id="low" texture="globallighting/cloudtile_stormy.texture" speed_x="0.004" speed_y="0.75"/>
Event ID, used to change weather patterns during battle
duration="90" transition="30" This is in seconds.
fog min="-50" max="2000", min can be 0, max unkown, this seems to be distance in visibility
bloom red="255" green="255" blue="255" select="15" intensity="150"
Colors are obvious, have no idea what select and intensity do, I havent played with them yet.
lighting data basically effects how much daylight is in the battle map, how bright things are. Be warned, some lighting types dont work right with some skydome_meshes, I loaded one up earlier and everything except the sky was completely red, ground, units, weapons, mounts, everything.
phase1, phase 2, etc. I have taken it up to 8 phases on a single weather pattern.





Reply With Quote













