Skip to content

Commit

Permalink
Fix TimingData discrepancies causing offset hover to be wrong
Browse files Browse the repository at this point in the history
also add a little debug thing for anyone peering into stuff
  • Loading branch information
poco0317 committed Nov 12, 2019
1 parent 1a32edd commit aae918c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Themes/Til Death/BGAnimations/offsetplot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ local function convertXToRow(x)
-- the 48 here is how many noterows there are per beat
-- this is a const defined in the game
-- and i sure hope it doesnt ever change
local td = GAMESTATE:GetCurrentSong():GetTimingData()
local td = GAMESTATE:GetCurrentSteps():GetTimingData()
local row = td:GetBeatFromElapsedTime(output * finalSecond) * 48

return row
Expand Down Expand Up @@ -185,6 +185,7 @@ o[#o + 1] =
local badCount = judgments[6]
local missCount = judgments[5]

--txt:settextf("x %f\nrow %f\nbeat %f\nfinalsecond %f", xpos, row, row/48, finalSecond)
txt:settextf("%s: %d\n%s: %d\n%s: %d\n%s: %d\n%s: %d\n%s: %d\n%s: %f", "Marvelous", marvCount, "Perfect", perfCount, "Great", greatCount, "Good", goodCount, "Bad", badCount, "Miss", missCount, "WifePercent", wifescore)
else
bar:visible(false)
Expand Down

0 comments on commit aae918c

Please sign in to comment.