Dnc.db |
From WoWDev
[edit]
dnc.db
The World\dnc.db file in misc.mpq specifies the day-night cycle. Fortunately, the folks at Blizzard were kind enough to label every data field in this file! :D
[edit]
Header
| Offset | Type | Description |
|---|---|---|
| 0x00 | uint32 | nFields - Number of fields |
| 0x04 | uint32 | Number of fields (again) |
Next, nFields * 8 bytes define the rest of the file structure:
| Offset | Type | Description |
|---|---|---|
| 0x00 | uint32 | Always 0x53 |
| 0x04 | uint32 | Offset to field name (which is zero-terminated) |
[edit]
Data
After the header come the actual records, each being nFields * 8 bytes in size. Every field value has this structure:
| Offset | Type | Description |
|---|---|---|
| 0x00 | uint32 | Always 0x46 |
| 0x04 | float | Field value |
Here is the list of field names:
- Hour
- Minute
- DayIntensity
- DayR
- DayG
- DayB
- DayX
- DayY
- DayZ
- NightIntensity
- NightR
- NightG
- NightB
- NightX
- NightY
- NightZ
- AmbientIntensity
- AmbientR
- AmbientG
- AmbientB
- FogDepth
- FogIntensity
- FogR
- FogG
- FogB
The file contains 24 records, one for each whole hour (Hour = 0 to 23, Minute = 0)
This looks like info for outdoor lighting with respect to the day-night cycle. The colors for the differnt light types are self-explanatory. The XYZ coordinates specify a directional light source.

