Difference between revisions of "TERMP.DAT"

From UFOpaedia
Jump to navigation Jump to search
m
m
 
(7 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
Length of file is map size (overall number of tiles) + some 4 bytes at the end.
 
Length of file is map size (overall number of tiles) + some 4 bytes at the end.
  
File contains data about light from fixed sources (map objects, flares) and ambient light. It is recalculated on the end of turn, and when a flare is thrown (not dropped/picked up). Ambient light levels are stored in [[BGLOB.DAT]]. Together with [[SOURCEMP.DAT]] it is full info about current lighting of the map. Actual lighting of tile is lower value from both files. Exact meaning of values is a number that pallette is shifted towards darker colours.
+
File contains data about light from non-moving sources (map objects, flares, fire) and ambient light. It is recalculated when:
 +
* A flare is thrown (not dropped/picked up)
 +
* HE ammo explodes
 +
* Explosive terrain goes off (only HE, not smoke)
 +
* A fire starts
 +
* Player ends turn
 +
 
 +
Ambient light levels used to (re)calculate this file are stored in [[BGLOB.DAT]]. A value of 0 is perfect light, while 15 is perfect dark. Note that soldiers can only see in tiles with values of no more then 9, while aliens ignore all lighting.
 +
 
 +
Light sources produce values of 0, and each tile away gets darker by one point (in a circular pattern) up to the ambient darkness value (dependent on the time of day, or in some cases, terrain - alien bases are always dark).
 +
 
 +
Together with [[SOURCEMP.DAT]] it is full info about current lighting of the map. Actual lighting of tile is lower value from both files. Exact meaning of values is a number that palette is shifted towards darker colours, though doors will never be shifted by more then three or [[SCANG.DAT]] images by more then seven.
  
 
==See Also==
 
==See Also==
 +
* [[Night Missions]]
 
* [[Saved Game Files]]
 
* [[Saved Game Files]]
 
* [[Saved_Game_Files#Battlescape_Files|Battlescape Files]]
 
* [[Saved_Game_Files#Battlescape_Files|Battlescape Files]]
 +
* [[SOURCEMP.DAT]]
 +
[[Category:Game Files]]
 +
[[Category:Enemy Unknown/UFO Defense]]

Latest revision as of 04:38, 23 July 2013

This file is only used by tactical saves.

Length of file is map size (overall number of tiles) + some 4 bytes at the end.

File contains data about light from non-moving sources (map objects, flares, fire) and ambient light. It is recalculated when:

  • A flare is thrown (not dropped/picked up)
  • HE ammo explodes
  • Explosive terrain goes off (only HE, not smoke)
  • A fire starts
  • Player ends turn

Ambient light levels used to (re)calculate this file are stored in BGLOB.DAT. A value of 0 is perfect light, while 15 is perfect dark. Note that soldiers can only see in tiles with values of no more then 9, while aliens ignore all lighting.

Light sources produce values of 0, and each tile away gets darker by one point (in a circular pattern) up to the ambient darkness value (dependent on the time of day, or in some cases, terrain - alien bases are always dark).

Together with SOURCEMP.DAT it is full info about current lighting of the map. Actual lighting of tile is lower value from both files. Exact meaning of values is a number that palette is shifted towards darker colours, though doors will never be shifted by more then three or SCANG.DAT images by more then seven.

See Also