Dnc.db: Difference between revisions

From wowdev
Jump to navigation Jump to search
(New page: he 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 Header Offset Type Descrip...)
 
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
he 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
The World\[[Dnc.db]] file in common.mpq specifies the day-night cycle. Fortunately, the folks at Blizzard were kind enough to label every data field in this file! It is most likely not of any use anymore. It hasn't changed in any way from 1.0 or even 0.*. The lights and therefore skies are defined in [[DBC|.DBCs]].


Header
This looked like info for outdoor lighting with respect to the day-night cycle. The colors for the different light types are self-explanatory. The XYZ coordinates specify a directional light source.
Offset Type Description
0x00 uint32 nFields - Number of fields
0x04 uint32 Number of fields (again)


==Header==
'''Offset Type Description'''
''0x00'' uint32 nFields - Number of fields
''0x04'' uint32  nColumns - Number of columns
==Field Descriptions==
Next, nFields * 8 bytes define the rest of the file structure:
Next, nFields * 8 bytes define the rest of the file structure:
Offset Type Description
'''Offset Type Description'''
0x00 uint32 Always 0x53
''0x00'' uint32 Always 0x53, 'S' for string
0x04 uint32 Offset to field name (which is zero-terminated)
''0x04'' uint32 Offset to [[Dnc.db#Field_Names|field name]] (which is zero-terminated)
[edit]
Data


==Data==
After the header come the actual records, each being nFields * 8 bytes in size. Every field value has this structure:
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:
The file contains 24 records, one for each whole hour (Hour = 0 to 23, Minute = 0).
'''Offset Type Description'''
''0x00'' uint32 Always 0x46, 'F' for float
''0x04'' float Field value


  1. Hour
==Field Names==
  2. Minute
*Hour
  3. DayIntensity
*Minute
  4. DayR
*DayIntensity
  5. DayG
*DayR
  6. DayB
*DayG
  7. DayX
*DayB
  8. DayY
*DayX
  9. DayZ
*DayY
  10. NightIntensity
*DayZ
  11. NightR
*NightIntensity
  12. NightG
*NightR
  13. NightB
*NightG
  14. NightX
*NightB
  15. NightY
*NightX
  16. NightZ
*NightY
  17. AmbientIntensity
*NightZ
  18. AmbientR
*AmbientIntensity
  19. AmbientG
*AmbientR
  20. AmbientB
*AmbientG
  21. FogDepth
*AmbientB
  22. FogIntensity
*FogDepth
  23. FogR
*FogIntensity
  24. FogG
*FogR
  25. FogB  
*FogG
*FogB


The file contains 24 records, one for each whole hour (Hour = 0 to 23, Minute = 0)
[[Category:3.0.2.8905]]
 
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.

Latest revision as of 14:12, 5 November 2017

The World\Dnc.db file in common.mpq specifies the day-night cycle. Fortunately, the folks at Blizzard were kind enough to label every data field in this file! It is most likely not of any use anymore. It hasn't changed in any way from 1.0 or even 0.*. The lights and therefore skies are defined in .DBCs.

This looked like info for outdoor lighting with respect to the day-night cycle. The colors for the different light types are self-explanatory. The XYZ coordinates specify a directional light source.

Header

Offset	Type 	 	Description
0x00 	uint32 	 	nFields - Number of fields
0x04 	uint32  	nColumns - Number of columns

Field Descriptions

Next, nFields * 8 bytes define the rest of the file structure:

Offset	Type 	 	Description
0x00 	uint32 	 	Always 0x53, 'S' for string
0x04 	uint32 	 	Offset to field name (which is zero-terminated)

Data

After the header come the actual records, each being nFields * 8 bytes in size. Every field value has this structure:

The file contains 24 records, one for each whole hour (Hour = 0 to 23, Minute = 0).

Offset	Type 	 	Description
0x00 	uint32 	 	Always 0x46, 'F' for float
0x04 	float 	 	Field value

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