Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "Descr daytypes.txt"

From TWC Wiki
Jump to navigationJump to search
(categories)
(logo + note updated)
 
Line 1: Line 1:
{{DISPLAYTITLE:descr_daytypes.txt}}''WIP Article - please help add to this if you know more about it - is currently being written as effects are investigated - current content refers to RTW/BI only, although a similar file is present in M2TW it does not appear to be read at all and contents can be ignored entirely.''
+
{{DISPLAYTITLE:descr_daytypes.txt}}
 +
{{RTW Modding Logo}}
 +
'''Descr_daytypes.txt''' controls the weather and lighting conditions applied to the battle maps for each of the various climates.  Which climate the battle takes place in is determined by the originating position on the campaign map and the climate colour used for that location on [[map_climates.tga]].  Custom battles occur at pre-set locations on the campaign map as defined in [[custom_locations.txt]]
  
'''Descr_daytypes.txt''' controls the weather and lighting conditions applied to the battle maps for each of the various climates.  Which climate the battle takes place in is determined by the originating position on the campaign map and the climate colour used for that location on [[map_climates.tga]].  Custom battles occur at pre-set locations on the campaign map as defined in [[custom_locations.txt]]
+
''Note: Although a similar file is present in M2TW it is not used by the game and contents can be ignored entirely.''
  
 
==Weather Conditions==
 
==Weather Conditions==

Latest revision as of 01:27, 19 May 2020

RTW Modding Index


Descr_daytypes.txt controls the weather and lighting conditions applied to the battle maps for each of the various climates. Which climate the battle takes place in is determined by the originating position on the campaign map and the climate colour used for that location on map_climates.tga. Custom battles occur at pre-set locations on the campaign map as defined in custom_locations.txt

Note: Although a similar file is present in M2TW it is not used by the game and contents can be ignored entirely.

Weather Conditions

The possible weather conditions are described at the top of the file, for example:

weatherevent calm
		cloud			light			1	1	1	
		precipitate		none dry
		wind			calm
	 	fog				clear		0.0000005

these events are also referenced in descr_sounds_enviro.txt in RTW, how they relate to the possible weather selection criteria in custom battles is not clear yet. The first word of the listing after precipitate appears to reference the sound in descr_sounds_enviro.txt for instance Rain, dust, snow or hail. These can be succeeded with torrential, light or heavy, what that does is not clear yet.

The cloud colours listed in the weatherevent merge with those given for the time of day, so an extreme colour 1 0.1 0.1 which is nearly pure red, would merely tint a dark cloud set by the daytype below, but would turn an otherwise white cloud set by the daytype bright red.

Relationship to Climates

A section start from the vanilla file looks like this:

daytype	temperate_summer 

	climates		temperate_grassland_fertile temperate_grassland_infertile 
  temperate_forest_open temperate_forest_deep swamp alpine
	seasons			summer 
	weatherevents	calm 0.25, hazy 0.4, light_fog 0.15, rain_summer_shower 0.13,.... 
	next_day		temperate_summer 1.0

In order to split up the climates new daytypes may be added so you could have:

daytype	temperate_summer 
 
 	climates		temperate_grassland_fertile temperate_grassland_infertile 
 	seasons			summer 

and

daytype	freds_forest_temperate_summer 
 
	climates		temperate_forest_open temperate_forest_deep swamp alpine
	seasons			summer 

note that the daytypes are also referenced in the next_day line, so you would need to change those as well to suit.

Time of Day

The time is set at the beginning of every event on a 24hour clock eg:

	event
		time			7

		sun_colour		0.6	0.5	0.45

where 7 represents 7am in the morning. The times events can be set at are variable, so you can have more or less events. Note that the colours listed for say 7am do not continue to be used until the next event but work on a transition between that event and the next giving variable colours in between. For example you could just have an event at hour 8 with red lighting and an event at hour 12 with blue lighting, then a battle at hour 10 would get mauve lighting as the two settings merged.


Lighting Effects

It is quite easy to get very strange effects when editing this file, see screenshot of using the night settings throughout daytime:
experiment with night daytype settings used in midday custom battle
Lighting effects appear to be combined with some overall settings for the time of day described in descr_skydome.txt and descr_battle_map_lighting_and_fog_control.txt.

The following image is from work in progress during testing for new sky colours for Lycan Rising:
no it isn't meant to look like this in the end
Image above shows the skydome set to maximum red, the sun_colour in descr_daytypes set to maximum blue and the sunlight in descr_daytypes set to maximum green.

The ambient_colour_increase_proportion sections in descr_battle_map_lighting_and_fog_control.txt also have an influence on the overall effect:
Ambient increase.jpg
The above image is taken with the same settings as the screen shot above it except for changes to descr_battle_map_lighting_and_fog_control.txt, raising ambient_blue_increase_proportion to 0.9 for general lighting and lowering others, and raising ambient_red_increase_proportion to 0.9 similarly for unit lighting. The effect on the ground lighting is very pronounced with the green of the sunlight removed almost entirely from shadow areas, the effect on unit lighting is less marked but appears to increase the red in shadow areas slightly.

Note that descr_pallete.txt which looks as though it should effect light colours appears to be completely redundant in RTW1.5 and BI1.6

Colour Notation

All colours in this file are listed in format like:

0.2	0.2	0.1

Where the first number is the amount of red, the second the amount of green and the third the amount of blue. The maximum level of each colour is achieved by using the value 1 . The game will accept higher values but they do not result in a brighter colour and in some instances can create odd effects.

Next Day

Each section has a "next day" lookup, with percentage chances of what the next day will be if you choose to wait before going in to battle (eg summer, spring, autumn etc). The lighting effects do not switch entirely to the next day's selection when you opt to wait, see below:
Next day lighting.jpg

setting the different days sunlight colour to wildly different settings shows how this takes effect, the sunlight colour from the second day does not apply to all the ground level items as usual - instead it only effects the buildings and units!

Mods

The best know modification that deals with changes to descr_daytypes.txt is SkyMod by HorseArcher