Skip to content

Commit

Permalink
TBRB/GDRB: Breakneck Speed in Practice mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lunalawl committed Aug 8, 2024
1 parent 49f090e commit 05b9122
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ Lightweight patches to vanilla RB games that add small quality-of-life improveme
### TBRB:

- Vsync disabled on RPCS3
- "Super Speed" (Breakneck Speed) in Practice mode

### GDRB:

- Vsync disabled on RPCS3
- "Super Speed" (Breakneck Speed) in Practice mode

### LRB:

Expand Down
107 changes: 107 additions & 0 deletions gdrb/_ark/ui/track_panel.dta
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
#define TRACK_END_FRAME
(1920)
#define TRACK_PANEL_HANDLERS
((enter
;allow bns in practice mode
{{{gamemode get track_panel} loaded_dir} set view_time_easy {/ 2.4 {if_else {&& {profile_mgr get_hyperspeed} {gamemode in_mode practice}} 1.5 1}}}
{{{gamemode get track_panel} loaded_dir} set view_time_expert {/ 1.2 {if_else {&& {profile_mgr get_hyperspeed} {gamemode in_mode practice}} 1.5 1}}}
{game add_sink $this}
{$this
set_showing
{'||'
$skip_intro
{gamemode in_mode drum_trainer}
{!
{gamemode in_mode practice}}}})
(exit
{if
{exists guitar_effects}
{do
{guitar_effects set_showing FALSE}}}
{if
{exists bass_effects}
{do
{bass_effects set_showing FALSE}}}
{game remove_sink $this})
(unison_hit)
(unison_miss)
(set_track_out)
(set_track_in)
(animate_track
($start $end $period $units))
(animate_track_out)
(animate_track_out_fast)
(animate_track_in_fast)
(finish_load
{$this set_showing FALSE}
{$this set_track_out})
(intro_start
{$this track_reset}
{$this set_showing TRUE}
{$this set_track_in})
(intro_skip
{$this track_reset}
{$this set_showing TRUE}
{$this set_track_out}
{if
{&&
{exists gamemode}
{!
{gamemode get is_tutorial}}}
{$this play_intro}})
(configure_optimizations
{do
($total_players 0)
{if
{exists beatmatch}
{beatmatch
foreach_active_player
$player
{'++' $total_players}}}
#ifdef HX_PS3
{set
$optimization_lod
{if_else
{> $total_players 2}
1
0}}
#else
{set $optimization_lod 0}
#endif
{set $track_LOD $optimization_lod}})
(on_reset
{beatmatch
foreach_active_player
$m
{$m on_new_track}
{{$m track}
init
{$m track}}}
{{$this loaded_dir}
reset}
{$this configure_optimizations})
(on_extend
{$this play_intro}
{if
{&&
{exists gamemode}
{gamemode get play_track_intro_sfx}}
{synth play track_beg.cue}}))
{new
TrackPanel
coop_track_panel
(file
"track/trackpanel.milo")
TRACK_PANEL_HANDLERS}
{new
TrackPanel
h2h_track_panel
(file
"track/trackpanel_h2h.milo")
TRACK_PANEL_HANDLERS}
{func
get_track_panel
{gamemode get track_panel}}
{set
$playback_file
""}
78 changes: 78 additions & 0 deletions tbrb/_ark/ui/track_panel.dta
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#define TRACK_END_FRAME
(1920)
#define TRACK_PANEL_HANDLERS
((enter
;allow bns in practice mode
{{{gamemode get track_panel} loaded_dir} set view_time_easy {/ 2.4 {if_else {&& {profile_mgr get_hyperspeed} {gamemode in_mode practice}} 1.5 1}}}
{{{gamemode get track_panel} loaded_dir} set view_time_expert {/ 1.2 {if_else {&& {profile_mgr get_hyperspeed} {gamemode in_mode practice}} 1.5 1}}}
{game add_sink $this}
{$this
set_showing
{'||'
$skip_intro
{gamemode in_mode drum_trainer}
{!
{gamemode in_mode practice}}}})
(exit
{game remove_sink $this})
(unison_hit)
(unison_miss)
(set_track_out)
(set_track_in)
(animate_track
($start $end $period $units))
(animate_track_out)
(animate_track_out_fast)
(animate_track_in_fast)
(finish_load
{$this set_showing FALSE}
{$this set_track_out})
(intro_start
{$this track_reset}
{$this set_showing TRUE}
{$this set_track_in})
(intro_skip
{$this track_reset}
{$this set_showing TRUE}
{$this set_track_out}
{if
{&&
{exists gamemode}
{!
{gamemode get is_tutorial}}}
{$this play_intro}})
(on_reset
{beatmatch
foreach_active_player
$m
{$m on_new_track}
{{$m track}
init
{$m track}}}
{{$this loaded_dir}
reset})
(on_extend
{$this play_intro}
{if
{&&
{exists gamemode}
{gamemode get play_track_intro_sfx}}
{synth play track_beg.cue}}))
{new
TrackPanel
coop_track_panel
(file
"track/trackpanel.milo")
TRACK_PANEL_HANDLERS}
{new
TrackPanel
h2h_track_panel
(file
"track/trackpanel_h2h.milo")
TRACK_PANEL_HANDLERS}
{func
get_track_panel
{gamemode get track_panel}}
{set
$playback_file
""}

0 comments on commit 05b9122

Please sign in to comment.