From ee17412dd23f12bde603ff9da034fabb95a36f4c Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sun, 11 Jun 2023 15:56:06 -0400 Subject: [PATCH] pull from Release 1 branch (#466) * Integration of Jukebox Library (#451) * add Jukebox library todo: - saving / loading of new format - inferrence of unknown data like past versions - move the temporary float casts to proper use of double - make sound related functions take double for timing - inform people that the Jukebox sound player was renamed to SoundByte lol * make sound, input scheduling, and super curve use double precision * successfully load charts * editor works again v1 riqs can be saved and loaded * first tempo and volume markers are unmovable fix loading of charts' easing values * use gsync / freesync * update Jukebox refs to SoundByte * game events use double part 1 Air Rally - Glee Club converted * don't load song if chart load fails * finish conversion of all minigames * remove editor waveform toggle * timeline now respects added song offset length clear cache files on app close prepped notes for dsp sync * update timeline length when offset changed * update to latest Jukebox * make error panel object in global game manager * improve conductor music scheduling * added error message box fix first game events sometimes not playing * editor fixes (#459) * ditch loading dialog doesn't show up when it's supposed to * format song offset in editor * remove VorbisPlugin * Update Editor.cs * make base datamodels for special entity reading (#463) * make base datamodels for special entity reading * fix crop stomp breaking when no game switch or remix end is set * fix save shortcut fix loading charts with no music * don't infer track when importing a v0 riq from another program --- Assets/Scripts/Minigames.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Assets/Scripts/Minigames.cs b/Assets/Scripts/Minigames.cs index 103d0326..3006fe06 100644 --- a/Assets/Scripts/Minigames.cs +++ b/Assets/Scripts/Minigames.cs @@ -166,6 +166,13 @@ namespace HeavenStudio var parameters = new List(); foreach (var item in e.dynamicData) { + Debug.Log($"k: {item.Key}, v: {item.Value}"); + if (item.Key == "track") + continue; + if (item.Value == null) + { + e[item.Key] = 0; + } var value = item.Value; if (value.GetType() == typeof(long)) value = new EntityTypes.Integer(int.MinValue, int.MaxValue, (int)value); @@ -245,6 +252,10 @@ namespace HeavenStudio { PreProcessSpecialEntity(tempo, tempoChangeModel); } + if (data.tempoChanges[0]["tempo"] <= 0) + { + data.tempoChanges[0]["tempo"] = 120; + } foreach (var vol in data.volumeChanges) {