GTA:SA modding tool

Timecyc 24H Converter

Vanilla GTA:SA stores 8 keyframes per weather and interpolates between them at runtime. The Timecyc24 mod swaps those tables for 24 rows, one per in-game hour. Drop your timecyc.dat and colorcycle.dat here and get back the 24-hour files the mod reads — sampling exactly the same curve the game already draws, so nothing looks different until you start editing. Then edit them right here, hour by hour, and save.

⬆

Drop timecyc.dat and/or colorcycle.dat here or

Both at once is fine — each file is recognised by its contents, not its name. Already-converted 24-hour files open straight into the editor.

No file handy? Load the converted stock tables and edit from there.

What it actually does

GTA:SA only stores timecyc values for hours 0, 5, 6, 7, 12, 19, 20, 22. Every other hour is a linear blend of the two keyframes around it, wrapping from hour 22 back through midnight. The converter evaluates that same blend at all 24 hours and writes them out, so:

Checked against the mod's own data/timecyc_24h.dat: weathers 0–20 come out identical. Weathers 21–22 (EXTRACOLOURS_1 / _2) differ because the mod author hand-tuned those afterwards — they are not derivable from the vanilla file.

Editing

Click any hour in the preview to edit it. Colour groups get a picker plus their raw channel numbers; everything else is a plain field. Because every hour is its own keyframe once converted, an edit touches that hour alone — no neighbours shift. Copy this hour across pushes one hour over the whole day, the daylight hours or the night; Re-spread keyframes throws away edits on the in-between hours and rebuilds them from the 8 originals, which is the quickest way back if you have painted yourself into a corner.

You can also drop a timecyc_24h.dat you converted earlier and carry on editing it — reopening and re-saving an untouched file gives back the same bytes.

Column layouts, and what the game does with short rows

The Android build reads 52 columns per row; desktop timecyc.dat files stop at CloudAlpha (49), missing IntensityLimit, WaterFogAlpha and DirMult. When a short file is loaded the converter offers to fill those from the stock Android values for each weather and keyframe, so a desktop timecyc mod becomes usable on mobile.

Rows that disagree with each other are fine — the game tolerates them, so this does too, and in the same way. CTimeCycle::Initialise reads each row with a single 52-conversion sscanf into stack locals that it reuses on every iteration. When a row runs out of values early, sscanf simply stops assigning and the leftover fields keep whatever the previous row put there — so a short row inherits, it does not reset. DirMult is the exception: the game seeds it to 1.0 once before the loop, which is what a file that never mentions the field ends up with.

colorcycle behaves differently and the converter follows that too. Its sscanf writes straight into the global grade arrays, a fresh slot per row, so there is nothing to inherit: values a short row leaves out stay at zero.

The colorcycle grade

Each row is three sets of four numbers — for red, green and blue output, how much of each input channel to take plus an offset. As it reads them the game scales everything by 0.67, and where a channel's first three values add up past 1.7 it drags that channel's offset down by (sum - 1.7) × 0.13 first. The editor's swatches show that finished matrix applied to a handful of reference colours. Treat it as indicative rather than exact — in game this is a full-screen pass over the rendered frame, not a per-colour transform.

Where the files go

Timecyc24 opens them as TIMECYC_24H.DAT and DATA/COLORCYCLE_24H.DAT; the mod repository ships both under its data/ folder. Drop the converted files in alongside the ones that came with the mod, keeping the same names and locations, and install AndroidModLoader 1.2.2 or newer.

Reading the preview

Hover any hour for its raw values. Gold columns are the 8 keyframes from your source file; everything between them is generated. If the gradient across a gold boundary looks like a hard step, that step is already in your source file — the converter does not smooth it away.