In-game timecyc editor
DownloadDisclaimer: GTAG cannot be held responsible for any user submitted files.
|Title||In-game timecyc editor|
|Summary||Edit weather appearance directly in game|
|Rating||5 (1 votes)|
|Submitted||27 Dec 2011|
|Updated||28 Jan 2012|
In-game Timecyc Editor 1.5 by fastman92
This tool, a CLEO script lets you edit timecyc.dat (weather colors, properties) in game using a simple and intuitive UI.
Changes take effect immediately.
There are several other timecyc editors, but they they do not allow changes to be tested in real time and require the game to be restarted.
Or at least effects are not clearly visible until the game is maximized and timecyc.dat is reloaded again.
To select colors an HSV pallete with RGB & HSV spinners has been implemented.
Other spinners allow easy editing of other properties.
After editing the save button can be used to generate a new imecyc.dat file.
You`re encouraged create your own timecyc.dat and share it up to GTA community.
What`s more - the project is released under open source license terms.
Fully compatible with GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE & GTA: San Andreas v1.01 [EURO] No-CD/Fixed EXE
Fully compatible with any screen (4:3, 16:9, 16:10...)
- - - - - - - - - - - - - - - - -
Video that explains how to install In-game timecyc editor to GTA San Andreas.
Make sure you are using one of the following gta_sa.exe versions:
1. GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE:
EXE size: 14 383 616 bytes
2. GTA: San Andreas v1.01 [EURO] No-CD/Fixed EXE:
EXE size: 15 806 464 bytes
In-game Timecyc Editor is fully compatible with both of them, 1.0 US and 1.01 Euro No-CD shortly.
// Script requires CLEO Library and FileSystemOperations.cleo, IniFiles.cleo, IntOperations.cleo plugins
Remember that you should have administrator privileges to GTA San Andreas directory, otherwise writing new timecyc.dat won`t work.
If you haven`t CLEO Library then download it from here: http://cleo.sannybuilder
- Copy all files from put_to_root_of_GTASA to GTA San Andreas directory.
- Eventually you can open TimecycEditor.ini to change some options.
--- Most important is WriteIlluminationInTimecycDat, if it`s disabled timecyc.dat will be generated with no illumination values
--- It`s configurable because timecyc.dat with illumination values won`t be readable using other third party editors such as TimecycSA and people would complain about this.
- For boolean settings values (1, true, yes) are equivalent and will set to 1. Reading is not case-sensitive.
Any other value than the following will cause setting to be false.
***** Usage (after you installed mod)
â¢ Run the game.
â¢ Go to the place where you want to see the changes.
â¢ Enter "TIMECYC" using keyboard.
â¢ Simple UI will appear
â¢ Rotate camera using key defined in configuration .ini ( \ slash by default)
â¢ Enter "TIMECYC" again to quit timecyc editor
â¢ Time state spinner - press to freeze/unfreeze time.
â¢ Weather spinner - changes the weather (0 to 22)
â¢ Cycle spinner - changes the time to start of next/previous cycle. Cycles depend on time. (1 to 8)
â¢ Hour spinner - increment/decrement current hour (0 to 23)
â¢ Minute spinner - increment/decrement current minute (0 to 59)
â¢ Save button - generate new timecyc.dat, do not forget to click after the changes seem to be good.
If you quit the game and forget to save the changes will be lost and you need to start work again.
â¢ Reload button - load settings from timecyc.dat, use when something edited isn`t good and the one in timecyc.dat is better.
It calls internal SA method called CTimeCycle::Initialise
â¢ HSV Pallete - allows easy selection of color, it came from Paint.NET
â¢â¢ Hue - depends on angle of needle in relation to center of pallete -90 degrees. Its value varies from 0 to 360,
what we derive from the Babylonian system.
â¢â¢ Saturation - depends on the distance between center of pallete and needle
â¢â¢ Value - when new color is selected, value is set to 100. It can be later decreased on its proper regulator
â¢ Pallete regulators - using these any color can be selected. Especially useful regulator is color value (brightness)
â¢â¢ RGB, Red, Green, Blue
â¢â¢ HSV, Hue, Saturation, Value
â¢ In fact (7, 8, 9: Dir), Direct light is unused in GTA SA, that is answer why it`s missing in timecyc editor.
There is no Dir in memory.
Instead "255 255 255" is saved to generated file.
â¢ Building - any static object, office, home even grass or tree.
â¢ Format of explanation
(Number of parameter index starting from 1: R* short name) - My own name + description
â¢ Explanation of timecycle properties:
â¢â¢ (1, 2, 3: Amb) - Static ambience color, the color of ambient light used to colorize static map IPL objects - buildings, NOT peds & vehicles.
Its value should be low.
â¢â¢ (4, 5, 6: Amb_Obj) - Dynamic ambience color, the color of ambient light used to colorize peds & vehicles, NOT buildings
Its value should be low.
â¢â¢ (7, 8, 9: Dir) - unused in GTA SA, color of direct light. Always 255 255 255 in generated file.
â¢â¢ (10, 11, 12: Sky top) - Sky top color, The color of the top of the skysphere.
â¢â¢ (13, 14, 15: Sky bot) - Sky bottom color, The color of the bottom of the skysphere.
â¢â¢ (16, 17, 18: SunCore) - Sun core color, The color of the core sprite of the sun.
â¢â¢ (19, 20, 21: SunCorona) - Sun corona color, The color of the corona sprite of the sun.
â¢â¢ (22: SunSz) - Sun core size, The size of the core sprite of the sun.
â¢â¢ (23: SprSz) - Sun corona size, The size of the corona sprite of the sun.
â¢â¢ (24: SprBght) - Sprite brightness, The the brightness of the above mentioned sprites.
â¢â¢ (25: Shdw) - Shadow intensity, The intensity of the shadows of objects like pedestriants, vehicles or poles.
â¢â¢ (26: LightShd) - Light shading, Value used for the shading algorithm on pedestirants and vehicles [?].
â¢â¢ (27: PoleShd) - Pole shading, Shading value for map objects with flag 32768.
â¢â¢ (28: FarClp) - Far clipping, The distance of the far clipping plane from the camera.
â¢â¢ (29: FogSt) - Fog start, The range of the distance fog from the camera.
â¢â¢ (30: LightOnGround) - Light on ground, Amount of light on the ground of the sea [?].
â¢â¢ (31, 32, 33: LowCloudsRGB) - Lower clouds RGBA, Color of the lower clounds.
â¢â¢ (34, 35, 36: BottomCloudRGB) - Bottom clouds RGBA, Color of the top of the upper clouds.
â¢â¢ (37, 38, 39, 40: WaterRGBA) - Water RGBA, Color of the water vertices.
â¢â¢ (41: Alpha1) - Alpha level for first color correction value.
â¢â¢ (42, 43, 44: RGB1) - First color correction value.
â¢â¢ (45: Alpha2) - Alpha level for second color correction value.
â¢â¢ (46, 47, 48) - Second color correction value.
â¢â¢ (49, 50, 51: CloudAlpha) - Lower clouds alpha level, Upper clouds alpha level, Unused (? not tested) clouds alpha level
â¢â¢ (52: Illumination) - working, not present in standard GTA SA timecyc.dat, but loaded by timecyc reading function.
** 1.5 version
- update caused by upcoming car spawner that uses camera rotation when player can`t move too.
Opcode 003E: overwrite_camera_movement_state 2 has been created to be shared along the scripts.
- default key of rotation was changed to \ slash
You can alter the key in TimecycEditor.ini
- An error in source, writing to additional variable using CLEO opcode was fixed. It caused the crashes.
** 1.4 version:
- added possibility to rotate around player/vehicle using X key (configurable within .ini file),
it took a lot of time to get it finally working, part of ASM code had to be written for that
** 1.3 version:
- added indicators for intensity of taken values from current and next cycle the way interpolation works.
When it`s start of time - 100% intensity of current cycle values, 0% intensity of next cycle values
- fixed stopping of time - time wasn`t stopped according to icon, but in fact it was, caused by cmp dword ptr [_IsTimeStopped], 0
instead of cmp byte ptr [_IsTimeStopped], 0
** 1.2 version:
- new functions GetTimeCycleNum and GetCenterTimeOfCycle that don`t return key time between cycles, but starting time
- fixed disappearing of Value description near the pallete caused by incorect array index of GXTcomuniqueKey
** 1.1 version:
- added possibility to stop the time, button is placed near the clock
**** Thanks to:
seggaeman - for editing of hourglass textures
Jacko427 - testing
Rockstar Games for creating an innovative game
Copyright Â© 2011, fastman92
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Date of release: 28-01-2012
For: GTA San Andreas