Difference between revisions of "Time cycle"
(added images section) |
|||
Line 94: | Line 94: | ||
'''Timecycp''' is an abbreviation 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. | '''Timecycp''' is an abbreviation 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. | ||
+ | |||
+ | == Images == | ||
+ | {| | ||
+ | ! GTA III | ||
+ | ! Vice City | ||
+ | ! San Andreas | ||
+ | ! Liberty City Stories | ||
+ | |- | ||
+ | | valign="top" | | ||
+ | {|{{Prettytable}} | ||
+ | | Sunny | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/3Weather0.png/127367407/3Weather0.png Image] | ||
+ | |- | ||
+ | | Cloudy | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/3Weather1.png/127367409/3Weather1.png Image] | ||
+ | |- | ||
+ | | Rainy | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/3Weather2.png/127367411/3Weather2.png Image] | ||
+ | |- | ||
+ | | Foggy | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/3Weather3.png/127367413/3Weather3.png Image] | ||
+ | |} | ||
+ | | valign="top" | | ||
+ | {|{{Prettytable}} | ||
+ | | Sunny | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/Weather0.png/123233967/Weather0.png Image] | ||
+ | |- | ||
+ | | Cloudy | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/Weather1.png/123233969/Weather1.png Image] | ||
+ | |- | ||
+ | | Rainy | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/Weather2.png/123233971/Weather2.png Image] | ||
+ | |- | ||
+ | | Foggy | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/Weather3.png/123233973/Weather3.png Image] | ||
+ | |- | ||
+ | | Extra Sunny | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/Weather4.png/123233975/Weather4.png Image] | ||
+ | |- | ||
+ | | Rainy (hurricane) | ||
+ | | [http://spaceeinstein.wikispaces.com/file/view/Weather5.png/123233979/Weather5.png Image] | ||
+ | |} | ||
+ | | valign="top" | | ||
+ | * [http://hotmist.ddo.jp/id/weather.html Ryosuke's website] | ||
+ | | valign="top" | | ||
+ | {|{{Prettytable}} | ||
+ | | Sunny | ||
+ | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCS0.jpg Image] | ||
+ | |- | ||
+ | | Cloudy | ||
+ | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCS1.jpg Image] | ||
+ | |- | ||
+ | | Rainy | ||
+ | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCS2.jpg Image] | ||
+ | |- | ||
+ | | Foggy | ||
+ | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCS3.jpg Image] | ||
+ | |- | ||
+ | | Extra Sunny | ||
+ | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCS4.jpg Image] | ||
+ | |- | ||
+ | | Hurricane | ||
+ | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCS5.jpg Image] | ||
+ | |- | ||
+ | | Extra Colors | ||
+ | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCS6.jpg Image] | ||
+ | |- | ||
+ | | Snow | ||
+ | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCS7.jpg Image] | ||
+ | |} | ||
+ | |} | ||
== Tools == | == Tools == |
Revision as of 18:38, 29 July 2011
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 lighting for different hardcoded weather situations for each time of day. The settings themselves 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 23 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 separated 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 dynamically created objects like pedestrians 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 an abbreviation 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.
Images
GTA III | Vice City | San Andreas | Liberty City Stories | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
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 |