Skip to content

VEGAS nameplates: a clip under another player's nameplate now gets its own (#1647) - #1675

Open
ccoventry wants to merge 4 commits into
devfrom
fix/nameplate-same-player-1647
Open

ccoventry wants to merge 4 commits into
devfrom
fix/nameplate-same-player-1647

Conversation

@ccoventry

@ccoventry ccoventry commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Release note: Fixed: a VEGAS clip that sits under another player's nameplate now gets its own nameplate instead of showing the wrong name.

Closes #1647

What changed

vegas/DoD Studio Nameplates.cs: the "already has a nameplate" check counted any nameplate over the clip's span, so a clip under another player's nameplate never got its own. Now an existing event over the span covers the clip unless its picture is another listed player's nameplate:

  • A picture at its own listed path belongs to the players the clip list gives it to (so two players' nameplate.png in different folders are told apart); a path in no list is matched by file name, and a moved picture with the run's own file name counts as the run's own.
  • Who a player is comes from the clip list's SteamID, else the player's name: two players with one name are two players, and one player with two listed pictures or two spellings of the name is still one.
  • Unknown pictures, generated media (a title or text event) and the run's own picture cover as before.
  • A rerun never replaces another listed player's nameplate while one of that player's clips (whichever picture it is listed with) is still under it (it is kept and counted); a stale one with no such clip is replaced as before.
  • The box counts a nameplate that starts before the clip and reaches into it (the doc already said it did), one line per reason, never one the script just added or another clip's own exact-fit one.
  • The cover check tests the times first, so a rerun on 330 clips is no slower than before the PR.
    Doc and tests: docs/vegas_nameplates.md, vegas/tests/NameplateMergeTest.cs; vegas/tests/run.ps1 now compiles with /noconfig and only System.dll so code VEGAS's script compiler can't load (a HashSet) fails locally.

Test done

Pre-PR check

HasNameplate, Replaces and the new helpers have one caller each (FromVegas) plus the tests. Open question for the owner: #1678.

🤖 Generated with Claude Code

…nameplate (#1647)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ver a clip (#1647 review)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ccoventry

Copy link
Copy Markdown
Owner Author

Review findings

Fix round for the Fable review of 84741fc. The owner question from finding 1 is filed as #1678. VEGAS steps 8-11 were run in my own second VEGAS Pro 21 on test-only projects (logs in the 1647 test folder under the overnight test output folder): the PR head reproduced findings 1, 2 and the hand-made-nameplate case, and the fix passes all of them.

# Finding Severity Outcome
1 A nameplate whose picture path differs from the clip list's no longer covers, so a rerun replaces or stacks it medium Fixed in 7598c49: only a picture that is another listed entry's nameplate (by path, else file name) fails to cover, unknown and generated pictures cover as before, test a nameplate that is not another player's covers the span, another listed player's picture is, a picture in no clip list is not
2 A new nameplate can delete another player's correct nameplate while the box says it was left alone medium Fixed in 7598c49: Replaces never removes another listed player's nameplate (kept and counted), test another player's nameplate inside the span stays
3 An event with no picture gives an empty string, so the null guard never fires low Fixed in 7598c49: the media path goes in as null and an empty path never counts as another player's, test generated media (no file) is not, no file name is not
4 Tests cover only the one-line predicate, PathKey is untested low Fixed in 7598c49: PathKey and NameKey internal, the cover decision is the pure CoversRun, test PathKey folds slashes and case, PathKey folds .. and doubled slashes, PathKey keeps different folders apart, a clip under another player's nameplate is not covered
5 Two players sharing one picture are treated as one player low Fixed in 7598c49: the doc and comments now say pictures are compared, not players, test the run's own picture is not another player's
6 The script's header comment and the left-alone comment no longer match the rule nit Fixed in 7598c49: header and FromVegas comments updated, no test needed for comments
7 The doc sentence has two parentheses back to back nit Fixed in 7598c49: the #1647 note is its own sentence and the replace rule names the kept nameplate, no test needed for docs
8 Not tested: rerun after the picture path changes low Fixed in 7598c49: run in VEGAS, PR head replaced the old nameplate and lost its hand-set fade, the fix says No nameplates were added and the fade stays; a nameplate that starts 1 s before the clip still gets a new one stacked under both versions, as before this PR
9 Not tested: save, reopen, rerun, and VEGAS's own missing-media relink low Filed #1679
10 Not tested: another player's joined nameplate under a same-span clip low Fixed in 7598c49: run in VEGAS, the PR head deleted A's joined nameplate, the fix keeps both and counts one kept, test another player's nameplate inside the span stays
11 Not tested: a hand-made nameplate on the Nameplates track low Fixed in 7598c49: run in VEGAS, the PR head removed a Titles and Text event, the fix leaves it and counts it as already there, test generated media (no file) is not

Note on row 9: the save, reopen, rerun half passed (media paths came back unchanged, rerun said No nameplates were added); only the missing-media relink half is filed.

…ct only live nameplates, count ones starting before (#1647 review round 2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ccoventry

Copy link
Copy Markdown
Owner Author

Review findings

Fix round for the second Fable review of 7598c49. VEGAS steps 9-11 were run in my own second VEGAS Pro 21 on test-only projects, comparing origin/dev, 7598c49 and the fix: logs in the 1647 folder of the overnight test output folder.

# Finding Severity Outcome
1 Two players' pictures with the same file name in different folders: the file-name test ran before the exact-path lookup, so #1647 came back medium Fixed in 13ee58a: exact path first, file name only for a path in no list, test another listed player's picture with the same file name in another folder is
2 One player with two listed pictures: a rerun stacks the new picture over the old nameplate low Fixed in 13ee58a: another player is decided by the clip list's player name, falling back to the picture, test one player's older picture, still listed, is not another player's
3 A stale nameplate of another player is kept under the new one where dev replaced it low Fixed in 13ee58a: protected only while a clip of that picture still overlaps it, test another player's nameplate with none of that player's clips under it is stale
4 The doc says the box counts a nameplate that starts before the clip, the code did not low Fixed in 13ee58a: such a nameplate is now counted as kept and the line says so, test a nameplate starting before the run and reaching into it is counted
5 KnownPlates and the wiring untested, and run.ps1 would not catch a System.Core type low Fixed in 13ee58a: PlatesOf is pure and tested, run.ps1 uses /noconfig and System.dll only (a HashSet line fails to build, checked), test PlatesOf lists each picture of a player once and skips no picture
6 HasNameplate worked out the picture for every run and event pair before the times low Fixed in 13ee58a: times are checked first, measured on 330 clips in VEGAS: rerun dev 5.4 s, 7598c49 23.2 s, fix 5.2 s, test the 330-clip VEGAS rerun timing
7 The doc paragraph's new sentences were spliced with a semicolon nit Fixed in 13ee58a: own sentences, path-first rule and moved-picture rule written out, no test needed for docs
8 The kept line and the Replaces caller comment did not name the new reason nit Fixed in 13ee58a: kept line now says it starts before the clip or shows another player's picture, caller comment updated, no test needed for wording
9 Not tested: same file name in two folders, and one player with two pictures low Fixed in 13ee58a: run in VEGAS, 7598c49 left C without a nameplate in 9a and stacked a_new over a_old in 9b, the fix adds C's nameplate and adds nothing in 9b, test the same-name and two-pictures cases above
10 Not tested: a stale nameplate of another player under a longer clip low Fixed in 13ee58a: run in VEGAS, 7598c49 kept A's stale nameplate beside C's, the fix replaces it, test another player's nameplate with none of that player's clips under it is stale
11 Not tested: time a rerun on a 330-clip timeline low Fixed in 13ee58a: measured dev 5.4 s, 7598c49 23.2 s, fix 5.2 s as in row 6, test the 330-clip VEGAS rerun timing

Note: the PR body's What changed and Pre-PR check now describe the current code.

… noise, more unit cases (#1647 review round 3)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ccoventry

Copy link
Copy Markdown
Owner Author

Review findings

Fix round for the third Fable review of 13ee58a. VEGAS steps 9-11 were run in my own second VEGAS Pro 21 on test-only projects, comparing origin/dev, 13ee58a and the fix, plus a rerun of the earlier cases (logs: the 1647 folder of the overnight test output folder).

# Finding Severity Outcome
1 The starts-before count fires on a first run over crossfaded clips, about nameplates the script just added low Fixed in a67f0ca: events added this pass and another clip's exact-fit nameplate are skipped, each event is counted once, test a nameplate added in this pass is not counted
2 Another player is decided by the display name, the clip list has the SteamID low Fixed in a67f0ca: identity is the SteamID, else the name, else the picture, test two players with one name and different SteamIDs are two players
3 ClipsOfPicture matches by file name before path and by picture, not player low Fixed in a67f0ca: a clip counts when its player is one the picture is listed for, path before file name, test a clip of the plate's player listed with a newer picture still belongs
4 The tests still pass with the new wiring broken low Fixed in a67f0ca: pure ClipBelongsToPlate, CountsAsKept and KeptLines plus PlatesOf edge cases, test one picture listed for two players gives two entries
5 The kept line lists four reasons for one count low Fixed in a67f0ca: one line per reason in plain words, test ones starting before the clip get their own line
6 Unused local runEnd nit Fixed in a67f0ca: runStart and runEnd are passed to Replaces, no test needed for an unused local
7 The test file's Replaces comment lists the old parameters nit Fixed in a67f0ca: otherPlayer added to the comment, no test needed for a comment
8 PlateSet's comment is the round-1 shape and PlatesOf takes string arrays nit Fixed in a67f0ca: PlatesOf takes PlateEntry objects with named fields and the comments describe them, test an empty list gives no entries
9 Not tested: first run over crossfaded clips of different players low Fixed in a67f0ca: run in VEGAS, 13ee58a said one nameplate was kept on the first run and the fix says nothing, rerun adds nothing on both, test a nameplate added in this pass is not counted
10 Not tested: two players with one name, one player under two names low Fixed in a67f0ca: run in VEGAS, 13ee58a gave C no nameplate and replaced the old one (fade lost), the fix adds C's and leaves the old one, test one SteamID under two names is one player
11 Not tested: stale and live plates with a shared file name or two pictures low Fixed in a67f0ca: run in VEGAS, 13ee58a kept A's stale plate and removed A's live one, the fix replaces the stale one and keeps the live one, test another folder's picture with the same file name is not that player's clip

Earlier cases rerun on the fix with no change (same file name in two folders, one player with two pictures, stale plate under a longer clip). The 330-clip rerun took 5.3 s on dev and 5.6 s on the fix.

This branch has not been deployed

No deployments
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.

VEGAS nameplates: a clip under another player's nameplate never gets its own

1 participant