Vehicles: light patterns (sirens, strobes), siren lights and siren sound in the viewer #81
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!81
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/81/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 21:22 UTC · original
holdmysocks:claude/sirens→master· +679 −4 · 9 files · 2 commits · merged 2026-11-23 21:55 UTCWhat
vehlights.rs): reads the light pattern records (0f93517e) from the vehicle library (data.rpf), the shared pattern pack and the per-vehicle light packs (packs.rpf). Per pattern: slot, speed, clock, and per lamp the bone name hash (joaat ofsiren12,indicator_lf...) with steps of phase offset (half float) and flash type number.0caef606-> list61e1e572-> link recordda592d57-> pattern names1ff6a884. A light pack holding a pattern a vehicle links is taken as that vehicle's.vehicles.jsonis format 9: per vehiclelights(patterns,pack,archetypes), per configurationlight_patterns.meta7a: member type 0x20 is decoded as a half float (it was a hex dump)._glasslens bones flash with their phase offsets.--siren Npicks the Nth pattern for screenshots.RESIDENT_VEHICLES_SIREN_WAIL_01..04,_QUICK_01..04,_FIRETRUCK_WAIL_01,_FIRETRUCK_QUICK_01); the chosen one is found by name hash, its Opus stream decoded and looped.audiometa::sound_wavesis the lookup.Checked
every_siren_sound_decodes, needs the game) finds and decodes all ten sounds: wails 3.8 to 6.3 s, yelps 0.25 to 0.5 s, mono, full-scale signal. Playback through the speakers was not listened to.cargo test -p sixng-core -p sixng-gui: 152 passed.Not decoded / not done
1b953013).