Name fragment group and root flag bits in model.json (SIX-206) #258
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!258
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/258/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-25 11:51 UTC · original
holdmysocks:six-frag-flags→master· +106 −3 · 1 files · 2 commits · merged 2026-11-25 12:17 UTCNames the fragment flag bits in
model.json'sphysicsblock (SIX-206, a follow-up to #251).What changes
flag_names(the decoded bits of both flag words) andflag_bits_unnamed([word, bit]pairs still unknown).flagsandflags2stay as raw hex.root_flag_namesandroot_flag_bits_unnamedsit next to the rawroot_flags.disappears_when_dead_chance.Method
Each level group's 36 tuning values were compared with the 80 fragment tuning presets in common. 6,931 groups match exactly one preset on at least 8 values. For each preset true/false setting, I compared the share of groups with each bit set when the preset says true and when it says false.
Group flags (word 0 = group +0x00, word 1 = +0x04)
Confirmed: set on 97% or more of the groups whose preset says true, and on none whose preset says false.
Likely:
Glass_*groups of windows and doors, and 98% of the groups with it are box boundsUnknown: InitialArticulationDisabled has no bit of its own. Bits still unnamed: word 0 bits 4–7, 9, 10, 13, 17–19, 21, 22, 25–27 and 31; word 1 bits 1, 2, 4 and 5. Each is set on at most 4,349 of the 153,028 level groups.
Root flags (+0xB8)
Confirmed: these bits equal "some group has the bit" on all 40,705 level fragments.
Likely:
veg_fragment; 99% of the fragments with it areveg_Not named:
Child type and include flags
These are collision layer masks. On every fragment, the archetype's type flags equal the OR of its children's, plus bit 0. Type bit 19 appears only on vegetation, so it is likely the foliage layer. The layers are not named.
Tuning slot 3
Slot 3 is
disappears_when_dead_chance. In 2,308 of the 2,320 matched groups whose preset value is above 0, slot 3 holds that value.Tests: a new
names_flag_bitstest covers both flag words, the shared collide name and root flags taken from a real fragment.decodes_fragment_physicsnow checksflag_namesandflag_bits_unnamedin the JSON.