fixed chuni.py error when importing c2s with no JUDGE count

This commit is contained in:
5UP3RB 2024-07-25 00:37:42 +07:00
parent 9f22f1f17a
commit 5509c7c16e
4 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,3 @@
python asset-extract.py chuni --data-dir "D:\Programs\Sega\Games\CHUNITHM LUMINOUS (SDHD 2.22.00)\data" --opt-dir "D:\Programs\Sega\Games\CHUNITHM LUMINOUS (SDHD 2.22.00)\bin\option"
pause

View File

@ -0,0 +1,3 @@
python db-import.py chuni --data-dir "D:\Programs\Sega\Games\CHUNITHM LUMINOUS (SDHD 2.22.00)\data" --opt-dir "D:\Programs\Sega\Games\CHUNITHM LUMINOUS (SDHD 2.22.00)\bin\option"
pause

View File

@ -87,10 +87,13 @@ class Chuni(Importer):
if creator is None or judgeTap is None or judgeHold is None or judgeSlide is None or judgeAir is None or judgeFlick is None or judgeAll is None:
print('warning: chart file missing data')
inserts.append((song, chart, creator or '', judgeTap or 0, judgeHold or 0, judgeSlide or 0,
judgeAir or 0, judgeFlick or 0, judgeAll or 0))
inserts.append((song, chart, creator or '', judgeTap or '0', judgeHold or '0', judgeSlide or '0',
judgeAir or '0', judgeFlick or '0', judgeAll or '0'))
fields = ['songId', 'chartId', 'chartDesigner', 'tapJudgeCount', 'holdJudgeCount', 'slideJudgeCount',
'airJudgeCount', 'flickJudgeCount', 'allJudgeCount']
#DEBUG
print(inserts)
self.cur.executemany(
f'''INSERT INTO actaeon_chuni_static_music_ext({','.join(fields)})
VALUES ({','.join(['%s'] * len(fields))})

1
start.bat Normal file
View File

@ -0,0 +1 @@
npm run start