Difference between revisions of "BGLOB.DAT"

From UFOpaedia
Jump to navigation Jump to search
Line 6: Line 6:
  
 
The initial values held in this file seem to be determined by [[MISSION.DAT|Mission.Dat[74-76]]].
 
The initial values held in this file seem to be determined by [[MISSION.DAT|Mission.Dat[74-76]]].
 +
 
:Offsets 74-75 looks like the 'local time' of the mission. It is translated into brightness by a 24 entries array of words (2 bytes) located at offset 0x6C99C. [[User:Seb76|Seb76]] 05:39, 21 June 2008 (PDT)
 
:Offsets 74-75 looks like the 'local time' of the mission. It is translated into brightness by a 24 entries array of words (2 bytes) located at offset 0x6C99C. [[User:Seb76|Seb76]] 05:39, 21 June 2008 (PDT)
 +
 +
So in decimal, the values are:
 +
 +
16,16,16,16,16,16,16,16,16,16,12, 8, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
 +
 +
Well, yeah, those seem like the sort of values you'd expect to see in BGLOB. However, the highest value I've seen stored at MISSION[74-75] is 15... I'm not sure how you could map that range to the 24 values here. Also it's not really a "night to day to night" cycle, it just goes from dark to light.
 +
 +
Any chance MISSION[74-75] isn't the time, but a value derived from the time? That makes a little more sense to me.
 +
 +
Note that MISSION[76] also as a purpose here, but I didn't tinker too much with it when I first found out about it (who knows how long ago)... I think I got the impression that the type of mission would affect the BGLOB lighting scheme?
 +
 +
- [[User:Bomb Bloke|Bomb Bloke]] 06:03, 21 June 2008 (PDT)
  
 
==See Also==
 
==See Also==

Revision as of 13:03, 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].

Offsets 74-75 looks like the 'local time' of the mission. It is translated into brightness by a 24 entries array of words (2 bytes) located at offset 0x6C99C. Seb76 05:39, 21 June 2008 (PDT)

So in decimal, the values are:

16,16,16,16,16,16,16,16,16,16,12, 8, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

Well, yeah, those seem like the sort of values you'd expect to see in BGLOB. However, the highest value I've seen stored at MISSION[74-75] is 15... I'm not sure how you could map that range to the 24 values here. Also it's not really a "night to day to night" cycle, it just goes from dark to light.

Any chance MISSION[74-75] isn't the time, but a value derived from the time? That makes a little more sense to me.

Note that MISSION[76] also as a purpose here, but I didn't tinker too much with it when I first found out about it (who knows how long ago)... I think I got the impression that the type of mission would affect the BGLOB lighting scheme?

- Bomb Bloke 06:03, 21 June 2008 (PDT)

See Also