Skip to content

Commit

Permalink
"Insta-Win" Autoplay option for soak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lunalawl committed Jan 28, 2025
1 parent 10c43b0 commit 999602d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
2 changes: 2 additions & 0 deletions _ark/dx/locale/dx_locale_updates.dta
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
(os_auto_endurance_selected "Auto Song: Selection")
(os_dx_auto_endgame_off "Auto Next: No")
(os_dx_auto_endgame_on "Auto Next: Yes")
(os_insta_win_off "Insta-Win: No")
(os_insta_win_on "Insta-Win: Yes")
(os_dx_bot_1_off "Player 1: No")
(os_dx_bot_2_off "Player 2: No")
(os_dx_bot_3_off "Player 3: No")
Expand Down
5 changes: 5 additions & 0 deletions _ark/dx/overshell/dx_advanced_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,7 @@
(dx_random os_auto_endurance_random)
(FALSE os_auto_endurance_off)
}
{if_else $dx_insta_win os_insta_win_on os_insta_win_off}
{if_else $dx_bot_1 os_dx_bot_1_on os_dx_bot_1_off}
{if_else $dx_bot_2 os_dx_bot_2_on os_dx_bot_2_off}
{if_else $dx_bot_3 os_dx_bot_3_on os_dx_bot_3_off}
Expand Down Expand Up @@ -1121,6 +1122,10 @@
}}
{options_audio.lst set_data (DX_BOT_SETTINGS_DATA)}
)
((os_insta_win_on os_insta_win_off)
{set $dx_insta_win {! $dx_insta_win}}
{options_audio.lst set_data (DX_BOT_SETTINGS_DATA)}
)
((os_dx_bot_1_on os_dx_bot_1_off)
{set $dx_bot_1 {! $dx_bot_1}}
{options_audio.lst set_data (DX_BOT_SETTINGS_DATA)}
Expand Down
17 changes: 12 additions & 5 deletions _ark/dx/track/track/dx_track_panel_handles.dta
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,24 @@
{dx_track_configurer}
{dx_dim_remote_players}
{dx_mtv_time_remaining_handler}
{if {! {gamemode in_mode practice}}
{dx_new_set_song_progress_backer $dx_song_progress_bar}
}
{if {! {modifier_mgr is_modifier_active mod_brutalmode}} ;brutal mode relies on crowd meter accuracy
{if {== $dx_crowd_meter_state dx_disabled} {adjust_crowd_rating 1}} ;max out crowd meter when it's disabled for crowd audio
}
{if $dx_mtvup {{{gamemode get track_panel} find mtv_overlay} mtv_formatter}} ;this is here to fix some issues with auto-positioning - luna
{script_task kTaskSeconds (delay 1)
(script
{if $dx_mtvup {{{gamemode get track_panel} find mtv_overlay} mtv_formatter}} ;this is here to fix some issues with auto-positioning - luna
)
}
{if {! {gamemode in_mode practice}}
{dx_new_set_song_progress_backer $dx_song_progress_bar}
}
{if {! {modifier_mgr is_modifier_active mod_brutalmode}} ;brutal mode relies on crowd meter accuracy
{if {== $dx_crowd_meter_state dx_disabled} {adjust_crowd_rating 1}} ;max out crowd meter when it's disabled for crowd audio
{if {&& {modifier_mgr is_modifier_active mod_auto_play} $dx_insta_win}
{script_task kTaskSeconds (delay 4)
(script
{fake_win 3}
)
}
}
}
)
Expand Down

0 comments on commit 999602d

Please sign in to comment.