diff --git a/_ark/dx/track/callbacks/dx_track_callbacks.dta b/_ark/dx/track/callbacks/dx_track_callbacks.dta index 26c08ffb7..96bb2a24a 100644 --- a/_ark/dx/track/callbacks/dx_track_callbacks.dta +++ b/_ark/dx/track/callbacks/dx_track_callbacks.dta @@ -41,8 +41,11 @@ (slot none) (curr_ms 0) (diff none) + (gem_id 0) (hit ;when a note is hit ($gem_id) + ;store gem_id as fast as possible + {set [gem_id] $gem_id} {if {&& $dx_perfects_indicator {{[player] get_user} is_local} {== [diff] expert} {gamemode in_mode qp_coop}} ;calculate this as early as possible for accuracy {set [curr_ms] {'-' {beatmatch get_song_ms} {int {floor {'+' 0.5 {profile_mgr get_excess_audio_lag}}}}}} @@ -50,8 +53,8 @@ {set [accuracy] -8675309} ;failsafe, ensure the size of our tracker is the same as the reported total note count {if {== {eval {var {sprint [track_instrument] "_note_tracker_2_size"}}} {[player] get_gem_count}} - {if {>= $gem_id 0} - {set [accuracy] {'-' [curr_ms] {elem {eval {var {sprint [track_instrument] "_note_tracker_2"}}} $gem_id}}} + {if {>= [gem_id] 0} + {set [accuracy] {'-' [curr_ms] {elem {eval {var {sprint [track_instrument] "_note_tracker_2"}}} [gem_id]}}} } } {$this perfects_indicator [accuracy]}