Skip to content

Commit

Permalink
split track shine into track and/or gems
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Oct 19, 2024
1 parent ed19fb9 commit 2827d7a
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 12 deletions.
38 changes: 30 additions & 8 deletions _ark/ps4/dx/overshell/dx_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@
(
{if_else $noflames "Flames: OFF" "Flames: ON"}
{if_else $noshine "Track Shine: OFF" "Track Shine: ON"}
{if_else $gemshine "Gem Shine: OFF" "Gem Shine: ON"}
{if_else $noaa "Track Antialiasing: OFF" "Track Antialiasing: ON"}
{if_else $micwarn "Hide Mic Warning: ON" "Hide Mic Warning: OFF"}
{if_else $trackangle "Custom Track Angle: ON" "Custom Track Angle: OFF"}
Expand All @@ -645,7 +646,8 @@
(enter
{set $trackangle {dx_file_exists "ps4/track/guitar_unlit.scene_ps4"}}
TRACKANGLE_CHECK
{set $noshine {dx_file_exists "ps4/track/shared/fx_noise_b_util.bmp_ps4"}}
{set $noshine {dx_file_exists "ps4/track/shared/track_skin_swap.sgraph_ps4ps4"}}
{set $gemshine {dx_file_exists "ps4/track/guitar/gem_unlit.sgraph_ps4ps4"}}
{set $noflames {dx_file_exists "ps4/track/smasher/gem_smasher_unlit.entity_ps4"}}
{set $noaa {dx_file_exists "ps4/shared/scene/antialias.scene_ps4"}}
{set $micwarn {! {dx_file_exists "ps4/ui/game/hud1.scene_ps4"}}}
Expand Down Expand Up @@ -677,7 +679,7 @@
{dx_file_delete "settings/visuals/trackangle.dta"}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXVIS2_DATA
RB4DXTRK_DATA
}
{$this trigger_select_effects}
)
Expand All @@ -689,17 +691,37 @@
{set $noshine {! $noshine}}
{if_else $noshine
{do
{dx_file_rename "ps4/track/shared/fx_noise_b_util1.bmp_ps4" "ps4/track/shared/fx_noise_b_util.bmp_ps4"}
{dx_file_rename "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4" "ps4/track/shared/track_skin_swap.sgraph_ps4ps4"}
{dx_write_null_file "settings/visuals/noshine.dta"}
}
{do
{dx_file_rename "ps4/track/shared/fx_noise_b_util.bmp_ps4" "ps4/track/shared/fx_noise_b_util1.bmp_ps4"}
{dx_file_rename "ps4/track/shared/track_skin_swap.sgraph_ps4ps4" "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4"}
{dx_file_delete "settings/visuals/noshine.dta"}
}
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXVIS1_DATA
RB4DXTRK_DATA
}
{$this trigger_select_effects}
)
(("Gem Shine: ON" "Gem Shine: OFF")
{set $gemshine {! $gemshine}}
{if_else $gemshine
{do
{dx_file_rename "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4" "ps4/track/guitar/gem_unlit.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4" "ps4/track/drums/gem_cymbal_unlit.sgraph_ps4ps4"}
{dx_write_null_file "settings/visuals/gemshine.dta"}
}
{do
{dx_file_rename "ps4/track/guitar/gem_unlit.sgraph_ps4ps4" "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/drums/gem_cymbal_unlit.sgraph_ps4ps4" "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4"}
{dx_file_delete "settings/visuals/gemshine.dta"}
}
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXTRK_DATA
}
{$this trigger_select_effects}
)
Expand All @@ -717,7 +739,7 @@
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXVIS1_DATA
RB4DXTRK_DATA
}
{$this trigger_select_effects}
)
Expand All @@ -729,7 +751,7 @@
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXVIS_DATA
RB4DXTRK_DATA
}
{$this trigger_select_effects}
)
Expand All @@ -747,7 +769,7 @@
}
{if_else {$this in_song}
{$this show_state kState_RB4DXInGameWarn}
RB4DXVIS1_DATA
RB4DXTRK_DATA
}
{$this trigger_select_effects}
)
Expand Down
24 changes: 20 additions & 4 deletions _ark/ps4/dx/ui/init_dev.dta
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,20 @@ UPDATE_SETTINGS
{dx_file_rename "ps4/ui/game/hud1.scene_ps4" "ps4/ui/game/hud.scene_ps4"}
}
}
{if {&& {file_exists "settings/visuals/noshine.dta"} {dx_file_exists "ps4/track/shared/fx_noise_b_util1.bmp_ps4"}}
{if_else {dx_file_exists "ps4/track/shared/fx_noise_b_util.bmp_ps4"}
{dx_file_delete "ps4/track/shared/fx_noise_b_util1.bmp_ps4"}
{dx_file_rename "ps4/track/shared/fx_noise_b_util1.bmp_ps4" "ps4/track/shared/fx_noise_b_util.bmp_ps4"}
{if {&& {file_exists "settings/visuals/noshine.dta"} {dx_file_exists "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4"}}
{if_else {dx_file_exists "ps4/track/shared/track_skin_swap.sgraph_ps4ps4"}
{dx_file_delete "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/shared/track_skin_swap1.sgraph_ps4ps4" "ps4/track/shared/track_skin_swap.sgraph_ps4ps4"}
}
}
{if {&& {file_exists "settings/visuals/gemshine.dta"} {|| {dx_file_exists "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4"} {dx_file_exists "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4"}}}
{if_else {dx_file_exists "ps4/track/guitar/gem_unlit.sgraph_ps4ps4"}
{dx_file_delete "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/guitar/gem_unlit1.sgraph_ps4ps4" "ps4/track/guitar/gem_unlit.sgraph_ps4ps4"}
}
{if_else {dx_file_exists "ps4/track/drums/gem_cymbal_unlit.sgraph_ps4ps4"}
{dx_file_delete "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4"}
{dx_file_rename "ps4/track/drums/gem_cymbal_unlit1.sgraph_ps4ps4" "ps4/track/drums/gem_cymbal_unlit.sgraph_ps4ps4"}
}
}
{if {&& {file_exists "settings/visuals/noflames.dta"} {dx_file_exists "ps4/track/shared/smasher_beams1.bmp_ps4"}}
Expand Down Expand Up @@ -222,6 +232,12 @@ UPDATE_SETTINGS
}

;clear invalid files
{if {dx_file_exists "ps4/track/shared/fx_noise_b_util.bmp_ps4"}
{dx_file_delete "ps4/track/shared/fx_noise_b_util.bmp_ps4"}
}
{if {dx_file_exists "ps4/track/shared/fx_noise_b_util1.bmp_ps4"}
{dx_file_delete "ps4/track/shared/fx_noise_b_util1.bmp_ps4"}
}
{if {! {file_exists "settings/venue/enabled.dta"}}
DELETE_INVALID_VENUE_DTAS
}
Expand Down
Binary file not shown.
Binary file added _ark/ps4/track/guitar/gem_unlit1.sgraph_ps4ps4
Binary file not shown.
Binary file not shown.

0 comments on commit 2827d7a

Please sign in to comment.