Skip to content
shlainn edited this page Sep 6, 2011 · 2 revisions

Introduction

dnc.db specifies the day-night cycle. It hasn't changed in any way from 1.0 or even 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.

Header

8 bytes at the beginning of the file specify the number of rows (including head row) and columns

00h    uint32 	Number of Rows
04h    uint32  	Number of Columns

Data

Each data field has exactly 8 bytes.

00h    uint32 	Field Type (0x53=S for String, 0x46=F for Float)
04h    uint32  	Field Value

String value types are offsets into a Block of Zero-Terminated strings at the end of the file.

File contents

Extracted and Formatted for a better overview.

Hour Minute DayIntensity DayR DayG DayB DayX DayY DayZ
0.0 0.0 0.0 0.0 0.0 0.0 0.7 0.0 1.0
1.0 0.0 0.0 0.0 0.0 0.0 0.7 -0.3 1.0
2.0 0.0 0.0 0.0 0.0 0.0 0.7 -0.5 0.9
3.0 0.0 0.0 0.0 0.0 0.0 0.7 -0.7 0.7
4.0 0.0 0.0 0.0 0.0 0.0 0.7 -0.9 0.5
5.0 0.0 0.0 0.0 0.0 0.0 0.7 -1.0 0.3
6.0 0.0 0.8 0.5 0.5 0.5 0.7 -1.0 0.0
7.0 0.0 0.8 0.5 0.5 0.5 0.7 -1.0 -0.3
8.0 0.0 0.8 0.6 0.6 0.6 0.7 -0.9 -0.5
9.0 0.0 0.8 0.6 0.6 0.6 0.7 -0.7 -0.7
10.0 0.0 0.8 0.7 0.7 0.7 0.7 -0.5 -0.9
11.0 0.0 0.8 0.7 0.7 0.7 0.7 -0.3 -1.0
12.0 0.0 0.8 0.7 0.7 0.7 0.7 0.0 -1.0
13.0 0.0 0.8 0.7 0.7 0.7 0.7 0.3 -1.0
14.0 0.0 0.8 0.7 0.7 0.7 0.7 0.5 -0.9
15.0 0.0 0.8 0.7 0.7 0.7 0.7 0.7 -0.7
16.0 0.0 0.8 0.8 0.7 0.7 0.7 0.9 -0.5
17.0 0.0 0.8 0.8 0.5 0.5 0.7 1.0 -0.3
18.0 0.0 0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