From 04d81514d1b47f020696f1aca9c1dd63c9534057 Mon Sep 17 00:00:00 2001 From: TheRealJake_12 <84357907+TheRealJake12@users.noreply.github.com> Date: Sun, 15 Dec 2024 15:10:10 -0600 Subject: [PATCH] major fixes switch to moonchart chart converter can convert the following with little issue - Legacy - Psych - Kade - VSlice (only 1 diff at a time) fixed middle scroll temporarily removed opponent mode because it's messy and I'm going to redo it fixed sustains not going transparent when missed --- .hxpkg | 69 +-- Project.xml | 1 + assets/shared/data/editors/charter.xml | 53 +- source/Init.hx | 1 + .../flixel/graphics/tile/FlxDrawQuadsItem.hx | 151 ----- source/import.hx | 10 +- source/kec/backend/PlayStateChangeables.hx | 4 +- source/kec/backend/Ratings.hx | 34 +- source/kec/backend/chart/ChartConverter.hx | 534 +++++------------- .../chart/{format/Modern.hx => ChartData.hx} | 4 +- .../kec/backend/chart/{format => }/Section.hx | 2 +- source/kec/backend/chart/Song.hx | 75 +-- source/kec/backend/chart/TimingStruct.hx | 4 +- source/kec/backend/chart/format/Legacy.hx | 24 - .../kec/backend/chart/format/LegacySection.hx | 12 - .../kec/backend/chart/format/PsychFormat.hx | 29 - source/kec/backend/lua/ModchartState.hx | 9 - source/kec/backend/tools/ArraySortTools.hx | 164 ++++++ source/kec/backend/tools/ArrayTools.hx | 106 ++++ source/kec/backend/tools/FloatTools.hx | 24 + source/kec/backend/tools/ICloneable.hx | 10 + source/kec/backend/tools/Int64Tools.hx | 43 ++ source/kec/backend/tools/IntTools.hx | 16 + source/kec/backend/tools/IteratorTools.hx | 35 ++ source/kec/backend/tools/MapTools.hx | 89 +++ .../StringTool.hx => tools/StringTools.hx} | 4 +- source/kec/backend/util/DiffCalc.hx | 4 +- source/kec/backend/util/FileDialogHandler.hx | 249 ++++++++ source/kec/backend/util/Paths.hx | 8 + source/kec/backend/util/smTools/SMFile.hx | 288 ---------- source/kec/backend/util/smTools/SMHeader.hx | 120 ---- source/kec/backend/util/smTools/SMMeasure.hx | 29 - source/kec/backend/util/smTools/SMNote.hx | 15 - source/kec/objects/Character.hx | 2 +- source/kec/objects/editor/EditorGrid.hx | 2 +- source/kec/objects/note/Note.hx | 76 +-- source/kec/objects/note/NoteSplash.hx | 2 +- source/kec/objects/note/StaticArrow.hx | 15 +- source/kec/objects/ui/HealthIcon.hx | 14 +- source/kec/states/FreeplayState.hx | 121 +--- source/kec/states/GameplayCustomizeState.hx | 87 +-- source/kec/states/MainMenuState.hx | 1 - source/kec/states/MusicBeatState.hx | 6 +- source/kec/states/PlayState.hx | 270 +++------ source/kec/states/SelectEditorsState.hx | 1 - source/kec/states/StoryMenuState.hx | 12 - .../states/editors/CharacterEditorState.hx | 1 + source/kec/states/editors/ChartingState.hx | 276 +++++---- source/kec/states/editors/StageDebugState.hx | 1 - source/kec/substates/GameOverSubstate.hx | 5 +- source/kec/substates/ResultsScreen.hx | 2 +- 51 files changed, 1343 insertions(+), 1771 deletions(-) delete mode 100644 source/flixel/graphics/tile/FlxDrawQuadsItem.hx rename source/kec/backend/chart/{format/Modern.hx => ChartData.hx} (88%) rename source/kec/backend/chart/{format => }/Section.hx (87%) delete mode 100644 source/kec/backend/chart/format/Legacy.hx delete mode 100644 source/kec/backend/chart/format/LegacySection.hx delete mode 100644 source/kec/backend/chart/format/PsychFormat.hx create mode 100644 source/kec/backend/tools/ArraySortTools.hx create mode 100644 source/kec/backend/tools/ArrayTools.hx create mode 100644 source/kec/backend/tools/FloatTools.hx create mode 100644 source/kec/backend/tools/ICloneable.hx create mode 100644 source/kec/backend/tools/Int64Tools.hx create mode 100644 source/kec/backend/tools/IntTools.hx create mode 100644 source/kec/backend/tools/IteratorTools.hx create mode 100644 source/kec/backend/tools/MapTools.hx rename source/kec/backend/{util/StringTool.hx => tools/StringTools.hx} (98%) create mode 100644 source/kec/backend/util/FileDialogHandler.hx delete mode 100644 source/kec/backend/util/smTools/SMFile.hx delete mode 100644 source/kec/backend/util/smTools/SMHeader.hx delete mode 100644 source/kec/backend/util/smTools/SMMeasure.hx delete mode 100644 source/kec/backend/util/smTools/SMNote.hx diff --git a/.hxpkg b/.hxpkg index 2a30b5a2..df26cbb7 100644 --- a/.hxpkg +++ b/.hxpkg @@ -1,68 +1 @@ -[ - { - "profile": "default", - "pkgs": [ - { - "name": "flixel" - }, - { - "name": "openfl" - }, - { - "name": "lime" - }, - { - "name": "flixel-tools" - }, - { - "name": "flixel-addons" - }, - { - "name": "flixel-text-input" - }, - { - "name": "hxcpp-debug-server" - }, - { - "name": "polymod", - "link": "https://github.com/swordcube/scriptless-polymod.git" - }, - { - "name": "hxvlc" - }, - { - "name": "hscript" - }, - { - "name": "hxdiscord_rpc", - "link": "https://github.com/MAJigsaw77/hxdiscord_rpc.git" - }, - { - "name": "haxeui-core", - "link": "https://github.com/haxeui/haxeui-core.git" - }, - { - "name": "haxeui-flixel", - "link": "https://github.com/haxeui/haxeui-flixel.git" - }, - { - "name": "hxcpp" - }, - { - "name": "thx.semver" - }, - { - "name": "thx.core", - "link": "https://github.com/fponticelli/thx.core.git" - }, - { - "name": "linc_luajit", - "link": "https://github.com/superpowers04/linc_luajit" - }, - { - "name": "hscript-improved", - "link": "https://github.com/FNF-CNE-Devs/hscript-improved.git" - } - ] - } -] \ No newline at end of file +[{"profile":"default","pkgs":[{"name":"flixel"},{"name":"openfl"},{"name":"lime"},{"name":"flixel-tools"},{"name":"flixel-addons"},{"name":"flixel-text-input"},{"name":"hxcpp-debug-server"},{"name":"polymod","link":"https://github.com/swordcube/scriptless-polymod.git"},{"name":"hxvlc"},{"name":"hscript"},{"name":"hxdiscord_rpc","link":"https://github.com/MAJigsaw77/hxdiscord_rpc.git"},{"name":"haxeui-core","link":"https://github.com/haxeui/haxeui-core.git"},{"name":"haxeui-flixel","link":"https://github.com/haxeui/haxeui-flixel.git"},{"name":"hxcpp"},{"name":"thx.semver"},{"name":"thx.core","link":"https://github.com/fponticelli/thx.core.git"},{"name":"linc_luajit","link":"https://github.com/superpowers04/linc_luajit"},{"name":"hscript-improved","link":"https://github.com/FNF-CNE-Devs/hscript-improved.git"},{"name":"moonchart","link":"https://github.com/MaybeMaru/moonchart.git"}]}] \ No newline at end of file diff --git a/Project.xml b/Project.xml index a35cc6fd..7341ac9e 100644 --- a/Project.xml +++ b/Project.xml @@ -86,6 +86,7 @@ +
diff --git a/assets/shared/data/editors/charter.xml b/assets/shared/data/editors/charter.xml index 18464c6d..4261af0e 100644 --- a/assets/shared/data/editors/charter.xml +++ b/assets/shared/data/editors/charter.xml @@ -47,19 +47,19 @@ - - @@ -67,7 +67,7 @@ - + @@ -84,8 +84,37 @@