Skip to content

FIX: don't blank the editor tree on a corrupt sequence; flag it instead - #1968

Merged
TimothyLuke merged 1 commit into
TimothyLuke:masterfrom
LarryThiessen:fix-1967-corrupt-seq-tree-blank
Jul 13, 2026
Merged

FIX: don't blank the editor tree on a corrupt sequence; flag it instead#1968
TimothyLuke merged 1 commit into
TimothyLuke:masterfrom
LarryThiessen:fix-1967-corrupt-seq-tree-blank

Conversation

@LarryThiessen

Copy link
Copy Markdown
Contributor

Fixes #1967.

A structurally-corrupt sequence in GSE.Library (MetaData present, no valid Versions) made ManageTree throw ipairs(nil), blanking the whole sequence tree — the user couldn't see or delete anything.

  • ManageTree now builds each node in a pcall; one bad record can't blank the tree.
  • Broken Library seqs are flagged (red + alert icon), Delete-only right-click menu, and a click guard so opening one surfaces a message instead of decoding/crashing.
  • Decode-broken seqs (GSE.CorruptSequences) also render in the tree so a dismissed corrupt popup still leaves them findable; ProcessCorruptSequences no longer drains the list, and delete prunes it.
  • Only flags records that are actually in the Library and broken, so comma-in-name seqs aren't false-flagged.

Files: GSE_GUI/Editor_Tree.lua, GSE_Utils/Utils.lua, GSE/API/Storage.lua. luac -p clean; verified in-game (blank-tree gone, flag shows, Delete works, safe click).

Fixes TimothyLuke#1967

- ManageTree wraps each sequence's node build in a pcall so one corrupt record
  can't blank the whole tree (was: ipairs(nil) on a record missing Versions).
- Structurally-broken Library seqs are flagged (red + alert icon) with a
  Delete-only right-click menu; clicking one surfaces a message instead of
  decoding the broken data and crashing.
- Decode-broken seqs (GSE.CorruptSequences) also render in the tree so a
  dismissed corrupt-sequence popup still leaves them findable/deletable;
  ProcessCorruptSequences no longer drains that list, and both delete paths
  prune it (new GSE.ForgetCorruptSequence).
- Only flag records that are actually in the Library and broken, so a
  comma-in-name seq (comma-joined tree key) isn't false-flagged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@TimothyLuke
TimothyLuke merged commit 3156518 into TimothyLuke:master Jul 13, 2026
1 check passed
@LarryThiessen
LarryThiessen deleted the fix-1967-corrupt-seq-tree-blank branch July 13, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Sequence editor tree goes blank when a corrupt sequence is in the Library

2 participants