Difference between revisions of "Time cycle"
(→Images) |
|||
Line 100: | Line 100: | ||
! San Andreas | ! San Andreas | ||
! Liberty City Stories | ! Liberty City Stories | ||
+ | ! Vice City Stories | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
Line 162: | Line 163: | ||
| Snow | | Snow | ||
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCWeather7.jpg Image] | | [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/LCWeather7.jpg Image] | ||
+ | |} | ||
+ | | valign="top" | | ||
+ | {|{{Prettytable}} | ||
+ | | Sunny | ||
+ | | [http://thumbnails103.imagebam.com/21232/731498212310661.gif Image] | ||
+ | |- | ||
+ | | Cloudy | ||
+ | | [http://thumbnails102.imagebam.com/21232/18a222212310667.gif Image] | ||
+ | |- | ||
+ | | Rainy | ||
+ | | [http://thumbnails104.imagebam.com/21232/ae0f70212310672.gif Image] | ||
+ | |- | ||
+ | | Foggy | ||
+ | | [http://thumbnails101.imagebam.com/21232/524564212310675.gif Image] | ||
+ | |- | ||
+ | | Extra Sunny | ||
+ | | [http://thumbnails103.imagebam.com/21232/134ee0212310679.gif Image] | ||
+ | |- | ||
+ | | Hurricane | ||
+ | | [http://thumbnails103.imagebam.com/21232/32c9bd212310684.gif Image] | ||
+ | |- | ||
+ | | Extra Colors | ||
+ | | [http://thumbnails103.imagebam.com/21232/9a20de212310693.gif Image] | ||
+ | |- | ||
+ | | Extra Sunny #2 | ||
+ | | [http://thumbnails103.imagebam.com/21232/2b2596212310698.gif Image] | ||
|} | |} | ||
|} | |} |
Revision as of 10:18, 26 September 2012
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 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. Present in the timecyc.dat of GTA SA, but not loaded and unused by the game. | |||
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. | |||
Water fading to white, amount of white light on water | UINT8 | Usually 0. |
Timecycp.dat
Timecycp is a version of timecyc.dat that came alongside the regular time cycle configuration file. Similar to the water1.dat file it is a leftover from the original PlayStation 2 version of San Andreas. The file isn't used by the game and can safely be deleted. The only difference to the actual file is the encoding method. However it's content is the same, apart from an additional character lighting setting that was absent on the PC version. Replacing the timecyc.dat with timecycp.dat by renaming the files, as stated above, will result in improved ped lighting. Other than that the game's ambient lighting and sky colours still remain the same.
Images
GTA III | Vice City | San Andreas | Liberty City Stories | Vice 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 |