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.

Descr daytypes.txt

From TWC Wiki
Revision as of 08:47, 30 July 2007 by Makanyane (talk | contribs) (noted as RTW only so far)
Jump to navigationJump to search

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

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.

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.

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_pallete.txt, descr_skydome.txt and possibly descr_battle_map_lighting_and_fog_control.txt

Mods

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

YOU can help us improve this Wiki! ~ Look for ways to help and editing advice. ~ If you need further advice, please post here.