mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 01:08:29 +03:00
feat: support new jubeat versions and refactor versions
kinda still sucks (have to remember to update something)
This commit is contained in:
+31
-21
@@ -85,7 +85,7 @@ interface BaseGamePTConfig<I extends IDStrings> {
|
||||
|
||||
scoreBucket: "grade" | "lamp";
|
||||
|
||||
supportedVersions: Array<GPTSupportedVersions[I]>;
|
||||
orderedSupportedVersions: Array<GPTSupportedVersions[I]>;
|
||||
|
||||
tierlists: Array<GPTTierlists[I]>;
|
||||
tierlistDescriptions: Record<GPTTierlists[I], string>;
|
||||
@@ -369,7 +369,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: [
|
||||
orderedSupportedVersions: [
|
||||
"3-cs",
|
||||
"4-cs",
|
||||
"5-cs",
|
||||
@@ -569,7 +569,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: [
|
||||
orderedSupportedVersions: [
|
||||
"3-cs",
|
||||
"4-cs",
|
||||
"5-cs",
|
||||
@@ -691,7 +691,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: ["paradiselost"],
|
||||
orderedSupportedVersions: ["paradiselost"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -787,7 +787,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: ["booth", "inf", "gw", "heaven", "vivid", "exceed", "konaste"],
|
||||
orderedSupportedVersions: ["booth", "inf", "gw", "heaven", "vivid", "exceed", "konaste"],
|
||||
|
||||
tierlists: ["clear"],
|
||||
tierlistDescriptions: {
|
||||
@@ -874,7 +874,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: [],
|
||||
orderedSupportedVersions: [],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -959,7 +959,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: [],
|
||||
orderedSupportedVersions: [],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -1035,7 +1035,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: ["1.5", "1.5-b"],
|
||||
orderedSupportedVersions: ["1.5", "1.5-b"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -1149,7 +1149,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: [],
|
||||
orderedSupportedVersions: [],
|
||||
|
||||
tierlists: ["sgl-EC", "sgl-HC"],
|
||||
tierlistDescriptions: {
|
||||
@@ -1261,7 +1261,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: [],
|
||||
orderedSupportedVersions: [],
|
||||
|
||||
tierlists: ["sgl-EC", "sgl-HC"],
|
||||
tierlistDescriptions: {
|
||||
@@ -1398,7 +1398,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: ["a20"],
|
||||
orderedSupportedVersions: ["a20"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -1530,7 +1530,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: ["a20"],
|
||||
orderedSupportedVersions: ["a20"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -1622,7 +1622,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: ["finale"],
|
||||
orderedSupportedVersions: ["finale"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -1728,7 +1728,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: ["nextage"],
|
||||
orderedSupportedVersions: ["nextage"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -1817,7 +1817,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: ["nextage"],
|
||||
orderedSupportedVersions: ["nextage"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -1910,7 +1910,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: ["reverse"],
|
||||
orderedSupportedVersions: ["reverse"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -1997,7 +1997,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: ["peace", "kaimei"],
|
||||
orderedSupportedVersions: ["peace", "kaimei"],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -2087,7 +2087,17 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "grade",
|
||||
|
||||
supportedVersions: ["qubell", "clan", "festo"],
|
||||
orderedSupportedVersions: [
|
||||
"jubeat",
|
||||
"ripples",
|
||||
"knit",
|
||||
"copious",
|
||||
"saucer",
|
||||
"prop",
|
||||
"qubell",
|
||||
"clan",
|
||||
"festo",
|
||||
],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
@@ -2195,7 +2205,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: [],
|
||||
orderedSupportedVersions: [],
|
||||
|
||||
tierlists: ["sgl-EC", "sgl-HC"],
|
||||
tierlistDescriptions: {
|
||||
@@ -2306,7 +2316,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: [],
|
||||
orderedSupportedVersions: [],
|
||||
|
||||
tierlists: ["sgl-EC", "sgl-HC"],
|
||||
tierlistDescriptions: {
|
||||
@@ -2410,7 +2420,7 @@ const GAME_PT_CONFIGS: GamePTConfigs = {
|
||||
|
||||
scoreBucket: "lamp",
|
||||
|
||||
supportedVersions: [],
|
||||
orderedSupportedVersions: [],
|
||||
|
||||
tierlists: [],
|
||||
tierlistDescriptions: {},
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { GetGameConfig } from "..";
|
||||
import type {
|
||||
FileUploadImportTypes,
|
||||
IRImportTypes,
|
||||
@@ -6,6 +7,7 @@ import type {
|
||||
Game,
|
||||
IDStrings,
|
||||
GPTSupportedVersions,
|
||||
Playtype,
|
||||
} from "..";
|
||||
|
||||
export const fileImportTypes: Array<FileUploadImportTypes> = [
|
||||
@@ -84,7 +86,7 @@ export const allSupportedGames: Array<Game> = [
|
||||
|
||||
export type Versions = {
|
||||
[I in IDStrings]: {
|
||||
[K in GPTSupportedVersions[I]]: string;
|
||||
[K in GPTSupportedVersions[I]]: string | null;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -132,7 +134,8 @@ const prettyGitadoraVersions: Versions["gitadora:Dora"] = {
|
||||
nextage: "NEX+AGE",
|
||||
};
|
||||
|
||||
export const PrettyVersions: Versions = {
|
||||
// WHEN YOU UPDATE THIS, **MAKE SURE** YOU UPDATE CONFIG.TS ACCORDINGLY.
|
||||
const PrettyVersions: Versions = {
|
||||
"iidx:SP": prettyIIDXVersions,
|
||||
"iidx:DP": prettyIIDXVersions,
|
||||
"popn:9B": { peace: "peace", kaimei: "Kaimei Riddles" },
|
||||
@@ -170,8 +173,32 @@ export const PrettyVersions: Versions = {
|
||||
festo: "festo",
|
||||
clan: "clan",
|
||||
qubell: "qubell",
|
||||
saucer: "saucer",
|
||||
prop: "prop",
|
||||
copious: "copious",
|
||||
knit: "knit",
|
||||
ripples: "ripples",
|
||||
jubeat: null, // no name
|
||||
},
|
||||
"pms:Controller": {},
|
||||
"pms:Keyboard": {},
|
||||
"itg:Stamina": {},
|
||||
};
|
||||
|
||||
export function PrettyFormatVersion<I extends IDStrings>(
|
||||
idString: I,
|
||||
version: GPTSupportedVersions[I]
|
||||
) {
|
||||
// lol
|
||||
const [game] = idString.split(":") as [Game, Playtype];
|
||||
|
||||
const ver = PrettyVersions[idString][version];
|
||||
|
||||
const gameConfig = GetGameConfig(game);
|
||||
|
||||
if (ver === null) {
|
||||
return gameConfig.name;
|
||||
}
|
||||
|
||||
return `${gameConfig.name} (${ver})`;
|
||||
}
|
||||
|
||||
@@ -532,7 +532,7 @@ const PR_CHART_DOCUMENT = (game: Game) => (self: unknown) => {
|
||||
p.optional({ text: "string", value: "number", individualDifference: "*boolean" }),
|
||||
])
|
||||
),
|
||||
versions: [p.isIn(gptConfig.supportedVersions)],
|
||||
versions: [p.isIn(gptConfig.orderedSupportedVersions)],
|
||||
})(self);
|
||||
};
|
||||
|
||||
|
||||
+10
-1
@@ -742,7 +742,16 @@ export interface GPTSupportedVersions {
|
||||
"ddr:SP": "a20";
|
||||
"ddr:DP": "a20";
|
||||
"maimai:Single": "finale";
|
||||
"jubeat:Single": "clan" | "festo" | "qubell";
|
||||
"jubeat:Single":
|
||||
| "clan"
|
||||
| "copious"
|
||||
| "festo"
|
||||
| "jubeat"
|
||||
| "knit"
|
||||
| "prop"
|
||||
| "qubell"
|
||||
| "ripples"
|
||||
| "saucer";
|
||||
"museca:Single": "1.5-b" | "1.5";
|
||||
"bms:7K": never;
|
||||
"bms:14K": never;
|
||||
|
||||
@@ -4,8 +4,7 @@ const tableMainFolders = [];
|
||||
const tableAllFolders = [];
|
||||
|
||||
const { Command } = require("commander");
|
||||
const { GetGamePTConfig } = require("tachi-common");
|
||||
const { PrettyVersions } = require("tachi-common/config/static-config");
|
||||
const { PrettyFormatVersion } = require("tachi-common/config/static-config");
|
||||
|
||||
const program = new Command();
|
||||
program.requiredOption("-v, --version <version>");
|
||||
@@ -13,7 +12,7 @@ program.requiredOption("-v, --version <version>");
|
||||
program.parse(process.argv);
|
||||
const options = program.opts();
|
||||
|
||||
const fmtVersion = PrettyVersions["popn:9B"][options.version];
|
||||
const fmtVersion = PrettyFormatVersion("popn:9B", options.version);
|
||||
|
||||
MutateCollection("folders.json", (folders) => {
|
||||
for (let i = 0; i < 3; i++) {
|
||||
|
||||
Generated
+355
-558
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user