Difference between revisions of "BGLOB.DAT"

From UFOpaedia
Jump to navigation Jump to search
(→‎See Also: added category)
(Relation to Mission.Dat)
Line 4: Line 4:
  
 
First byte indicates overall level of ambient lighting. On night missions it is 10h, on day missions 00h, dusk and dawn uses values in the middle. Second byte is ambient lighting of shadowed areas (below and inside Skyranger, inside UFOs), usually it is first byte+4. On the end of turn [[TERMP.DAT]] is recalculated using appropriate value from BGLOB.DAT as maximum. What determines which value of two is used is not known yet.
 
First byte indicates overall level of ambient lighting. On night missions it is 10h, on day missions 00h, dusk and dawn uses values in the middle. Second byte is ambient lighting of shadowed areas (below and inside Skyranger, inside UFOs), usually it is first byte+4. On the end of turn [[TERMP.DAT]] is recalculated using appropriate value from BGLOB.DAT as maximum. What determines which value of two is used is not known yet.
 +
 +
The initial values held in this file seem to be determined by [[MISSION.DAT|Mission.Dat[74-76]]].
  
 
==See Also==
 
==See Also==

Revision as of 11:21, 21 June 2008

This file is only used by tactical saves.

Always two bytes, describes ambient light on map.

First byte indicates overall level of ambient lighting. On night missions it is 10h, on day missions 00h, dusk and dawn uses values in the middle. Second byte is ambient lighting of shadowed areas (below and inside Skyranger, inside UFOs), usually it is first byte+4. On the end of turn TERMP.DAT is recalculated using appropriate value from BGLOB.DAT as maximum. What determines which value of two is used is not known yet.

The initial values held in this file seem to be determined by Mission.Dat[74-76].

See Also