From fd3a76d2c1dfbe08e4e3c60c1af320f262c290f2 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 18 Sep 2025 16:49:53 +0100 Subject: [PATCH] fix: forcibly deny Forced-CN/Forced-HCN charts Why on gods green earth does a chart with forced CN not ALSO set the user score to say "CN mode"? Literally why? The play says LN mode. Ridiculous. Fucking beatoraja engineering. --- .../lib/score-import/import-types/ir/beatoraja/converter.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/src/lib/score-import/import-types/ir/beatoraja/converter.ts b/server/src/lib/score-import/import-types/ir/beatoraja/converter.ts index 60d75bbdb..c66ac4e7e 100644 --- a/server/src/lib/score-import/import-types/ir/beatoraja/converter.ts +++ b/server/src/lib/score-import/import-types/ir/beatoraja/converter.ts @@ -48,6 +48,12 @@ async function HandleOrphanChartProcess( ) { const chartName = `${context.chart.artist} (${context.chart.subartist})- ${context.chart.title} (${context.chart.subtitle})`; + if (context.chart.lntype !== 0) { + throw new InvalidScoreFailure( + `${TachiConfig.NAME} does not support charts with forced-CN or forced-HCN.` + ); + } + if (context.chart.hasRandom) { // If you're someone forking tachi looking to remove this // check, remember to change the entire score import