From 8929cd5618d253682848e66dfdabd24066661000 Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sun, 11 Jun 2023 15:52:14 -0400 Subject: [PATCH] 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) {