Skip to content

Commit

Permalink
highway length
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Jan 8, 2025
1 parent fe066cd commit b4d0637
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 2 deletions.
89 changes: 88 additions & 1 deletion _ark/ps4/dx/overshell/dx_slider_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,94 @@

})
(on_cancel
{$this show_state kState_RB4DXVisSettings}
{$this show_state kState_RB4DXTrkSettings}
{$this trigger_cancel_effects})
)

(kState_RB4DXHighwayLength
(view confirm_action)
(enter
{$this setup_confirm_actions
{sprintf
"Highway Length: %.2fX"
{if_else {> $hwlength 1}
{+ {* $hwlength -0.333333333333333} 1.333333333333333}
{+ {* $hwlength -1.25} 2.25}
}
$hwlength
}
("+" "Reset" "-")
}
)
(SELECT_MSG
{local $list_data {($objId UIListCom) get_data_in_column token}}
{switch $list_data
("-"
{unless {> {+ $hwlength 0.05} 2.54}
{set $hwlength {+ $hwlength 0.05}}
}
{if_else {< $hwlength 0.74}
{if {dx_file_exists "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4"}
{dx_file_rename "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4" "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4"}
}
{if {dx_file_exists "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4"}
{dx_file_rename "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4" "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4"}
}
}
{$this setup_confirm_actions
{sprintf
"Highway Length: %.2fX"
{if_else {> $hwlength 1}
{+ {* $hwlength -0.333333333333333} 1.333333333333333}
{+ {* $hwlength -1.25} 2.25}
}
}
("+" "Reset" "-")
}
)
("Reset"
{set $hwlength 1}
{if {dx_file_exists "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4"}
{dx_file_rename "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4" "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4"}
}
{$this setup_confirm_actions
{sprintf
"Highway Length: %.2fX"
{if_else {> $hwlength 1}
{+ {* $hwlength -0.333333333333333} 1.333333333333333}
{+ {* $hwlength -1.25} 2.25}
}
}
("+" "Reset" "-")
}
)
("+"
{unless {< {- $hwlength 0.05} 0.56}
{set $hwlength {- $hwlength 0.05}}
}
{if_else {< $hwlength 0.74}
{if {dx_file_exists "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4"}
{dx_file_rename "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4" "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4"}
}
{if {dx_file_exists "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4"}
{dx_file_rename "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4" "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4"}
}
}
{$this setup_confirm_actions
{sprintf
"Highway Length: %.2fX"
{if_else {> $hwlength 1}
{+ {* $hwlength -0.333333333333333} 1.333333333333333}
{+ {* $hwlength -1.25} 2.25}
}
}
("+" "Reset" "-")
}
)

})
(on_cancel
{$this show_state kState_RB4DXTrkSettings}
{$this trigger_cancel_effects})
)

Expand Down
5 changes: 5 additions & 0 deletions _ark/ps4/dx/overshell/dx_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@
{if_else $micwarn "Hide Mic Warning: ON" "Hide Mic Warning: OFF"}
{if_else $trackangle "Custom Track Angle: ON" "Custom Track Angle: OFF"}
"Track Curvature"
"Highway Length"
)
}
)
Expand Down Expand Up @@ -829,6 +830,10 @@
{$this show_state kState_RB4DXTrackCurve}
{$this trigger_select_effects}
)
("Highway Length"
{$this show_state kState_RB4DXHighwayLength}
{$this trigger_select_effects}
)
("Track Theme"
{$this show_state kState_RB4DXTrackTheme}
{$this trigger_select_effects}
Expand Down
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 @@ -4,6 +4,7 @@
{set $dx_initialized TRUE}
{set $calibrationmode FALSE}
{set $track_curve 1}
{set $hwlength 1}
{set $autoplayexists {file_exists "data:/GoldHEN/plugins/RB4DX-Autoplay.prx"}}
{set $notifycolored {file_exists "notifycolored.ini"}}

Expand Down
6 changes: 6 additions & 0 deletions _ark/ps4/dx/ui/init_dev.dta
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,12 @@ UPDATE_SETTINGS
}
{dx_file_rename "/data/GoldHEN/RB4DX/ps4/ui/game/game.layout_ps4" "/data/GoldHEN/RB4DX/ps4/ui/game/game1.layout_ps4"}
}
{if {dx_file_exists "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4"}
{if {dx_file_exists "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4"}
{dx_file_delete "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4"}
}
{dx_file_rename "ps4/track/smasher/fretboard.fbx++mesh++fretboard_ps4" "ps4/track/smasher/fretboard1.fbx++mesh++fretboard_ps4"}
}

;clear invalid files
{if {dx_file_exists "ps4/track/shared/fx_noise_b_util.bmp_ps4"}
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion _ark/ps4/track/track_camera.script
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
)
(enter
{set [Transform z_scale] $track_curve}
;{set [Transform y_scale] 2} ; hw length, min 0.6, max ~25
{set [Transform y_scale] $hwlength} ; hw length, min 0.6, max ~25
)
Empty file.

0 comments on commit b4d0637

Please sign in to comment.