aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-09 01:48:47 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-09 01:48:47 -0700
commitb4bbf2d1f5e78af07bb82c9f6f0993ed52b8d6c8 (patch)
tree4fe27ce0eaf7e909c21ce148446c6f145ae80823
parentd837a235d820891964f370101a699600df50b028 (diff)
maimaidx_aquadx: basic version based handling for DX and non-DX charts
-rw-r--r--mai2/aquadx/mai_aquadx_to_tachi.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mai2/aquadx/mai_aquadx_to_tachi.py b/mai2/aquadx/mai_aquadx_to_tachi.py
index 70faf0f..63401cd 100644
--- a/mai2/aquadx/mai_aquadx_to_tachi.py
+++ b/mai2/aquadx/mai_aquadx_to_tachi.py
@@ -39,6 +39,7 @@ def convert_from_aquadx_json_to_tachi_json(raw_data: str, output_file: str, serv
except KeyError:
skipped_count += 1
continue
+ version = music_json[str(entry["musicId"])]["ver"]
raw_score_value = entry.get("achievement", 0)
score_value = float(raw_score_value/10000)
@@ -67,12 +68,16 @@ def convert_from_aquadx_json_to_tachi_json(raw_data: str, output_file: str, serv
good = entry.get("tapGood", 0) + entry.get("holdGood", 0) + entry.get("slideGood", 0) + entry.get("touchGood", 0) + entry.get("breakGood", 0)
miss = entry.get("tapMiss", 0) + entry.get("holdMiss", 0) + entry.get("slideMiss", 0) + entry.get("touchMiss", 0) + entry.get("breakMiss", 0)
+ difficulty = DIFFICULTY_MAPPING[level]
+ if int(version) < 20000:
+ print(song_title)
+ difficulty = str(difficulty[3:])
score_entry = {
"percent": score_value,
"lamp": lamp,
"matchType": "songTitle",
"identifier": str(song_title),
- "difficulty": DIFFICULTY_MAPPING[level],
+ "difficulty": difficulty,
"timeAchieved": timestamp * 1000 if timestamp else None,
"judgements": {
"pcrit": pcrit,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage