Skip to content

Commit

Permalink
autoplay plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed May 20, 2024
1 parent 51ba81a commit eb89be0
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 25 deletions.
17 changes: 13 additions & 4 deletions _ark/ps4/dx/overshell/dx_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
}
{$this setup_confirm_actions a
(
{if_else $autoplay "Autoplay: ON" "Autoplay: OFF"}
{if_else $autoplayenabled {if_else $autoplay "Autoplay: ON" "Autoplay: OFF"} "Autoplay: DISABLED"}
{if_else $nomiss "No Miss Sounds: ON" "No Miss Sounds: OFF"}
{if_else $nood "No OD: ON" "No OD: OFF"}
{if_else $practiceod "OD in Practice: ON" "OD in Practice: OFF"}
Expand All @@ -171,13 +171,22 @@
{
($objId UIListCom)get_data_in_column token }}
{switch $list_data
("Autoplay: DISABLED"
{$this show_state kState_RB4DXAutoplayHowTo}
{$this trigger_select_effects }
)
(("Autoplay: ON" "Autoplay: OFF")
{set $autoplay {! $autoplay}}
{if_else $autoplay
{write_file "data:/GoldHEN/RB4DX/autoplay.ini" $dx_write_nul}
{file_delete "data:/GoldHEN/RB4DX/autoplay.ini"}
{do
{write_file "data:/GoldHEN/RB4DX/autoplay.ini" $dx_write_nul}
{$this show_state kState_RB4DXAutoplayOn}
}
{do
{file_delete "data:/GoldHEN/RB4DX/autoplay.ini"}
{$this show_state kState_RB4DXAutoplayOff}
}
}
RB4DXGP_DATA
{$this trigger_select_effects }
)
(("Track Muting: Partial" "Track Muting: Off" "Track Muting: On")
Expand Down
89 changes: 68 additions & 21 deletions _ark/ps4/dx/overshell/dx_warn_states.dta
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
(kState_RB4DXScreensaverWarn
(view confirm_action)
(enter
{$this setup_confirm_actions "You will need to restart the game to continue playing. Do you want to continue?" (overshell_confirm_yes overshell_confirm_no)}
)
(SELECT_MSG
{local $list_data
{($objId UIListCom) get_data_in_column token}
}
{switch $list_data
(overshell_confirm_yes
{$ui remove_scene "ui/main_menu/main_menu.scene"}
{$ui remove_scene "ui/overshell/overshell.scene"}
)
(overshell_confirm_no
{$this show_state kState_RB4DXMain}
)
}
{$this trigger_select_effects}
)
(on_cancel
{$this show_state kState_RB4DXMain}
{$this trigger_cancel_effects }
)
)

(kState_RB4DXDelayedEffectWarn
(view confirm_action)
(enter
Expand Down Expand Up @@ -68,6 +94,7 @@
{$this trigger_cancel_effects }
)
)

(kState_RB4DXOptionalAddWarn
(view confirm_action)
(enter
Expand Down Expand Up @@ -117,42 +144,62 @@
{$this trigger_cancel_effects }
)
)
(kState_RB4DXScreensaverWarn
(kState_RB4DXOptionalAddHowTo
(view confirm_action)
(enter
{$this setup_confirm_actions "You will need to restart the game to continue playing. Do you want to continue?" (overshell_confirm_yes overshell_confirm_no)}
(enter
{$this setup_confirm_actions "This option cannot be changed in-game. go to the \qdx_optional_additions\q folder in your RB4DX build zip/folder, and copy the ps4 folder of the addition to \q/data/GoldHEN/RB4DX/\q." (overshell_confirm_ok)}
)
(SELECT_MSG
{local $list_data
{($objId UIListCom) get_data_in_column token}
}
{switch $list_data
(overshell_confirm_yes
{$ui remove_scene "ui/main_menu/main_menu.scene"}
{$ui remove_scene "ui/overshell/overshell.scene"}
)
(overshell_confirm_no
{$this show_state kState_RB4DXMain}
)
}
{$this trigger_select_effects}
{$this show_state kState_RB4DXOptionalAdditions}
{$this trigger_select_effects }
)
(on_cancel
{$this show_state kState_RB4DXMain}
{$this show_state kState_RB4DXOptionalAdditions}
{$this trigger_cancel_effects }
)
)
(kState_RB4DXOptionalAddHowTo

(kState_RB4DXAutoplayHowTo
(view confirm_action)
(enter
{$this setup_confirm_actions "This option cannot be changed in-game. go to the \qdx_optional_additions\q folder in your RB4DX build zip/folder, and copy the ps4 folder of the addition to \q/data/GoldHEN/RB4DX/\q." (overshell_confirm_ok)}
{$this setup_confirm_actions "You are missing the \qRB4DX-Autoplay.prx\q plugin file. Autoplay will not work until you download and enable this plugin.
(DISABLES SAVING)" (overshell_confirm_ok)}
)
(SELECT_MSG
{$this show_state kState_RB4DXOptionalAdditions}
{$this show_state kState_RB4DXGPSettings}
{$this trigger_select_effects }
)
(on_cancel
{$this show_state kState_RB4DXOptionalAdditions}
{$this show_state kState_RB4DXGPSettings}
{$this trigger_cancel_effects }
)
)
(kState_RB4DXAutoplayOn
(view confirm_action)
(enter
{$this setup_confirm_actions "If autoplay is not functioning, make sure you have the \qRB4DX-Autoplay.prx\q plugin enabled in \q/data/GoldHEN/plugins.ini\q.
(DISABLES SAVING)" (overshell_confirm_ok)}
)
(SELECT_MSG
{$this show_state kState_RB4DXGPSettings}
{$this trigger_select_effects }
)
(on_cancel
{$this show_state kState_RB4DXGPSettings}
{$this trigger_cancel_effects }
)
)
(kState_RB4DXAutoplayOff
(view confirm_action)
(enter
{$this setup_confirm_actions "You will need to disable or delete the \qRB4DX-Autoplay.prx\q plugin to re-enable saving." (overshell_confirm_ok)}
)
(SELECT_MSG
{$this show_state kState_RB4DXGPSettings}
{$this trigger_select_effects }
)
(on_cancel
{$this show_state kState_RB4DXGPSettings}
{$this trigger_cancel_effects }
)
)
1 change: 1 addition & 0 deletions _ark/ps4/dx/ui/dx_init.dta
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{if {file_exists "autoplay.ini"}
{file_delete "data:/GoldHEN/RB4DX/autoplay.ini"}
}
{set $autoplayenabled {file_exists "data:/GoldHEN/plugins/RB4DX-Autoplay.prx"}}
{set $nood {file_exists "nood.dta"}}
{set $practiceod {file_exists "practiceod.dta"}}
{set $blackbg {file_exists "blackbg.dta"}}
Expand Down
2 changes: 2 additions & 0 deletions _build/GoldHEN/plugins.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
;US
[CUSA02084]
/data/GoldHEN/plugins/RB4DX-Plugin.prx
;/data/GoldHEN/plugins/RB4DX-Autoplay.prx
/data/GoldHEN/plugins/no_share_watermark.prx
;EU
[CUSA02901]
/data/GoldHEN/plugins/RB4DX-Plugin.prx
;/data/GoldHEN/plugins/RB4DX-Autoplay.prx
/data/GoldHEN/plugins/no_share_watermark.prx
Binary file added _build/GoldHEN/plugins/RB4DX-Autoplay.prx
Binary file not shown.

0 comments on commit eb89be0

Please sign in to comment.