forked from sk1982/actaeon
fixed chuni.py error when importing c2s with no JUDGE count
This commit is contained in:
parent
9f22f1f17a
commit
5509c7c16e
3
scripts/asset-extract chuni.bat
Normal file
3
scripts/asset-extract chuni.bat
Normal 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
|
3
scripts/db-import chuni.bat
Normal file
3
scripts/db-import chuni.bat
Normal 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
|
@ -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))})
|
||||
|
Loading…
Reference in New Issue
Block a user