From 6c98f5f0a756afd562b956667ef1bdb90bc8bfb1 Mon Sep 17 00:00:00 2001 From: ASleepyCat Date: Mon, 14 Aug 2023 21:53:54 +1000 Subject: [PATCH 1/2] Fix wrong id being used to check for WORLD'S END charts --- titles/chuni/read.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titles/chuni/read.py b/titles/chuni/read.py index 0051e5b..02af499 100644 --- a/titles/chuni/read.py +++ b/titles/chuni/read.py @@ -170,7 +170,7 @@ class ChuniReader(BaseReader): if fumen_path is not None: chart_id = MusicFumenData.find("type").find("id").text - if chart_id == "4": + if chart_id == "5": level = float(xml_root.find("starDifType").text) we_chara = ( xml_root.find("worldsEndTagName") From 4a916cb4d10881f2c83b173faabdb51b487f247f Mon Sep 17 00:00:00 2001 From: ASleepyCat Date: Sat, 9 Sep 2023 22:10:33 +1000 Subject: [PATCH 2/2] Fix reading WORLD'S END charts for SDBT --- titles/chuni/read.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/titles/chuni/read.py b/titles/chuni/read.py index 02af499..7100ae6 100644 --- a/titles/chuni/read.py +++ b/titles/chuni/read.py @@ -169,8 +169,10 @@ class ChuniReader(BaseReader): fumen_path = MusicFumenData.find("file").find("path") if fumen_path is not None: - chart_id = MusicFumenData.find("type").find("id").text - if chart_id == "5": + chart_type = MusicFumenData.find("type") + chart_id = chart_type.find("id").text + chart_diff = chart_type.find("str").text + if chart_diff == "WorldsEnd" and (chart_id == "4" or chart_id == "5"): # 4 in SDBT, 5 in SDHD level = float(xml_root.find("starDifType").text) we_chara = ( xml_root.find("worldsEndTagName")