Cutscenes: what the state machine's string tests check, and its start transitions #551
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!551
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-551"
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-28 07:39 UTC · original
holdmysocks:claude/cutscene-string-tests→master· +220 −35 · 4 files · 1 commits · merged 2026-11-28 07:55 UTCDecodes the transitions' entity conditions (struct
d5f7c394), one of the open cutscene items in the v0.14.0 known issues, and adds the state machine's start transitions.What the conditions test
d5f7c394isfwAnimSceneConditionString(case-sensitive joaat).entityNameis the key of a string entity of the scene (fwAnimSceneStringData,21e2cf99). Its value is 0 in the files: the script sets it.valueis the joaat (lower case) of the string the variable must equal. Withinvert, it must differ.9a04f49a, is 0 in every file.Start transitions
a2f97c23, membere6cae80aof the scene record) has a second transition array,c500427b. Its transitions have no source state.Changes
FsmTransitiongetstests(variable, value, invert).SceneFilegetsfsm_start. Catalog version 9.--masterslists each transition's tests and the master'sstarttransitions. Names come from a short list (s_choice,s_relationship,jason,lucia,yes,no…) and the name dictionary; anything else stays a hash.state_machinesgainsstart_transitions,start_with_tests,string_tests,string_variablesandstring_tests_named.--mastershelp updated.Measured on the story pack (139 masters)
jason/lucia): 153;s_relationship(low/medium/high): 121;Office).Not done: the other cutscene item (Bink movie id to
.bk2file)The 64-bit movie id (
495e253b, 71 distinct) cannot be tied to a file on this copy:.bk2/movies/affixes.movies.rpf's 515 files are unnamed.The README now says this under "Not decoded".
Tests:
cargo test -p sixng-core -p sixng-cli.