From 8eea01aa7426ae11c4a7d22f83a109aacb2f2f14 Mon Sep 17 00:00:00 2001 From: Luna <37005649+lunalawl@users.noreply.github.com> Date: Fri, 5 Apr 2024 23:48:29 -0700 Subject: [PATCH] the rb1 --- rb1/_ark/config/band.dta | 5 +- rb1/_ark/dx/dx_macros.dta | 20 + rb1/_ark/ui/game.dta | 493 +++++++++++++++++ rb1/_ark/ui/main.dta | 1 + rb1/_ark/ui/options.dta | 20 +- rb1/_ark/ui/practice.dta | 885 +++++++++++++++++++++++++++++++ rb1/_build/ps3/USRDIR/config.dta | 2 +- 7 files changed, 1413 insertions(+), 13 deletions(-) create mode 100644 rb1/_ark/dx/dx_macros.dta create mode 100644 rb1/_ark/ui/game.dta create mode 100644 rb1/_ark/ui/practice.dta diff --git a/rb1/_ark/config/band.dta b/rb1/_ark/config/band.dta index ff519d7..794bcc1 100644 --- a/rb1/_ark/config/band.dta +++ b/rb1/_ark/config/band.dta @@ -1,4 +1,5 @@ #include macros.dta +#include ../dx/dx_macros.dta (mem #include mem.dta) (content_mgr @@ -70,8 +71,8 @@ #include synth.dta) (joypad (ignore) - (hold_ms 1000) - (repeat_ms 80) + (hold_ms 300) + (repeat_ms 50) (midi_joypad (disable FALSE)) (controller_mapping diff --git a/rb1/_ark/dx/dx_macros.dta b/rb1/_ark/dx/dx_macros.dta new file mode 100644 index 0000000..7b62690 --- /dev/null +++ b/rb1/_ark/dx/dx_macros.dta @@ -0,0 +1,20 @@ +#define INIT_DTA_READER +( + {set $dxsettings {read_file #ifdef HX_XBOX "GAME:/config.dta" #endif #ifdef HX_PS3 "GD:/dev_hdd0/game/BLUS30050/USRDIR/config.dta" #endif}} + {foreach $entry $dxsettings + {if {== {elem $entry 0} {basename venue_fps}} + {set $emulatefps + {elem {find $entry venue_fps} 1} + } + } + } +) + +#define DX_FPS_SETUP +( + {if {!= $emulatefps 24} {{$world iterate PostProc $p {$p set emulate_fps $emulatefps}}} + {if {>= {$emulatefps 25} {$char iterate CharHair $hair {$hair reset 35}} + {$world iterate WorldDir $wd {$wd iterate BandCamShot $bcs + {foreach $property (shake_noisefreq shake_noiseamp) {$bcs set (keyframes $i $property) {'*' {$bcs get (keyframes $i $property)} 0.25}}} + {foreach $component (x y) {$bcs set (keyframes $i shake_maxangle $component) {'*' {$bcs get (keyframes $i shake_maxangle $component)} 0.25}}}}}}}} +) \ No newline at end of file diff --git a/rb1/_ark/ui/game.dta b/rb1/_ark/ui/game.dta new file mode 100644 index 0000000..1b926c9 --- /dev/null +++ b/rb1/_ark/ui/game.dta @@ -0,0 +1,493 @@ +#include track_panel.dta +#include mtv_overlay.dta +#define LOSE_MUSIC_SLOW_SEC +(2) +{new + GamePanel + game + (file + "") + (reset + {events_parser add_sink $this}) + (coda + {if_else + {&& + {game want_coda} + {game is_playing}} + {do + {beatmatch + foreach_active_player + $p + {handle + ($p enter_coda)}} + kDataUnhandled} + 0}) + (pick_intro + {{gamemode get game_screen} + check_session_state} + {if_else + {&& + [intro_shot] + {! $skip_intro}} + {do + {beatmatch + set_intro_real_time + {- + {[intro_shot] + duration_seconds}}} + {handle + ($this intro_start)}} + {handle + ($this intro_skip)}}) + (intro_start + {script_task + kTaskSeconds + (delay + {- + 0 + {taskmgr seconds}}) + (script + {handle + ($this on_extend)})} + {script_task + kTaskBeats + (delay + {- + {taskmgr beat}}) + (script + {handle + ($this intro_end)})} + kDataUnhandled) + (intro_skip + {$this start_game} + kDataUnhandled) + (music_start + {ui music_start} + kDataUnhandled) + (beat + {if + $debug.beep + {synth play click}} + kDataUnhandled) + (excitement + ($ex) + {if + {gamemode get crowd_reacts} + {do + ($levels + (excitement_boot excitement_bad excitement_okay excitement_great excitement_peak)) + {if + {< $ex kNumExcitements} + {handle + ($this + {elem $levels $ex})}}}} + kDataUnhandled) + (game_over + {stagekit_reset} + {beatmatch + foreach_active_player + $p + {$p on_game_over}} + kDataUnhandled) + (game_won_common + {beatmatch set_realtime TRUE} + {beatmatch set_paused TRUE} + {synth play track_end.cue}) + (game_won + {$this game_won_common} + kDataUnhandled) + (game_won_band0 + {$this game_won_common} + kDataUnhandled) + (game_won_band1 + {$this game_won_common} + kDataUnhandled) + (game_won_tie + {$this game_won_common} + kDataUnhandled) + (game_lost + {beatmatch set_realtime TRUE} + {script_task + kTaskBeats + (delay LOSE_MUSIC_SLOW_SEC) + (script + {do + {beatmatch set_paused TRUE}})} + kDataUnhandled) + (game_outro + {synth stop_all_sfx} + {band_ui_sink + sync_screen + {gamemode + get + {if_else + {$this lost} + lose_screen + win_screen}} + 1} + kDataUnhandled) + (on_pause + ($player_num) + {do + {if + {&& + {! + {ui in_transition}} + {!= + pause_screen + {ui current_screen}} + {gamecfg is_player_participating $player_num} + {! + {game is_game_over}} + {== + {session state} + kNetInGame} + {beatmatch player $player_num} + {{beatmatch player $player_num} + can_pause} + {!= + {gamemode get pause_screen} + ''}} + {pause_panel set player_number $player_num} + {drum_trainer_pause_panel set player_number $player_num} + {band_ui_sink set_net_sync FALSE} + {ui + push_screen + {gamemode get pause_screen}}}})} +{new + UIPanel + world_panel + (file + {sprint + "../world/" + {game get_venue_dir} + "/" + {game get_venue} + "/" + {game get_venue} + ".milo"}) + (load + {char_cache world_configure_characters} + {game load_crowd_audio}) + (is_loaded + {char_cache compression_done}) + (finish_load + {char_cache + light_characters + {$this loaded_dir}} + {crowd_audio post_load}) + (hide_frames 0) + (exit + {set + [hide_frames] + 2} + {$this set_showing FALSE}) + (poll + {if + [hide_frames] + {-- + [hide_frames]} + {unless + [hide_frames] + {$this set_showing TRUE}}}) + (unload + #ifndef HX_PC + {rnd suspend} + #endif + {preload_panel clear_cache} + {char_cache reclaim_characters} + {game unload_crowd_audio} + {set + [hide_frames] + 0} + {$this set_showing TRUE})} +#define GAME_SCREEN_HANDLERS +((disable_screen_saver TRUE) + (delayed_mic_check FALSE) + (JOYPAD_CONNECT_MSG + {$this check_lost_controller}) + (check_lost_controller + {if_else + {&& + {== + {ui current_screen} + {gamemode get game_screen}} + {! + {ui in_transition}} + {! + {band_ui_sink check_controllers FALSE}} + {== + {session state} + kNetInGame}} + {do + {band_ui_sink set_net_sync FALSE} + {ui push_screen pause_controller_screen} + TRUE} + FALSE}) + (microphones_changed + ($vocalists_mic_changed) + {if + $vocalists_mic_changed + {$this pause_for_mic_check}}) + (pause_for_mic + {set + [delayed_mic_check] + FALSE} + {band_ui_sink set_net_sync FALSE} + {ui push_screen pause_mics_screen}) + (pause_for_mic_check + {if + {&& + {! + {ui in_transition}} + {! + {game is_game_over}}} + {if_else + {game paused} + {set + [delayed_mic_check] + TRUE} + {$this pause_for_mic}}}) + (enter + INIT_DTA_READER + DX_FPS_SETUP + {set + [delayed_mic_check] + FALSE} + {rnd set_in_game TRUE} + {session add_sink $this start_game_msg} + {session add_sink $this start_loading_msg} + {platform_mgr add_sink $this ui_changed} + {if + $multi_event + {coop_track_panel set_paused FALSE} + {coop_track_panel reload} + {char_cache + iterate + $char + {$char enter_multi_event}} + {$world enter} + {set $multi_event FALSE}} + {game + foreach_local_player_config + $pcfg + {do + ($player_num + {$pcfg get player_num}) + {profile_mgr update_vocal_volume $player_num} + {profile_mgr update_mic_gain $player_num}}} + {handle + ($this my_enter)}) + (exit + {session remove_sink $this start_game_msg} + {session remove_sink $this start_loading_msg} + {platform_mgr remove_sink $this ui_changed} + {synth stop_playback_all_mics}) + (UI_CHANGED_MSG + {$this on_guide_change}) + (player_missing_mic + {do + ($ret FALSE) + ($player_num) + {game + foreach_local_player + $p + {set + $player_num + {$p player_num}} + {if + {&& + {!= $player_num -1} + {game is_player_participating $player_num} + {== + {{gamecfg get_player_config $player_num} + get_track_sym} + vocals} + {== + {gamecfg debug_get_force_controller $player_num} + kControllerNone} + {! + {synth + is_mic_connected + {joypad_get_players_padnum $player_num}}}} + {set $ret TRUE}}} + $ret}) + (TRANSITION_COMPLETE_MSG + {if + $game_unpause_on_enter + {game set_paused FALSE} + {set $game_unpause_on_enter FALSE}} + {if + {! + {$this check_lost_controller}} + {unless + $fake_controllers + {if + {'||' + {synth did_mics_change} + {$this player_missing_mic}} + {$this pause_for_mic_check}}}}) + (check_session_state + {switch + {session state} + (kNetInLobby + {game set_paused_except_crowd_audio TRUE} + {session set_all_local_ready_status TRUE}) + (kNetLoading + {game set_paused_except_crowd_audio TRUE} + {session done_loading}) + (kNetInGame + {game set_paused FALSE})}) + (start_game_msg + {game set_paused FALSE} + {if + {! + {$this check_lost_controller}} + {$this on_guide_change}}) + (start_loading_msg + {session done_loading}) + (on_guide_change + {if + {&& + {ui current_screen} + {== + {ui current_screen} + $this} + {== + {session mode} + kNetLocal}} + {game + set_paused + {platform_mgr guide_showing}}} + {if + {&& + {! + {platform_mgr guide_showing}} + [delayed_mic_check]} + {$this pause_for_mic}})) +{new + UIScreen + game_screen + (panels game world_panel coop_track_panel mtv_overlay) + GAME_SCREEN_HANDLERS} +{new + UIScreen + hth_game_screen + (panels game world_panel hth_track_panel mtv_overlay) + GAME_SCREEN_HANDLERS} +{new + UIScreen + vocal_test_screen + (panels) + (enter + {content_mgr start_refresh} + {set + [waiting] + TRUE}) + (poll + {if + {&& + [waiting] + {content_mgr refresh_done}} + {set + [waiting] + FALSE} + {ui goto_screen vocal_test_game_screen}}) + (waiting TRUE)} +{new + UIScreen + vocal_test_game_screen + (panels game coop_track_panel mtv_overlay) + GAME_SCREEN_HANDLERS} +{func + set_weights_song + ($sym) + {if_else + {has_substr + $sym + "_short"} + {do + ($song) + {search_replace + $sym + "_short" + "" + $song} + {set + $song + {symbol $song}} + {set $force_song_block song_vocals} + {game set_song $song}} + {do + {set $force_song_block song} + {game set_song $sym}}}} +{new + UIScreen + gen_weights_start_screen + (panels) + (enter + {content_mgr start_refresh} + {set + [waiting] + TRUE}) + (poll + {if + {&& + [waiting] + {content_mgr refresh_done}} + {set + [waiting] + FALSE} + {set $gen_weights_idx 0} + {set_weights_song + {elem + (GEN_WEIGHTS_SONGS) + $gen_weights_idx}} + {print + "GENERATING WEIGHTS FOR " + {elem + (GEN_WEIGHTS_SONGS) + $gen_weights_idx} + "\n"} + {ui goto_screen gen_weights_game_screen}}) + (waiting TRUE)} +{new + UIScreen + gen_weights_advance_screen + (panels coop_track_panel mtv_overlay) + (enter + {coop_track_panel exit} + {coop_track_panel set_paused TRUE} + {set_weights_song + {elem + (GEN_WEIGHTS_SONGS) + $gen_weights_idx}} + {print + "GENERATING WEIGHTS FOR " + {elem + (GEN_WEIGHTS_SONGS) + $gen_weights_idx} + "\n"} + {ui goto_screen gen_weights_game_screen})} +{new + UIScreen + gen_weights_game_screen + (panels game coop_track_panel mtv_overlay) + GAME_SCREEN_HANDLERS + (gen_weights_done + {'++' $gen_weights_idx} + {if_else + {== + $gen_weights_idx + {size + (GEN_WEIGHTS_SONGS)}} + {ui goto_screen gen_weights_done_screen} + {ui goto_screen gen_weights_advance_screen}})} +{new + UIScreen + gen_weights_done_screen + (panels) + (enter + {print + "\n\nWEIGHTS GENERATION DONE!\n"} + {exit})} \ No newline at end of file diff --git a/rb1/_ark/ui/main.dta b/rb1/_ark/ui/main.dta index 1ff276b..84b96d7 100644 --- a/rb1/_ark/ui/main.dta +++ b/rb1/_ark/ui/main.dta @@ -9,6 +9,7 @@ (movie_done {ui goto_screen intro_to_splash_screen}) (enter + {profile_mgr set_overscan TRUE} {platform_mgr disable_xmp} kDataUnhandled) (BUTTON_DOWN_MSG diff --git a/rb1/_ark/ui/options.dta b/rb1/_ark/ui/options.dta index b38f4fd..490f4bf 100644 --- a/rb1/_ark/ui/options.dta +++ b/rb1/_ark/ui/options.dta @@ -1049,23 +1049,23 @@ (TRANSITION_COMPLETE_MSG {autoload})} {func - increment_to_5mult + increment_to_1mult ($value) {'*' {'+' {floor - {/ $value 5.0}} + {/ $value 1.0}} 1} - 5}} + 1}} {func - decrement_to_5mult + decrement_to_1mult ($value) {'*' {- {ceil - {/ $value 5.0}} + {/ $value 1.0}} 1} - 5}} + 1}} {new AudioLatencyPanel calibrate_av_chooser_manual_panel @@ -1177,12 +1177,12 @@ ((kPad_DUp kPad_DRight) {$this set_latency - {increment_to_5mult + {increment_to_1mult {profile_mgr get_song_to_taskmgr_ms_ui}}}) ((kPad_DDown kPad_DLeft) {$this set_latency - {decrement_to_5mult + {decrement_to_1mult {profile_mgr get_song_to_taskmgr_ms_ui}}}) kDataUnhandled}) (SELECT_MSG @@ -1767,12 +1767,12 @@ ((kPad_DDown kPad_DLeft) {$this set_lag - {decrement_to_5mult + {decrement_to_1mult {profile_mgr get_sync_offset_ui}}}) ((kPad_DUp kPad_DRight) {$this set_lag - {increment_to_5mult + {increment_to_1mult {profile_mgr get_sync_offset_ui}}}) kDataUnhandled}) (SELECT_MSG diff --git a/rb1/_ark/ui/practice.dta b/rb1/_ark/ui/practice.dta new file mode 100644 index 0000000..3d690ea --- /dev/null +++ b/rb1/_ark/ui/practice.dta @@ -0,0 +1,885 @@ +{new + UIPanel + practice_lower3rd_panel + (file + "practice_lower3rd.milo")} +{new + SessionPanel + practice_mode_panel + (enter + {gamecfg set practice_mode TRUE}) + (exit + {gamecfg set practice_mode FALSE})} +{new + PracticeBackgroundPanel + practice_background_panel + (file + "practice_space.milo") + (enter + {logo.mesh set_showing FALSE}) + (select_camera_shot + {set + $player_num + {gamecfg get leader_num}} + {set + $pcfg + {gamecfg get_player_config $player_num}} + {switch + {$pcfg get_controller_type} + (kControllerVocals + {$this + select_cam + "vocals.shot"}) + (kControllerDrum + {$this + select_cam + "drums.shot"}) + (kControllerGuitar + {$this + select_cam + "guitar.shot"})})} +{new + UIPanel + practice_selsong_panel + (file + "qp_selsong.milo") + (song_mode practice) + (force_exit FALSE) + COMMON_SONG_SELECT} +{new + UIScreen + practice_selsong_screen + (panels postsong_sfx_panel meta movie_panel practice_selsong_panel selsong_lower3rd_panel practice_mode_panel helpbar) + (focus practice_selsong_panel) + (sel_song_career FALSE) + (helpbar + (back select helpbar_songfilter))} +{new + PreloadPanel + practice_preload_panel + (content_name + "") + (corrupt FALSE) + (enter + {if_else + [preload_ok] + {ui goto_screen practice_pre_sel_section_screen} + {band_ui_sink + content_file_read_failed + [content_name] + [corrupt]}})} +{new + UIScreen + practice_preloading_screen + (panels meta movie_panel practice_preload_panel) + (focus practice_preload_panel)} +{new + UIScreen + practice_pre_sel_section_screen + (panels meta movie_panel) + (enter + {do + ($player_num + {gamecfg get leader_num}) + ($pcfg + {gamecfg get_player_config $player_num}) + {switch + {$pcfg get_controller_type} + (kControllerVocals + {practice_panel set_in_vocal_mode FALSE}) + (kControllerDrum + {practice_panel set_in_vocal_mode FALSE}) + (kControllerGuitar + {practice_panel set_in_vocal_mode FALSE})}} + {if_else + {practice_panel in_vocal_mode} + {do + {gamecfg set_section 0 -1} + {gamecfg set_section 1 -1} + {practice_section_provider set_start_section -1} + {practice_section_provider init_sections} + {gamecfg set practice_speed 0} + {ui goto_screen practice_loading_screen}} + {do + {ui goto_screen practice_sel_section_screen}}})} +{new + MultiSelectListPanel + practice_sel_section_panel + (file practice_sel_section.milo) + (focus sel_section.lst) + (enter + {gamecfg set_section 0 -1} + {gamecfg set_section 1 -1} + {sel_section.lst set_provider practice_section_provider} + {set + [section] + 0} + {platform_mgr disable_xmp} + {title.lbl + set_localized + {localize practice_select_start}} + {$this play_preview}) + (exit + {song_preview ''} + {platform_mgr enable_xmp}) + (SELECT_START_MSG + {do + ($idx + {- + {sel_section.lst selected_pos} + 1}) + {synth play button_select} + {if_else + [section] + {do + {gamecfg set_section 1 $idx} + {ui goto_screen practice_sel_speed_screen} + kDataUnhandled} + {if_else + {== $idx -1} + {do + {gamecfg set_section 0 -1} + {gamecfg set_section 1 -1} + {ui goto_screen practice_sel_speed_screen} + kDataUnhandled} + {do + {gamecfg set_section 0 $idx} + {title.lbl + set_localized + {localize practice_select_end}} + {set + [section] + 1} + {practice_section_provider set_start_section $idx} + kDataUnhandled}}}}) + (SCROLL_MSG + {$this play_preview}) + (BUTTON_DOWN_MSG + {cond + ({&& + {== $button kPad_Tri} + {== + [section] + 0}} + {synth play button_back} + {ui goto_screen qp_seldiff_solo_screen} + TRUE) + ({&& + {== $button kPad_Tri} + {== + [section] + 1}} + {synth play button_back} + {set + [section] + 0} + {practice_section_provider set_start_section -1} + {title.lbl + set_localized + {localize practice_select_start}} + {$this un_choose} + TRUE) + (TRUE kDataUnhandled)} + kDataUnhandled) + (play_preview + {set + $sec + {- + {sel_section.lst selected_pos} + 1}} + {set + $start + {practice_section_provider get_section_start_ms $sec}} + {set + $end + {practice_section_provider get_section_end_ms $sec}} + {set + $start + {- $start 500.0}} + {if + {< $start 0.0} + {set $start 0.0}} + {song_preview + {game get_song} + $start + $end}) + (allow_player + ($player_num) + {game is_player_participating $player_num}) + (section 0)} +{new + UIScreen + practice_sel_section_screen + (panels meta postsong_sfx_panel movie_panel practice_sel_section_panel practice_mode_panel practice_lower3rd_panel helpbar) + (focus practice_sel_section_panel) + (helpbar + (back select))} +{new + UIPanel + sel_speed_panel + (file sel_speed.milo) + (focus speed0.btn) + (enter + {session add_sink $this start_loading_msg}) + (exit + {session remove_sink $this start_loading_msg}) + (SELECT_START_MSG + {switch + $component + (speed0.btn + {gamecfg set practice_speed 0}) + (speed1.btn + {gamecfg set practice_speed 2}) + (speed2.btn + {gamecfg set practice_speed 4}) + (speed3.btn + {gamecfg set practice_speed 6}) + (speed4.btn + {gamecfg set practice_speed 8}) + (speed5.btn + {gamecfg set practice_speed 10})} + {{gamecfg + get_player_config + {gamecfg get leader_num}} + set_ready + TRUE}) + (allow_player + ($player_num) + {game is_player_participating $player_num}) + (start_loading_msg + {gamecfg set_active_roster TRUE} + {ui goto_screen practice_loading_screen})} +{new + UIScreen + practice_sel_speed_screen + (panels meta postsong_sfx_panel movie_panel sel_speed_panel practice_mode_panel practice_lower3rd_panel helpbar) + (focus sel_speed_panel) + (back practice_sel_section_screen) + (allow_player + ($player_num) + {game is_player_participating $player_num})} +{new + UIScreen + practice_loading_screen + (panels loading_panel practice_mode_panel) + (allow_back FALSE) + (animate_transition FALSE) + (enter + {ui + goto_screen + {gamemode get game_screen}}) + (exit)} +{new + Object + percentage_callback + (hit + {$this update_percentage}) + (miss + {$this update_percentage}) + (pass + {$this update_percentage}) + (update_percentage + {set + $slot + {gamecfg + get_slot_num_from_player_num + {gamecfg get leader_num}}} + {set + [percent] + {{beatmatch active_player 0} + percent_hit_gems_practice + $slot + [startMs] + [endMs]}} + {if + {> + [percent] + 100.0} + {set + [percent] + 100.0}} + {practice_panel + set_hit_percent + [percent]}) + (reset + ($startMs $endMs) + {set + [startMs] + $startMs} + {set + [endMs] + $endMs} + {set + [percent] + 0.0} + {set + [total] + 0.0} + {set_elem + [rating_count] + 0 + 0.0} + {set_elem + [rating_count] + 1 + 0.0} + {set_elem + [rating_count] + 2 + 0.0} + {set_elem + [rating_count] + 3 + 0.0} + {set_elem + [rating_count] + 4 + 0.0}) + (phrase_rating + ($rating) + {set + $val + {elem + [rating_count] + $rating}} + {'+=' $val 1.0} + {set_elem + [rating_count] + $rating + $val} + {'+=' + [total] + 1.0}) + (percent 0.0) + (startMs 0.0) + (endMs 0.0) + (total 0.0) + (rating_count + (0.0 0.0 0.0 0.0 0.0))} +{new + Object + countoff_callback + (beat + {if + {'||' + [enabled] + {gamecfg get practice_speed}} + {synth play click} + {'++' + [count]} + {if + {> + [count] + 3} + {set + [enabled] + FALSE}}}) + (reset + {set + [enabled] + TRUE} + {set + [count] + 0}) + (enabled TRUE) + (count 0)} +{new + PracticePanel + practice_panel + (file practice_panel.milo) + (jump_frame FALSE) + (enter + {events_parser add_sink $this section} + {game add_sink $this game_won} + {{coop_track_panel find tutorial_setup.trig} + trigger} + {{beatmatch active_player 0} + set_crowd_rating_active + FALSE} + {$this update} + {{beatmatch active_player 0} + add_sinks + percentage_callback + hit + miss + pass + phrase_rating} + {$world add_sinks countoff_callback beat} + {set + $p_speed + {gamecfg get practice_speed}} + {set + $modifier + {elem + [speed_modifier] + $p_speed}} + {beatmatch set_music_speed $modifier} + {'*=' $modifier 100.0} + {$this set_speed_percent $modifier} + {gamecfg + get_section_bounds + {gamecfg get_section 0} + $start_ms + $end_ms} + {gamecfg + get_section_bounds + {gamecfg get_section 1} + $start_ms2 + $end_ms2} + {percentage_callback reset $start_ms $end_ms2} + {countoff_callback reset} + {set + [best_percent] + 0.0} + {game add_sink $this} + {if_else + {$this in_vocal_mode} + {do + {hide_speed.trig trigger}} + {do + {show_speed.trig trigger}}} + {set + [best_percent] + -1.0} + {$this set_best_percent 0.0} + {practice_game_screen set jump_delay 130} + {practice_background_panel select_camera_shot} + {$this jump_to_start}) + (jump_to_start + {if + {! + {$this in_vocal_mode}} + {section.lbl set_localized ''} + {set + $player + {beatmatch active_player 0}} + {set + $track + {$player track}} + {$track practice_reset} + {gamecfg + get_section_bounds + {gamecfg get_section 0} + $start_ms + $end_ms} + {gamecfg + get_section_bounds + {gamecfg get_section 1} + $start_ms2 + $end_ms2} + {percentage_callback reset $start_ms $end_ms2} + {countoff_callback reset} + {$this set_hit_percent 0.0} + {set $begin_ms $start_ms} + {-= + $start_ms + {'*' + 4.0 + {beatmatch ms_per_beat}}} + {if + {<= $start_ms 0.0} + {set $start_ms 0.0}} + {practice_game_screen set already_ended FALSE} + {{coop_track_panel find ending_bonus} + reset} + {{coop_track_panel find ending_bonus.tnm} + set_frame + 0} + {beatmatch jump $start_ms} + {beatmatch start} + {set + [jump_frame] + TRUE}}) + (BUTTON_DOWN_MSG + {if + {! + {$this in_vocal_mode}} + {if + {== $button kPad_DRight} + {$this inc_speed}} + {if + {== $button kPad_DLeft} + {$this dec_speed}}}) + (inc_speed + {set + $p_speed + {gamecfg get practice_speed}} + {if + {> $p_speed 0} + {-- $p_speed} + {set + $modifier + {elem + [speed_modifier] + $p_speed}} + {beatmatch set_music_speed $modifier} + {'*=' $modifier 100.0} + {practice_panel set_speed_percent $modifier} + {gamecfg set practice_speed $p_speed}}) + (dec_speed + {set + $p_speed + {gamecfg get practice_speed}} + {if + {< $p_speed 19} + {'++' $p_speed} + {set + $modifier + {elem + [speed_modifier] + $p_speed}} + {beatmatch set_music_speed $modifier} + {'*=' $modifier 100.0} + {practice_panel set_speed_percent $modifier} + {gamecfg set practice_speed $p_speed}}) + (update + {if + {! + [keep_section_text]} + {section.lbl set_localized ''}} + {set + [keep_section_text] + FALSE}) + (poll + {if + [jump_frame] + {$track practice_reset} + {set + [jump_frame] + FALSE}}) + (exit + {events_parser remove_sink $this} + {game remove_sink $this} + {{beatmatch active_player 0} + remove_sink + percentage_callback} + {$world remove_sink countoff_callback beat} + {{beatmatch active_player 0} + remove_sink + percentage_callback}) + (midi_parser + ($msg) + {$this $msg}) + (section + ($sec) + {set + $text + {localize $sec FALSE}} + {if + {== $text ''} + {set $text $sec}} + {section.lbl + set_localized + {if_else + {== + $text + [ignore_section]} + '' + $text}}) + (set_hit_percent + ($percentage) + {hit_percent.lbl + set_localized + {sprintf + {localize practice_percent_format} + $percentage}}) + (set_speed_percent + ($percentage) + {speed_percent.lbl + set_localized + {sprintf + {localize practice_speed_percent} + $percentage}} + {set + $ratio + {/ 100.0 $percentage}} + {practice_panel set_pitch_shift_ratio $ratio}) + (set_best_percent + ($percentage) + {if + {> + $percentage + [best_percent]} + {set + [best_percent] + $percentage} + {best_percent.lbl + set_localized + {sprintf + {localize practice_percent_format} + $percentage}}}) + (pause + {beatmatch set_time_paused TRUE} + {game set_paused TRUE} + {synth pause_all_sfx TRUE}) + (unpause + {beatmatch set_time_paused FALSE} + {game set_paused FALSE} + {synth pause_all_sfx FALSE}) + (keep_section_text FALSE) + (ignore_section '') + (speed_modifier + (1.0 0.95 0.9 0.85 0.8 0.75 0.7 0.65 0.6 0.55 0.5 0.45 0.4 0.35 0.3 0.25 0.2 0.15 0.1 0.05)) + (best_percent 0.0)} +#define PRACTICE_PANELS +(game practice_background_panel practice_panel coop_track_panel) +{new + UIScreen + practice_game_screen + (panels practice_mode_panel PRACTICE_PANELS) + (allow_back FALSE) + (animate_transition FALSE) + (in_game TRUE) + (focus practice_panel) + GAME_SCREEN_HANDLERS + (BUTTON_DOWN_MSG + {do + ($track_sym + {{game get_player_config $player_num} + get_track_sym}) + ($my_player + {beatmatch player $player_num}) + {if + {&& + {== $button kPad_Start} + {!= none $track_sym} + {! + {game is_game_over}} + {== + {session state} + kNetInGame} + $my_player + {$my_player can_pause}} + {pause_panel set player_number $player_num} + {drum_trainer_pause_panel set player_number $player_num} + {band_ui_sink set_net_sync FALSE} + {ui + push_screen + {gamemode get pause_screen}}} + {if {&& {== $button kPad_Select} {session end_game kRestart}}}} + kDataUnhandled) + (poll + {if + {== + {ui current_screen} + $this} + {{beatmatch active_player 0} + set_crowd_rating + 0.66} + {set + $sec0 + {gamecfg get_section 0}} + {gamecfg get_section_bounds_tick $sec0 $start0 $end0} + {set + $sec + {gamecfg get_section 1}} + {gamecfg get_section_bounds_tick $sec $start $end} + {set + $curr + {taskmgr total_tick}} + {set + $loop_point + {'+' $end 2000.0}} + {if + {> + [jump_delay] + 0} + {-- + [jump_delay]}} + {if + {<= + [jump_delay] + 0} + {if_else + {> $curr $loop_point} + {do + {practice_panel jump_to_start} + {practice_panel + fade_song_in + {/ + {'*' + 4.0 + {beatmatch ms_per_beat}} + 1000.0}} + {set + [jump_delay] + 10} + {set + [already_ended] + FALSE}} + {do + {if + {> $curr $end} + {if_else + {practice_panel in_vocal_mode} + {ui push_screen practice_vocal_end_screen} + {$this end_play}}}}}}}) + (end_play + {if + {! + [already_ended]} + {practice_panel + set_best_percent + {percentage_callback get percent}} + {set + $player + {beatmatch active_player 0}} + {set + $track + {$player track}} + {$track practice_track_out} + {practice_panel fade_song_out 1.5} + {set + [already_ended] + TRUE}}) + (jump_delay 10) + (first_poll TRUE) + (already_ended FALSE)} +{new + UIPanel + practice_pause_panel + (file practice_pause.milo) + (enter + {$this set_focus resume.btn} + {if_else + {practice_panel in_vocal_mode} + {do + {selsection.btn set_showing FALSE} + {sel_vocal_mode.btn set_showing TRUE} + {restart.btn set nav_down sel_vocal_mode.btn} + {$this set_vocal_mode_text}} + {do + {selsection.btn set_showing FALSE} + {sel_vocal_mode.btn set_showing FALSE} + {restart.btn set nav_down selsection.btn}}}) + (set_vocal_mode_text + {set + $player_num + {gamecfg get leader_num}} + {set + $options + {profile_mgr get_char_options_from_player $player_num}} + {set + $vocal_style + {{profile_mgr get_char_options_from_player $player_num} + get_vocal_style}} + {if_else + $vocal_style + {sel_vocal_mode.btn + set_localized + {localize practice_vocalstyle_scrolling}} + {sel_vocal_mode.btn + set_localized + {localize practice_vocalstyle_static}}})} +{new + UIScreen + practice_pause_screen + (panels practice_pause_panel) + (focus practice_pause_panel) + (allow_back FALSE) + (animate_transition FALSE) + (enter + {practice_panel pause}) + (exit + {practice_panel unpause}) + (resume_practice + {ui + pop_screen + {gamemode get game_screen}}) + (restart_practice + {ui pop_screen practice_loading_screen}) + (quit_practice + {ui + pop_screen + {gamemode get quit_screen}}) + (select_section + {ui pop_screen practice_sel_section_screen}) + (swap_vocal_mode + {set + $player_num + {gamecfg get leader_num}} + {set + $options + {profile_mgr get_char_options_from_player $player_num}} + {set + $vocal_style + {{profile_mgr get_char_options_from_player $player_num} + get_vocal_style}} + {$options + set_vocal_style + {! $vocal_style}} + {{game get_player $player_num} + update_vocal_style} + {practice_pause_panel set_vocal_mode_text}) + (SELECT_MSG + {switch + $component + (resume.btn + {$this resume_practice}) + (restart.btn + {$this restart_practice}) + (selsection.btn + {$this select_section}) + (sel_vocal_mode.btn + {$this swap_vocal_mode}) + (quit.btn + {$this quit_practice})} + kDataUnhandled) + (BUTTON_DOWN_MSG + {if + {== $button kPad_Start} + {$this resume_practice}} + kDataUnhandled)} +{new + UIPanel + practice_vocal_end_panel + (file practice_vocal_end.milo) + (enter + {$this set_focus restart.btn} + {foreach_int + $idx + 0 + 5 + {set + $frac + {/ + {elem + {percentage_callback get rating_count} + $idx} + {percentage_callback get total}}} + {{elem + [labels] + $idx} + set_localized + {sprintf + {localize vox_practice_percent} + {localize + {elem + [label_text] + $idx}} + {'*' $frac 100.0}}}}) + (labels + (01messy.lbl 02weak.lbl 03okay.lbl 04strong.lbl 05awesome.lbl)) + (label_text + ("vox_rating_0" + "vox_rating_1" + "vox_rating_2" + "vox_rating_3" + "vox_rating_4"))} +{new + UIScreen + practice_vocal_end_screen + (panels practice_vocal_end_panel) + (focus practice_vocal_end_panel) + (allow_back FALSE) + (animate_transition FALSE) + (SELECT_MSG + {switch + $component + (restart.btn + {gamemode on_pause_restart}) + (quit.btn + {ui + pop_screen + {gamemode get quit_screen}})} + kDataUnhandled)} \ No newline at end of file diff --git a/rb1/_build/ps3/USRDIR/config.dta b/rb1/_build/ps3/USRDIR/config.dta index a4d2c38..2345a29 100644 --- a/rb1/_build/ps3/USRDIR/config.dta +++ b/rb1/_build/ps3/USRDIR/config.dta @@ -3,5 +3,5 @@ ; Venue FPS (Default: 24, can go up to 60) (venue_fps - (venue_fps 24) + (venue_fps 60) ) \ No newline at end of file