2394425147 / 2394425147/astrodx

建议:设置里增加“整理难度标级 / 归一化难度显示”选项

Offen
#263 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
1.9k
Forks
63
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 背景

AstroDX 会加载第三方 maimai 谱面(`maidata.txt`)。这些谱面来自不同来源(官方图、自制工具如 MaichartConverter、手动打包等),**难度标级写法五花八门**,直接读取后游戏内显示很乱。

## 问题

手上一批谱面(约 1800 个),`maidata.txt` 的 `&lv_N=` 值出现多种混乱形态:

1. **小数定数**:`&lv_4=10.7`、`&lv_3=7.5`、`&lv_5=12.9`、`&lv_6=13.2` 等。maimai 标准显示应为 "10+/7/12+/13"(一位小数 <0.6 取整,≥0.6 取整+),而这些直接以小数原样显示。

2. **宴谱写法混乱**:有的写中文(`&lv_7=音` / `奏` / `覚` / `僕` / `破` / `習` / `招` / `即`),有的写"数字+问号"(`&lv_7=13.0?`、`12.7?`、`14.7?`),有的干脆空白。

## 期望

希望在 **设置(Settings)里加一个"整理难度标级 / 归一化难度显示"选项**(或作为谱面加载时的自动规范化开关)。开启后:

- 对普通难度:小数定数按 maimai 标准归一化(`7.5→7`、`14.6→14+`、`13.2→13`、`10.7→10+`)。
- 对宴谱:把中文值 / "数字+问号" / 空白,统一归一化为一致的宴谱标记(如 `?`)。
- 建议带 **"仅显示、不改原文件"** 开关,默认关闭,避免破坏用户原始谱面文件。

## 理由

- 谱面来源混乱是**共性问题**,靠手工改既繁琐又易出错;做成规范化显示(或加载时自动处理)能显著提升浏览体验。
- 若做成仅显示层面,不破坏原始数据。

## 参考

- `maidata.txt` 的 `&lv_N=` 槽位编号 1~8。

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Look for the code that loads and parses `maidata.txt` files, likely in a class handling chart data. Find where the `&lv_N=` values are read and displayed. The task is to add a setting and apply normalization rules: rounding decimals and converting special characters for '宴' difficulty. Start by checking the settings menu UI and the chart display logic. Test by loading a chart with varied difficulty notations.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
game-dev
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
70/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.