Time cycle
Article issues | |||
---|---|---|---|
|
The timecyc.dat data file contains the most important settings about the game's appearance. Basically it stores important information like colors and lightning for different hardcoded weather situations for almost each time of day. The settings themselfes are constant and build a cycle around the whole day. So the exact name of the setting is time cycle.
In the Vice City the timecyc.dat
file additionally stores settings for different interior appearances. There are 24 of those extra settings in one extra section (internally called "EXTRACOLOURS"). Each game hour represents one constant setting.
File format
A comment in the timecyc.dat
file is preceded by a series of slashes ("//"). The game's parser simply ignores comments so that the number of uncommented lines must be a multiple of 24 for GTA III and Vice City (representing one for each ingame hour) and a multiple of 8 for San Andreas (representing 00am, 05am, 06am, 07am, 00pm, 07pm, 08pm and 10pm in the order they appear). Each value of one entry gets interpolated with the previous and the next setting of the current ingame weather.
Data types
The file uses the following different data types directly or indirectly on an abstract level inside structures:
- INT8/UINT8 - signed/unsigned 8 bit integer (1 byte)
- INT32/UINT32 - signed/unsigned 32 bit integer (4 byte)
- FLOAT - single precision floating point number (4 byte)
- TColor - UINT8[3] representing the red, green and blue level (in the order they appear) of a color. (3 byte)
File hierarchy
As mentioned above each setting consists out of a constant number of entries seperated by whitespaces. The following table lists the entries and their descriptions in the order they appear:
Name | Data type | Description | |||
---|---|---|---|---|---|
Static ambience color | TColor | The color of ambient light on map objects (see IPL). | |||
Dynamic ambience color | TColor | The color of ambient light on dynamicly created objects like pedestriants and vehicles. | |||
Static ambience blur color | TColor | Blurrig color value for static ambience color. | |||
Dynamic ambience blur color | TColor | Blurrig color value for dynamic ambience color. | |||
Direct light color | TColor | The color of direct light on dynamicly created objects like pedestriants and vehicles. | |||
Sky top color | TColor | The color of the top of the skysphere. | |||
Sky bottom color | TColor | The color of the bottom of the skysphere. | |||
Sun core color | TColor | The color of the core sprite of the sun. | |||
Sun corona color | TColor | The color of the corona sprite of the sun. | |||
Sun core size | FLOAT | The size of the core sprite of the sun. | |||
Sun corona size | FLOAT | The size of the corona sprite of the sun. | |||
Sprite brightness | FLOAT | The the brightness of the above mentioned sprites. | |||
Shadow intensity | INT32 | The intensity of the shadows of objects like pedestriants, vehicles or poles. | |||
Light shading value | INT32 | Value used for the shading algorithm on pedestirants and vehicles [?]. | |||
Pole shading value | INT32 | Shading value for map objects with flag 32768. | |||
Far clipping offset | FLOAT | The distance of the far clipping plane from the camera. | |||
Fog start offset | FLOAT | The range of the distance fog from the camera. | |||
Light on ground | FLOAT | Amount of light on the ground of the sea [?]. | |||
Lower clouds color | TColor | Color of the lower clounds. | |||
Upper clouds top color | TColor | Color of the top of the upper clouds. | |||
Upper clouds bottom color | TColor | Color of the bottom of the upper clouds. | |||
Blur color | TColor | The color of trails. | |||
Water color | TColor | Color of the water vertices. | |||
Water alpha level | UINT8 | Alpha level for water vertices. | |||
Color correction 1 alpha | UINT8 | Alpha level for first color correction value. | |||
Color correction 1 | TColor | First color correction value. | |||
Color correction 2 alpha | UINT8 | Alpha level for second color correction value. | |||
Color correction 2 | TColor | Second color correction value. | |||
Lower clouds alpha level | UINT8 | Alpha level for lower clouds. | |||
Upper clouds alpha level | UINT8 | Alpha level for upper clouds. | |||
Unused clouds alpha level | UINT8 | Usually 0. |
Timecycp.dat
Timecycp is abbrevitation for time cycle processed which corresponds the PS2 format of this file. Similar to the water1.dat file it is a leftover from the previous playstation version of San Andreas. It is also only available for this game and can be deleted. The only difference to the actual file is the encoding method. However it's content is the same.
Tools
External links
- GTAForums: Modding timecyc.dat for Vice City
Grand Theft Auto IV | |
---|---|
File Formats | .dat • .gxt • .ide • .img • .ipl • .nod • .sco • .rpf • .rrr • .wad • .wbd/.wbn • .wdd • .wdr • .wft • .whm • .wpl • .wtd |
Documentation | Audio • Bink Video • Cryptography • Cutscenes • GXT Text • Image listing • Keycodes • Map Listing • Native functions • Paths • Radar Blips • Radio Stations • Saves • Scenarios • VTable • Weapons |
Tools | ASI Loader • ENBSeries • G-Texture • GIMS IV • Ingame WPL Editor • IV Needle • OpenIV • SparkIV • XLiveLess • WPL Manager • X Mod Installer Alice • C++ Script Hook • .NET Script Hook • Scocl |
Tutorials | Importing Textures with OpenIV • Importing Textures with SparkIV |
Modifications | GTA Connected • Gostown IV • Four Multiplayer • IV Multiplayer • CitizenMP:IV Reloaded |
Useful links | Community portal • Discussion forums • Modding forums • Mods on GTAGarage.com |