Add timecycle/fog export (sixng timecycle) #45
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!45
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/45/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-23 13:26 UTC · original
holdmysocks:claude/timecycle→master· +822 −0 · 4 files · 1 commits · merged 2026-11-23 13:32 UTCAdds
sixng timecycle [archive=common] [--name <regex>] [-o <dir>], which exports the game's timecycle, fog and sky data as JSON. The first target is the arcade minigames.Where the data is. The timecycle data are plain XML files in
common.rpf, so every variable comes out with its name. The minigame pack and the other packs have no timecycle files. The archive stores no file names, so each document is recognised by its root element.What it decodes:
valueis what the modifier sets.bhas no known meaning. It is 0 in 88 % of records and 1 in 10 %.axes.high_level_varsblocks.repeated.GLOBALandURBANregions, with one number per time sample for about 1,000 variables, plus theHigh_Level_Vars.weather.json) and the custom cloud groups (custom_clouds.json), as generic JSON.variables.jsonlists the 1,426 variable names by family (fog,sky,postfx…).File names. Unnamed modifier files get their names from the game's own file list (
TC_Files.meta). The archive packs files in case-insensitive name order, so the names are aligned to the files by that order and by how well each file's modifier names fit (fitinfiles.json). All 50 listed files are matched.Concatenated documents. Some entries hold several XML documents back to back. For example,
@32b000holds the FH, FI and FW area files. All of them are read.Arcade set. This is the default output:
ARCADE_*modifiers ofTC_mods_Arcade_Games.xml;TC_mods_APFX.xml. These includeOverlay_ArcadeCabinetCRT(postfx_noise1.0,postfx_noise_size0.6,postfx_exposure_perpixel_amount0.75), plusArcadeGame_*andArcadeShooter_*;arcade_TwinStickShootercloud group.Checks. Every decoded value was compared with an independent parse of the raw XML: 32,742 modifier values, 11 blocks and 59,170 cycle rows, with 0 mismatches. 6 new unit tests cover the XML reader, several documents in one entry, the modifier, cycle and time-sample records, generic JSON and file naming. All 122 core tests pass.
Not known from the data: what the engine does with each variable, how strongly a modifier is applied at run time, and the meaning of
banduser_flags.