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)
(time of day note)
Line 2: Line 2:
  
 
'''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]]
 +
 +
==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]], how they relate to the possible weather selection criteria in [[Custom_Battles#Advanced_Conditions|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.
  
 
==Relationship to Climates==
 
==Relationship to Climates==
Line 24: Line 33:
 
note that the daytypes are also referenced in the next_day line, so you would need to change those as well to suit.
 
note that the daytypes are also referenced in the next_day line, so you would need to change those as well to suit.
  
==Weather Conditions==
+
==Time of Day==
The possible weather conditions are described at the top of the file, for example:
+
The time is set at the beginning of every event on a 24hour clock eg:
weatherevent calm
+
event
  cloud light 1 1 1
+
  time 7
precipitate none dry
+
  wind calm
+
  sun_colour 0.6 0.5 0.45
fog clear 0.0000005
+
where 7 represents 7am in the morning.  The times events can be set at are variable, so you can have more or less eventsNote 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 betweenFor 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.  
these events are also referenced in [[descr_sounds_enviro.txt]], how they relate to the possible weather selection criteria in [[Custom_Battles#Advanced_Conditions|custom battles]] is not clear yetThe first word of the listing after precipitate appears to reference the sound in descr_sounds_enviro.txt for instance Rain, dust, snow or hailThese can be succeeded with torrential, light or heavy, what that does is not clear yet.
+
 
 
   
 
   
 
==Lighting Effects==
 
==Lighting Effects==

Revision as of 13:52, 2 August 2007

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, differences in M2TW need checking

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

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, 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.

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.

Mods

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