mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-12-05 03:30:23 -06:00
Merge pull request #97 from duel0213/iidx
IIDX: bug fixes and WebUI updates
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# beatmaniaIIDX
|
||||
|
||||
Plugin Version: **v0.1.18**
|
||||
Plugin Version: **v0.1.18a**
|
||||
|
||||
---
|
||||
|
||||
@@ -38,7 +38,7 @@ Features
|
||||
- SKILL ANALYZER
|
||||
- EVENT (Partial)
|
||||
- ARENA (LOCAL only)
|
||||
- RANDOME LANE TICKET
|
||||
- RANDOM LANE TICKET
|
||||
- FAVORITE/SONG SELECTION NOTES
|
||||
- ORIGINAL FILTER
|
||||
|
||||
@@ -193,7 +193,7 @@ Changelogs
|
||||
- Migration from (previous version) menu will not work
|
||||
- Existing card with no current version user data will treat as new card on registration but it will use existing profile data
|
||||
- New card cannot be registered (~ HAPPY SKY)
|
||||
- Need to invoke new card registration to core.
|
||||
- Need to invoke new card registration to core
|
||||
- 9th Style will use seperate user data database as its using raw blob
|
||||
- Added ALL/STORE/RIVAL TOP pacemaker support
|
||||
- Added basic save support of STORY mode (Resort Anthem)
|
||||
@@ -201,3 +201,18 @@ Changelogs
|
||||
- Fixed where unable to login after playing a while on old versions
|
||||
- Improved WebUI customization settings with descriptive dropdown menus (@COLV9)
|
||||
- Improved WebUI score viewer with song title mapping, detailed difficulty breakdown and sorting (@COLV9)
|
||||
|
||||
**v0.1.18a**
|
||||
- Fixed where unable to login (9th Style)
|
||||
- Fixed where CYBER LOADER event data get saved incorrectly (Sparkle Shower)
|
||||
- Fixed where Entry background brightness option doesn't get saved (Sparkle Shower)
|
||||
- Fixed where classic\_hispeed option doesn't get saved on WebUI
|
||||
- Fixed where CLEAR RATE, FULL COMBO RATE only displays 0% or 100%
|
||||
- Fixed where Note Size, Note Beam Size, First Note Preview may display wrong data on WebUI
|
||||
- Fixed where Recently Played sorted by song rather than each difficulty (@COLV9)
|
||||
- Added last played time saving for each difficulty
|
||||
- Existing score data without play time will be treated as not recently played until the chart is played again
|
||||
- Added pagination to the WebUI score viewer (@COLV9)
|
||||
- Added options to display 10, 30, or 50 records per page
|
||||
- Updated music title and customization lists (@COLV9)
|
||||
- Random Lane Ticket now stores ticket on database rather than give 100 temporarily batches on login
|
||||
|
||||
@@ -1,33 +1,294 @@
|
||||
{
|
||||
"33": {
|
||||
"26069": { "kind": 0 },
|
||||
"24026": { "kind": 0 },
|
||||
"1": {
|
||||
"1017": { "kind": 0 }
|
||||
},
|
||||
"4": {
|
||||
"4001": { "kind": 0 },
|
||||
"4005": { "kind": 0 },
|
||||
"4023": { "kind": 0 }
|
||||
},
|
||||
"5": {
|
||||
"5014": { "kind": 0 }
|
||||
},
|
||||
"6": {
|
||||
"6004": { "kind": 0 }
|
||||
},
|
||||
"7": {
|
||||
"7038": { "kind": 0 }
|
||||
},
|
||||
"8": {
|
||||
"8023": { "kind": 0 },
|
||||
"28050": { "kind": 0 },
|
||||
"30029": { "kind": 0 },
|
||||
"31049": { "kind": 0 },
|
||||
"15025": { "kind": 0 },
|
||||
"20064": { "kind": 0 },
|
||||
"18008": { "kind": 0 },
|
||||
"30100": { "kind": 0 },
|
||||
"33058": { "kind": 0 },
|
||||
"8024": { "kind": 0 }
|
||||
},
|
||||
"9": {
|
||||
"9038": { "kind": 0 }
|
||||
},
|
||||
"10": {
|
||||
"10020": { "kind": 0 },
|
||||
"10034": { "kind": 0 }
|
||||
},
|
||||
"11": {
|
||||
"11012": { "kind": 0 },
|
||||
"11032": { "kind": 0 },
|
||||
"11035": { "kind": 0 },
|
||||
"11036": { "kind": 0 }
|
||||
},
|
||||
"12": {
|
||||
"12002": { "kind": 0 },
|
||||
"12007": { "kind": 0 },
|
||||
"12008": { "kind": 0 },
|
||||
"12010": { "kind": 0 },
|
||||
"12011": { "kind": 0 },
|
||||
"12012": { "kind": 0 },
|
||||
"24009": { "kind": 0 },
|
||||
"23087": { "kind": 0 },
|
||||
"28039": { "kind": 0 },
|
||||
"26055": { "kind": 0 },
|
||||
"25006": { "kind": 0 },
|
||||
"22016": { "kind": 0 },
|
||||
"27075": { "kind": 0 },
|
||||
"18006": { "kind": 0 },
|
||||
"12016": { "kind": 0 },
|
||||
"12020": { "kind": 0 },
|
||||
"12030": { "kind": 0 },
|
||||
"12051": { "kind": 0 },
|
||||
"12052": { "kind": 0 },
|
||||
"12053": { "kind": 0 },
|
||||
"12054": { "kind": 0 }
|
||||
},
|
||||
"13": {
|
||||
"13000": { "kind": 0 },
|
||||
"13010": { "kind": 0 },
|
||||
"13026": { "kind": 0 },
|
||||
"13038": { "kind": 0 }
|
||||
},
|
||||
"14": {
|
||||
"14004": { "kind": 0 },
|
||||
"14005": { "kind": 0 },
|
||||
"14009": { "kind": 0 },
|
||||
"14012": { "kind": 0 },
|
||||
"14022": { "kind": 0 },
|
||||
"14046": { "kind": 0 },
|
||||
"14053": { "kind": 0 }
|
||||
},
|
||||
"15": {
|
||||
"15000": { "kind": 0 },
|
||||
"15004": { "kind": 0 },
|
||||
"15005": { "kind": 0 },
|
||||
"15007": { "kind": 0 },
|
||||
"15008": { "kind": 0 },
|
||||
"15014": { "kind": 0 },
|
||||
"15015": { "kind": 0 },
|
||||
"15023": { "kind": 0 },
|
||||
"15025": { "kind": 0 },
|
||||
"15026": { "kind": 0 },
|
||||
"15038": { "kind": 0 },
|
||||
"15041": { "kind": 0 },
|
||||
"15045": { "kind": 0 },
|
||||
"15054": { "kind": 0 },
|
||||
"15056": { "kind": 0 },
|
||||
"15061": { "kind": 0 }
|
||||
},
|
||||
"16": {
|
||||
"16001": { "kind": 0 },
|
||||
"16002": { "kind": 0 },
|
||||
"16009": { "kind": 0 },
|
||||
"16011": { "kind": 0 },
|
||||
"16015": { "kind": 0 },
|
||||
"16018": { "kind": 0 },
|
||||
"16021": { "kind": 0 },
|
||||
"16022": { "kind": 0 },
|
||||
"16025": { "kind": 0 },
|
||||
"16030": { "kind": 0 },
|
||||
"16031": { "kind": 0 },
|
||||
"16034": { "kind": 0 },
|
||||
"16038": { "kind": 0 },
|
||||
"16040": { "kind": 0 },
|
||||
"16042": { "kind": 0 },
|
||||
"16045": { "kind": 0 },
|
||||
"16047": { "kind": 0 },
|
||||
"16050": { "kind": 0 }
|
||||
},
|
||||
"17": {
|
||||
"17001": { "kind": 0 },
|
||||
"17015": { "kind": 0 },
|
||||
"17028": { "kind": 0 },
|
||||
"17043": { "kind": 0 },
|
||||
"17058": { "kind": 0 },
|
||||
"31050": { "kind": 0 },
|
||||
"17060": { "kind": 0 }
|
||||
},
|
||||
"18": {
|
||||
"18006": { "kind": 0 },
|
||||
"18008": { "kind": 0 },
|
||||
"18011": { "kind": 0 },
|
||||
"18017": { "kind": 0 },
|
||||
"18025": { "kind": 0 },
|
||||
"18027": { "kind": 0 },
|
||||
"18036": { "kind": 0 },
|
||||
"18053": { "kind": 0 }
|
||||
},
|
||||
"19": {
|
||||
"19005": { "kind": 0 },
|
||||
"19011": { "kind": 0 },
|
||||
"19012": { "kind": 0 },
|
||||
"19015": { "kind": 0 },
|
||||
"19017": { "kind": 0 },
|
||||
"19022": { "kind": 0 },
|
||||
"19033": { "kind": 0 },
|
||||
"19035": { "kind": 0 },
|
||||
"19042": { "kind": 0 },
|
||||
"19049": { "kind": 0 },
|
||||
"19054": { "kind": 0 },
|
||||
"19063": { "kind": 0 },
|
||||
"19067": { "kind": 0 },
|
||||
"19074": { "kind": 0 }
|
||||
},
|
||||
"20": {
|
||||
"20003": { "kind": 0 },
|
||||
"20019": { "kind": 0 },
|
||||
"20024": { "kind": 0 },
|
||||
"20031": { "kind": 0 },
|
||||
"20039": { "kind": 0 },
|
||||
"20055": { "kind": 0 },
|
||||
"20064": { "kind": 0 },
|
||||
"20068": { "kind": 0 },
|
||||
"20082": { "kind": 0 },
|
||||
"32084": { "kind": 0 },
|
||||
"32110": { "kind": 0 },
|
||||
"32081": { "kind": 0 },
|
||||
"20086": { "kind": 0 },
|
||||
"20089": { "kind": 0 },
|
||||
"20100": { "kind": 0 }
|
||||
},
|
||||
"21": {
|
||||
"21004": { "kind": 0 },
|
||||
"21012": { "kind": 0 },
|
||||
"21015": { "kind": 0 },
|
||||
"21016": { "kind": 0 },
|
||||
"21022": { "kind": 0 },
|
||||
"21029": { "kind": 0 },
|
||||
"21037": { "kind": 0 },
|
||||
"21044": { "kind": 0 },
|
||||
"21048": { "kind": 0 },
|
||||
"21050": { "kind": 0 },
|
||||
"21051": { "kind": 0 },
|
||||
"21052": { "kind": 0 },
|
||||
"21059": { "kind": 0 },
|
||||
"21060": { "kind": 0 },
|
||||
"21069": { "kind": 0 },
|
||||
"21073": { "kind": 0 },
|
||||
"21077": { "kind": 0 },
|
||||
"21088": { "kind": 0 },
|
||||
"21089": { "kind": 0 }
|
||||
},
|
||||
"22": {
|
||||
"22006": { "kind": 0 },
|
||||
"22008": { "kind": 0 },
|
||||
"22009": { "kind": 0 },
|
||||
"22013": { "kind": 0 },
|
||||
"22016": { "kind": 0 },
|
||||
"22024": { "kind": 0 },
|
||||
"22027": { "kind": 0 },
|
||||
"22028": { "kind": 0 },
|
||||
"22031": { "kind": 0 },
|
||||
"22040": { "kind": 0 },
|
||||
"22043": { "kind": 0 },
|
||||
"22059": { "kind": 0 },
|
||||
"22083": { "kind": 0 },
|
||||
"22089": { "kind": 0 },
|
||||
"22092": { "kind": 0 }
|
||||
},
|
||||
"23": {
|
||||
"23031": { "kind": 0 },
|
||||
"23054": { "kind": 0 },
|
||||
"23070": { "kind": 0 },
|
||||
"23080": { "kind": 0 },
|
||||
"23083": { "kind": 0 },
|
||||
"23084": { "kind": 0 },
|
||||
"23087": { "kind": 0 },
|
||||
"23095": { "kind": 0 }
|
||||
},
|
||||
"24": {
|
||||
"24009": { "kind": 0 },
|
||||
"24011": { "kind": 0 },
|
||||
"24012": { "kind": 0 },
|
||||
"24026": { "kind": 0 },
|
||||
"24031": { "kind": 0 },
|
||||
"24038": { "kind": 0 },
|
||||
"24041": { "kind": 0 },
|
||||
"24050": { "kind": 0 },
|
||||
"24057": { "kind": 0 },
|
||||
"24061": { "kind": 0 },
|
||||
"24080": { "kind": 0 }
|
||||
},
|
||||
"25": {
|
||||
"25003": { "kind": 0 },
|
||||
"25005": { "kind": 0 },
|
||||
"25006": { "kind": 0 },
|
||||
"25026": { "kind": 0 },
|
||||
"25032": { "kind": 0 },
|
||||
"25048": { "kind": 0 },
|
||||
"25081": { "kind": 0 },
|
||||
"25092": { "kind": 0 }
|
||||
},
|
||||
"26": {
|
||||
"26011": { "kind": 0 },
|
||||
"26016": { "kind": 0 },
|
||||
"26019": { "kind": 0 },
|
||||
"26026": { "kind": 0 },
|
||||
"26055": { "kind": 0 },
|
||||
"26058": { "kind": 0 },
|
||||
"26068": { "kind": 0 },
|
||||
"26069": { "kind": 0 },
|
||||
"26076": { "kind": 0 }
|
||||
},
|
||||
"27": {
|
||||
"27007": { "kind": 0 },
|
||||
"27010": { "kind": 0 },
|
||||
"27023": { "kind": 0 },
|
||||
"27033": { "kind": 0 },
|
||||
"27046": { "kind": 0 },
|
||||
"27053": { "kind": 0 },
|
||||
"27071": { "kind": 0 },
|
||||
"27075": { "kind": 0 },
|
||||
"27116": { "kind": 0 }
|
||||
},
|
||||
"28": {
|
||||
"28039": { "kind": 0 },
|
||||
"28050": { "kind": 0 },
|
||||
"28059": { "kind": 0 },
|
||||
"28066": { "kind": 0 },
|
||||
"28074": { "kind": 0 },
|
||||
"28092": { "kind": 0 }
|
||||
},
|
||||
"29": {
|
||||
"29001": { "kind": 0 },
|
||||
"29012": { "kind": 0 },
|
||||
"29024": { "kind": 0 },
|
||||
"29052": { "kind": 0 },
|
||||
"29071": { "kind": 0 },
|
||||
"29072": { "kind": 0 },
|
||||
"29075": { "kind": 0 },
|
||||
"29081": { "kind": 0 },
|
||||
"29082": { "kind": 0 },
|
||||
"29085": { "kind": 0 },
|
||||
"29101": { "kind": 0 },
|
||||
"29102": { "kind": 0 }
|
||||
},
|
||||
"30": {
|
||||
"30029": { "kind": 0 },
|
||||
"30030": { "kind": 0 },
|
||||
"30070": { "kind": 0 },
|
||||
"30100": { "kind": 0 },
|
||||
"30101": { "kind": 0 },
|
||||
"30102": { "kind": 0 }
|
||||
},
|
||||
"31": {
|
||||
"31021": { "kind": 0 },
|
||||
"31023": { "kind": 0 },
|
||||
"31025": { "kind": 0 },
|
||||
"31049": { "kind": 0 },
|
||||
"31050": { "kind": 0 },
|
||||
"31098": { "kind": 0 },
|
||||
"31099": { "kind": 0 }
|
||||
},
|
||||
"32": {
|
||||
"32081": { "kind": 0 },
|
||||
"32084": { "kind": 0 },
|
||||
"32085": { "kind": 0 },
|
||||
"33001": { "kind": 0 }
|
||||
"32110": { "kind": 0 }
|
||||
},
|
||||
"33": {
|
||||
"33001": { "kind": 0 },
|
||||
"33058": { "kind": 0 }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,105 +1,121 @@
|
||||
{
|
||||
"24": {
|
||||
"24061": { "kind": 0 }
|
||||
},
|
||||
"26": {
|
||||
"26002": { "kind": 0 },
|
||||
"26006": { "kind": 0 },
|
||||
"26022": { "kind": 0 },
|
||||
"26045": { "kind": 0 }
|
||||
},
|
||||
"27": {
|
||||
"27071": { "kind": 0 },
|
||||
"27073": { "kind": 0 }
|
||||
},
|
||||
"28": {
|
||||
"28001": { "kind": 0 },
|
||||
"28074": { "kind": 0 }
|
||||
},
|
||||
"29": {
|
||||
"29071": { "kind": 0 },
|
||||
"29072": { "kind": 0 },
|
||||
"29075": { "kind": 0 },
|
||||
"29081": { "kind": 0 },
|
||||
"29082": { "kind": 0 },
|
||||
"29085": { "kind": 0 },
|
||||
"29101": { "kind": 0 },
|
||||
"29102": { "kind": 0 },
|
||||
"29103": { "kind": 0 }
|
||||
},
|
||||
"30": {
|
||||
"30038": { "kind": 0 },
|
||||
"30082": { "kind": 0 },
|
||||
"30083": { "kind": 0 },
|
||||
"30084": { "kind": 0 },
|
||||
"30085": { "kind": 0 },
|
||||
"30101": { "kind": 0 },
|
||||
"30102": { "kind": 0 },
|
||||
"30104": { "kind": 0 },
|
||||
"30105": { "kind": 0 }
|
||||
},
|
||||
"31": {
|
||||
"31021": { "kind": 0 },
|
||||
"31023": { "kind": 0 },
|
||||
"31024": { "kind": 0 },
|
||||
"31025": { "kind": 0 },
|
||||
"31097": { "kind": 0 },
|
||||
"31098": { "kind": 0 },
|
||||
"31099": { "kind": 0 },
|
||||
"31100": { "kind": 0 },
|
||||
"31101": { "kind": 0 },
|
||||
"31102": { "kind": 0 },
|
||||
"31110": { "kind": 0 },
|
||||
"31112": { "kind": 0 },
|
||||
"31113": { "kind": 0 }
|
||||
},
|
||||
"32": {
|
||||
"32019": { "kind": 0 },
|
||||
"32022": { "kind": 0 },
|
||||
"32049": { "kind": 0 },
|
||||
"32078": { "kind": 0 },
|
||||
"32079": { "kind": 0 },
|
||||
"32080": { "kind": 0 },
|
||||
"32081": { "kind": 0 },
|
||||
"32082": { "kind": 0 },
|
||||
"32083": { "kind": 0 },
|
||||
"32084": { "kind": 0 },
|
||||
"32085": { "kind": 0 },
|
||||
"32096": { "kind": 0 },
|
||||
"32097": { "kind": 0 },
|
||||
"32098": { "kind": 0 },
|
||||
"32101": { "kind": 0 },
|
||||
"32102": { "kind": 0 },
|
||||
"32103": { "kind": 0 },
|
||||
"32104": { "kind": 0 },
|
||||
"32110": { "kind": 0 },
|
||||
"32111": { "kind": 0 }
|
||||
},
|
||||
"33": {
|
||||
"33001": { "kind": 0 },
|
||||
"33007": { "kind": 0 },
|
||||
"33049": { "kind": 0 },
|
||||
"33078": { "kind": 0 },
|
||||
"33081": { "kind": 0 },
|
||||
"33082": { "kind": 0 },
|
||||
"33083": { "kind": 0 },
|
||||
"33084": { "kind": 0 },
|
||||
"33085": { "kind": 0 },
|
||||
"33095": { "kind": 0 },
|
||||
"33096": { "kind": 0 },
|
||||
"33105": { "kind": 0 },
|
||||
"33106": { "kind": 0 },
|
||||
"33115": { "kind": 0 },
|
||||
"33116": { "kind": 0 },
|
||||
"33117": { "kind": 0 },
|
||||
"33118": { "kind": 0 },
|
||||
"33119": { "kind": 0 },
|
||||
"33120": { "kind": 0 },
|
||||
"33121": { "kind": 0 },
|
||||
"33129": { "kind": 0 },
|
||||
"33130": { "kind": 0 },
|
||||
"33131": { "kind": 0 },
|
||||
"33132": { "kind": 0 },
|
||||
"33133": { "kind": 0 }
|
||||
}
|
||||
"24": {
|
||||
"24061": { "kind": 0 }
|
||||
},
|
||||
"26": {
|
||||
"26002": { "kind": 0 },
|
||||
"26006": { "kind": 0 },
|
||||
"26022": { "kind": 0 },
|
||||
"26045": { "kind": 0 }
|
||||
},
|
||||
"27": {
|
||||
"27071": { "kind": 0 },
|
||||
"27073": { "kind": 0 }
|
||||
},
|
||||
"28": {
|
||||
"28001": { "kind": 0 },
|
||||
"28074": { "kind": 0 }
|
||||
},
|
||||
"29": {
|
||||
"29071": { "kind": 0 },
|
||||
"29072": { "kind": 0 },
|
||||
"29075": { "kind": 0 },
|
||||
"29081": { "kind": 0 },
|
||||
"29082": { "kind": 0 },
|
||||
"29085": { "kind": 0 },
|
||||
"29101": { "kind": 0 },
|
||||
"29102": { "kind": 0 },
|
||||
"29103": { "kind": 0 }
|
||||
},
|
||||
"30": {
|
||||
"30038": { "kind": 0 },
|
||||
"30082": { "kind": 0 },
|
||||
"30083": { "kind": 0 },
|
||||
"30084": { "kind": 0 },
|
||||
"30085": { "kind": 0 },
|
||||
"30101": { "kind": 0 },
|
||||
"30102": { "kind": 0 },
|
||||
"30104": { "kind": 0 },
|
||||
"30105": { "kind": 0 }
|
||||
},
|
||||
"31": {
|
||||
"31021": { "kind": 0 },
|
||||
"31023": { "kind": 0 },
|
||||
"31024": { "kind": 0 },
|
||||
"31025": { "kind": 0 },
|
||||
"31097": { "kind": 0 },
|
||||
"31098": { "kind": 0 },
|
||||
"31099": { "kind": 0 },
|
||||
"31100": { "kind": 0 },
|
||||
"31101": { "kind": 0 },
|
||||
"31102": { "kind": 0 },
|
||||
"31110": { "kind": 0 },
|
||||
"31112": { "kind": 0 },
|
||||
"31113": { "kind": 0 }
|
||||
},
|
||||
"32": {
|
||||
"32003": { "kind": 0 },
|
||||
"32007": { "kind": 0 },
|
||||
"32019": { "kind": 0 },
|
||||
"32022": { "kind": 0 },
|
||||
"32049": { "kind": 0 },
|
||||
"32065": { "kind": 0 },
|
||||
"32078": { "kind": 0 },
|
||||
"32079": { "kind": 0 },
|
||||
"32080": { "kind": 0 },
|
||||
"32081": { "kind": 0 },
|
||||
"32082": { "kind": 0 },
|
||||
"32083": { "kind": 0 },
|
||||
"32084": { "kind": 0 },
|
||||
"32085": { "kind": 0 },
|
||||
"32093": { "kind": 0 },
|
||||
"32094": { "kind": 0 },
|
||||
"32095": { "kind": 0 },
|
||||
"32096": { "kind": 0 },
|
||||
"32097": { "kind": 0 },
|
||||
"32098": { "kind": 0 },
|
||||
"32101": { "kind": 0 },
|
||||
"32102": { "kind": 0 },
|
||||
"32103": { "kind": 0 },
|
||||
"32104": { "kind": 0 },
|
||||
"32108": { "kind": 0 },
|
||||
"32109": { "kind": 0 },
|
||||
"32110": { "kind": 0 },
|
||||
"32111": { "kind": 0 }
|
||||
},
|
||||
"33": {
|
||||
"33001": { "kind": 0 },
|
||||
"33005": { "kind": 0 },
|
||||
"33007": { "kind": 0 },
|
||||
"33009": { "kind": 0 },
|
||||
"33049": { "kind": 0 },
|
||||
"33078": { "kind": 0 },
|
||||
"33081": { "kind": 0 },
|
||||
"33082": { "kind": 0 },
|
||||
"33083": { "kind": 0 },
|
||||
"33084": { "kind": 0 },
|
||||
"33085": { "kind": 0 },
|
||||
"33095": { "kind": 0 },
|
||||
"33096": { "kind": 0 },
|
||||
"33100": { "kind": 0 },
|
||||
"33101": { "kind": 0 },
|
||||
"33102": { "kind": 0 },
|
||||
"33103": { "kind": 0 },
|
||||
"33104": { "kind": 0 },
|
||||
"33105": { "kind": 0 },
|
||||
"33106": { "kind": 0 },
|
||||
"33107": { "kind": 0 },
|
||||
"33108": { "kind": 0 },
|
||||
"33112": { "kind": 0 },
|
||||
"33113": { "kind": 0 },
|
||||
"33122": { "kind": 0 },
|
||||
"33123": { "kind": 0 },
|
||||
"33124": { "kind": 0 },
|
||||
"33125": { "kind": 0 },
|
||||
"33126": { "kind": 0 },
|
||||
"33127": { "kind": 0 },
|
||||
"33129": { "kind": 0 },
|
||||
"33130": { "kind": 0 },
|
||||
"33131": { "kind": 0 }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -215,7 +215,7 @@ export const gssysteminfo: EPR = async (info, data, send) => {
|
||||
VocaloidEvent: K.ATTR({ val: String(U.GetConfig("ss_cyber")) }),
|
||||
KrankAppendSeason: K.ATTR({ val: String(0) }),
|
||||
the4thEvent: K.ATTR({ val: String(1)} ),
|
||||
beat: K.ATTR({ val: String(5293) }), // It wasn't. TODO:: Figure out what this value does //
|
||||
beat: K.ATTR({ val: String(5293) }), // TODO:: Figure out what this value does //
|
||||
extraevent_2: {
|
||||
"@attr": {
|
||||
all_point_score: String(totalScorePoint),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IDtoRef, GetVersion, OldMidToNewMid, NewMidToOldMid, ReftoProfile, ReftoPcdata, ClidToPlaySide, ReftoQPRO, NumArrayToString, OldMidToVerMid, GetModel, GetCommand, NumArrayToHex } from "../util";
|
||||
import { IDtoRef, GetVersion, OldMidToNewMid, NewMidToOldMid, ReftoProfile, ReftoPcdata, ClidToPlaySide, ReftoQPRO, NumArrayToString, OldMidToVerMid, GetModel, GetCommand, NumArrayToHex, LampOut, LampIn } from "../util";
|
||||
import { score, score_top } from "../models/score";
|
||||
import { profile } from "../models/profile";
|
||||
import { shop_data } from "../models/shop";
|
||||
@@ -7,6 +7,7 @@ import { badge } from "../models/badge";
|
||||
import { activity_mybest } from "../models/activity";
|
||||
import { djtraining } from "../models/djtraining";
|
||||
import { rival } from "../models/rival";
|
||||
import { lamp } from "../models/clearlamp";
|
||||
|
||||
export const musicmethod: EPR = async (info, data, send) => {
|
||||
const command = GetCommand(data);
|
||||
@@ -88,7 +89,7 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
if (res.esArray[indices[a]] == 0) continue;
|
||||
let rank_id = _.isNil(res.rArray) ? -1 : res.rArray[indices[a]];
|
||||
if (version < 10) {
|
||||
const data = NumArrayToHex([11, 3, 1, 1], [temp_mid, rank_id, res.cArray[indices[a]] > 1 ? 1 : 0, 0]);
|
||||
const data = NumArrayToHex([11, 3, 1, 1], [temp_mid, rank_id, LampOut(version, res.cArray[indices[a]]) > 1 ? 1 : 0, 0]);
|
||||
if (mapValue(indices[a]) in musicData) {
|
||||
musicData[mapValue(indices[a])] += data;
|
||||
} else {
|
||||
@@ -96,14 +97,14 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
}
|
||||
}
|
||||
else if (version < 12) {
|
||||
const data = NumArrayToString(version < 11 ? [11, 3, 2, 14] : [11, 3, 3, 13], [temp_mid, res.cArray[indices[a]], rank_id, res.esArray[indices[a]]]);
|
||||
const data = NumArrayToString(version < 11 ? [11, 3, 2, 14] : [11, 3, 3, 13], [temp_mid, LampOut(version, res.cArray[indices[a]]), rank_id, res.esArray[indices[a]]]);
|
||||
if (mapValue(indices[a]) in musicData) {
|
||||
musicData[mapValue(indices[a])] += data;
|
||||
} else {
|
||||
musicData[mapValue(indices[a])] = data;
|
||||
}
|
||||
} else {
|
||||
const data = NumArrayToString([7, 4, 13, 3, 3], [verMid[1], a, res.esArray[indices[a]], rank_id, res.cArray[indices[a]]]);
|
||||
const data = NumArrayToString([7, 4, 13, 3, 3], [verMid[1], a, res.esArray[indices[a]], rank_id, LampOut(version, res.cArray[indices[a]])]);
|
||||
if (verMid[0] in musicData) {
|
||||
musicData[verMid[0]] += data;
|
||||
} else {
|
||||
@@ -129,7 +130,7 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
result.r.push(
|
||||
K.ITEM("str", NumArrayToString(
|
||||
[12, 6],
|
||||
[temp_mid, res.cArray[0]]
|
||||
[temp_mid, LampOut(version, res.cArray[0])]
|
||||
), { v: String("-1") })
|
||||
);
|
||||
}
|
||||
@@ -176,11 +177,11 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
let mVersion = Math.floor(temp_mid / 100);
|
||||
if (mVersion > version) return;
|
||||
|
||||
if (version == 16) score_data = [-1, temp_mid, ...indices.map(i => res.cArray[i]), ...indices.map(i => res.esArray[i])];
|
||||
else score_data = [-1, temp_mid, ...indices.map(i => res.cArray[i]), ...indices.map(i => res.esArray[i]), ...indices.map(i => res.mArray[i])];
|
||||
if (version == 16) score_data = [-1, temp_mid, ...indices.map(i => LampOut(version, res.cArray[i])), ...indices.map(i => res.esArray[i])];
|
||||
else score_data = [-1, temp_mid, ...indices.map(i => LampOut(version, res.cArray[i])), ...indices.map(i => res.esArray[i]), ...indices.map(i => res.mArray[i])];
|
||||
m.push(K.ARRAY(arrayType, score_data));
|
||||
|
||||
if (res.cArray[0] != 0) b.push(K.ARRAY("u16", [temp_mid, res.cArray[0]]));
|
||||
if (res.cArray[0] != 0) b.push(K.ARRAY("u16", [temp_mid, LampOut(version, res.cArray[0])]));
|
||||
});
|
||||
|
||||
for (let i = 0; i < 5; i++) {
|
||||
@@ -195,8 +196,8 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
let mVersion = Math.floor(temp_mid / 100);
|
||||
if (mVersion > version) return;
|
||||
|
||||
if (version == 16) score_data = [i, temp_mid, ...indices.map(i => res.cArray[i]), ...indices.map(i => res.esArray[i])];
|
||||
else score_data = [i, temp_mid, ...indices.map(i => res.cArray[i]), ...indices.map(i => res.esArray[i]), ...indices.map(i => res.mArray[i])];
|
||||
if (version == 16) score_data = [i, temp_mid, ...indices.map(i => LampOut(version, res.cArray[i])), ...indices.map(i => res.esArray[i])];
|
||||
else score_data = [i, temp_mid, ...indices.map(i => LampOut(version, res.cArray[i])), ...indices.map(i => res.esArray[i]), ...indices.map(i => res.mArray[i])];
|
||||
m.push(K.ARRAY(arrayType, score_data));
|
||||
});
|
||||
}
|
||||
@@ -223,10 +224,10 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
let mVersion = Math.floor(res.mid / 1000);
|
||||
if (mVersion > version) return;
|
||||
|
||||
score_data = [-1, res.mid, ...indices.map(i => res.cArray[i]), ...indices.map(i => res.esArray[i]), ...indices.map(i => res.mArray[i])];
|
||||
score_data = [-1, res.mid, ...indices.map(i => LampOut(version, res.cArray[i])), ...indices.map(i => res.esArray[i]), ...indices.map(i => res.mArray[i])];
|
||||
m.push(K.ARRAY(arrayType, score_data));
|
||||
|
||||
if (res.cArray[0] != 0) b.push(K.ARRAY("u16", [res.mid, res.cArray[0]]));
|
||||
if (res.cArray[0] != 0) b.push(K.ARRAY("u16", [res.mid, LampOut(version, res.cArray[0])]));
|
||||
});
|
||||
|
||||
for (let i = 0; i < 5; i++) {
|
||||
@@ -240,7 +241,7 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
let mVersion = Math.floor(res.mid / 1000);
|
||||
if (mVersion > version) return;
|
||||
|
||||
score_data = [i, res.mid, ...indices.map(i => res.cArray[i]), ...indices.map(i => res.esArray[i]), ...indices.map(i => res.mArray[i])];
|
||||
score_data = [i, res.mid, ...indices.map(i => LampOut(version, res.cArray[i])), ...indices.map(i => res.esArray[i]), ...indices.map(i => res.mArray[i])];
|
||||
m.push(K.ARRAY(arrayType, score_data));
|
||||
});
|
||||
}
|
||||
@@ -258,6 +259,10 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
let mVersion = Math.floor(res.mid / 1000);
|
||||
if (mVersion > version) return;
|
||||
|
||||
for (let a = 0; a < res.clflgs.length; a++) {
|
||||
res.clflgs[a] = LampOut(version, res.clflgs[a]);
|
||||
}
|
||||
|
||||
top.push({
|
||||
"@attr": ({
|
||||
name0: res.names[0],
|
||||
@@ -274,6 +279,10 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
let mVersion = Math.floor(res.mid / 1000);
|
||||
if (mVersion > version) return;
|
||||
|
||||
for (let a = 0; a < res.clflgs.length; a++) {
|
||||
res.clflgs[a] = LampOut(version, res.clflgs[a]);
|
||||
}
|
||||
|
||||
top.push({
|
||||
"@attr": ({
|
||||
name0: res.names[1],
|
||||
@@ -305,6 +314,8 @@ export const musicgetrank: EPR = async (info, data, send) => {
|
||||
}
|
||||
|
||||
export const musicgetranksub: EPR = async (info, data, send) => {
|
||||
const version = GetVersion(info);
|
||||
|
||||
const cltype = Number($(data).attr().cltype); // 0 -> SP, 1 -> DP //
|
||||
const rival_refids = [
|
||||
[Number($(data).attr().iidxid0), await IDtoRef(Number($(data).attr().iidxid0))],
|
||||
@@ -333,7 +344,7 @@ export const musicgetranksub: EPR = async (info, data, send) => {
|
||||
if (res.rArray[indices[a]] == -1) continue;
|
||||
|
||||
// [index?, rno?, ...] //
|
||||
score_data = [i, i, res.mid, indices[a], res.cArray[indices[a]], res.esArray[indices[a]], res.mArray[indices[a]]];
|
||||
score_data = [i, i, res.mid, indices[a], LampOut(version, res.cArray[indices[a]]), res.esArray[indices[a]], res.mArray[indices[a]]];
|
||||
m.push(K.ARRAY("s32", score_data));
|
||||
}
|
||||
});
|
||||
@@ -385,6 +396,10 @@ export const musicgetralive: EPR = async (info, data, send) => {
|
||||
let verMid = OldMidToVerMid(mid);
|
||||
if (verMid[0] > version) return;
|
||||
|
||||
for (let a = 0; a < res.cArray.length; a++) {
|
||||
res.cArray[a] = LampOut(version, res.cArray[a]);
|
||||
}
|
||||
|
||||
myRecord[NewMidToOldMid(res.mid)] = [...res.esArray, ...res.cArray];
|
||||
});
|
||||
}
|
||||
@@ -402,6 +417,10 @@ export const musicgetralive: EPR = async (info, data, send) => {
|
||||
let verMid = OldMidToVerMid(mid);
|
||||
if (verMid[0] > version) return;
|
||||
|
||||
for (let a = 0; a < res.cArray.length; a++) {
|
||||
res.cArray[a] = LampOut(version, res.cArray[a]);
|
||||
}
|
||||
|
||||
let scoreArray = Array<number>(15).fill(0);
|
||||
let strResult = "";
|
||||
if (version < 13) {
|
||||
@@ -424,8 +443,8 @@ export const musicgetralive: EPR = async (info, data, send) => {
|
||||
for (let a = 0; a < 3; a++) {
|
||||
let myExscore = myRecord[mid][indices[a]];
|
||||
let rvExscore = res.esArray[indices[a]];
|
||||
let mycFlg = myRecord[mid][indices[a] + 10];
|
||||
let rvcFlg = res.cArray[indices[a]];
|
||||
let mycFlg = LampOut(version, myRecord[mid][indices[a] + 10]);
|
||||
let rvcFlg = LampOut(version, res.cArray[indices[a]]);
|
||||
|
||||
if (mycFlg == 0 || rvcFlg == 0) continue;
|
||||
scoreArray[i * 3 + (2 - a)] = myExscore > rvExscore ? 1 : 2;
|
||||
@@ -753,7 +772,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
const pgnum = version < 13 ? Number(command[4]) : Number($(data).attr().pgnum);
|
||||
const gnum = version < 13 ? Number(command[5]) : Number($(data).attr().gnum);
|
||||
const mnum = version < 13 ? -1 : Number($(data).attr().mnum);
|
||||
const cflg = version < 13 ? Number(command[7]) : Number($(data).attr().cflg);
|
||||
const cflg = LampIn(version, (version < 13 ? Number(command[7]) : Number($(data).attr().cflg)));
|
||||
let exscore = (pgnum * 2 + gnum);
|
||||
let ghost = null, ghost_gauge = null; // Heroic Verse //
|
||||
let style = 0, option = 0, option_2 = 0, rid = -1;
|
||||
@@ -794,6 +813,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
let esArray = Array<number>(10).fill(0); // EXSCORE //
|
||||
let optArray = Array<number>(10).fill(0); // USED OPTION (CastHour) //
|
||||
let opt2Array = Array<number>(10).fill(0); // USED OPTION (CastHour) //
|
||||
let playTimeArray = Array<number>(10).fill(0); // LAST PLAYED TIME BY DIFFICULTY //
|
||||
let update = 0;
|
||||
|
||||
if (version == 12 || version == 13) {
|
||||
@@ -837,6 +857,10 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
rArray = music_data.rArray;
|
||||
}
|
||||
|
||||
if (!_.isNil(music_data.playTimeArray)) {
|
||||
playTimeArray = music_data.playTimeArray;
|
||||
}
|
||||
|
||||
// migration for invalid miss count //
|
||||
// if EXSCORE/MISS COUNT is 0 and CLEAR FLAG is NO PLAY then set MISS COUNT to -1 //
|
||||
for (let a = 0; a < mArray.length; a++) {
|
||||
@@ -914,6 +938,8 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
);
|
||||
}
|
||||
|
||||
playTimeArray[clid] = Date.now();
|
||||
|
||||
await DB.Upsert<score>(
|
||||
refid,
|
||||
{
|
||||
@@ -930,6 +956,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
esArray,
|
||||
optArray,
|
||||
opt2Array,
|
||||
playTimeArray,
|
||||
|
||||
[clid]: ghost,
|
||||
[clid + 10]: ghost_gauge,
|
||||
@@ -1049,7 +1076,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
part: part,
|
||||
midx: midx,
|
||||
});
|
||||
let cflag = _.isNil(djt_data) ? cflg : Math.max(cflg, djt_data.cflg);
|
||||
const cflag = LampOut(version, (_.isNil(djt_data) ? cflg : Math.max(cflg, djt_data.cflg)));
|
||||
|
||||
await DB.Upsert<djtraining>(
|
||||
refid,
|
||||
@@ -1093,10 +1120,12 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
])
|
||||
);
|
||||
|
||||
let crate = 0, frate = 0, cflgs = 0, fcflgs = 0;
|
||||
let crate = 0, frate = 0;
|
||||
let cflgs = 0, fcflgs = 0;
|
||||
scores.forEach((rankscore, index) => {
|
||||
if (rankscore[1] != 1) cflgs += 1;
|
||||
if (rankscore[1] == 7) fcflgs += 1;
|
||||
rankscore[1] = LampOut(version, rankscore[1]);
|
||||
if (rankscore[1] > lamp.FAILED) cflgs += 1;
|
||||
if (rankscore[1] > lamp.EX_HARD_CLEAR) fcflgs += 1;
|
||||
|
||||
if (index == shop_rank) {
|
||||
shop_rank_data.push(
|
||||
@@ -1106,7 +1135,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
opname: shop_data.opname,
|
||||
rnum: String(index + 1),
|
||||
score: String(rankscore[0]),
|
||||
clflg: String(rankscore[1]),
|
||||
clflg: String(LampOut(version, rankscore[1])),
|
||||
pid: String(rankscore[2][1]),
|
||||
sgrade: String(rankscore[4][0]),
|
||||
dgrade: String(rankscore[4][1]),
|
||||
@@ -1115,6 +1144,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
face: String(rankscore[3][2]),
|
||||
body: String(rankscore[3][3]),
|
||||
hand: String(rankscore[3][4]),
|
||||
back: String(rankscore[3][5]),
|
||||
myFlg: String(1),
|
||||
s_baron: String(0),
|
||||
p_baron: String(0),
|
||||
@@ -1131,7 +1161,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
opname: shop_data.opname,
|
||||
rnum: String(index + 1),
|
||||
score: String(rankscore[0]),
|
||||
clflg: String(rankscore[1]),
|
||||
clflg: String(LampOut(version, rankscore[1])),
|
||||
pid: String(rankscore[2][1]),
|
||||
sgrade: String(rankscore[4][0]),
|
||||
dgrade: String(rankscore[4][1]),
|
||||
@@ -1140,6 +1170,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
face: String(rankscore[3][2]),
|
||||
body: String(rankscore[3][3]),
|
||||
hand: String(rankscore[3][4]),
|
||||
back: String(rankscore[3][5]),
|
||||
myFlg: String(0),
|
||||
s_baron: String(0),
|
||||
p_baron: String(0),
|
||||
@@ -1150,7 +1181,7 @@ export const musicreg: EPR = async (info, data, send) => {
|
||||
}
|
||||
});
|
||||
|
||||
let rate = version > 23 ? 1000 : 100;
|
||||
const rate = version > 23 ? 1000 : 100;
|
||||
crate = Math.round((cflgs / shop_rank_data.length) * rate);
|
||||
frate = Math.round((fcflgs / shop_rank_data.length) * rate);
|
||||
|
||||
@@ -1191,7 +1222,7 @@ export const musicbreg: EPR = async (info, data, send) => {
|
||||
const refid = await IDtoRef(Number($(data).attr().iidxid));
|
||||
const pgnum = Number($(data).attr().pgnum);
|
||||
const gnum = Number($(data).attr().gnum);
|
||||
const cflg = Number($(data).attr().cflg);
|
||||
const cflg = LampIn(version, Number($(data).attr().cflg));
|
||||
let mid = Number($(data).attr().mid);
|
||||
let clid = 0; // SP BEGINNER //
|
||||
let exscore = (pgnum * 2 + gnum);
|
||||
@@ -1213,6 +1244,7 @@ export const musicbreg: EPR = async (info, data, send) => {
|
||||
let esArray = Array<number>(10).fill(0); // EXSCORE //
|
||||
let optArray = Array<number>(10).fill(0); // USED OPTION (CastHour) //
|
||||
let opt2Array = Array<number>(10).fill(0); // USED OPTION (CastHour) //
|
||||
let playTimeArray = Array<number>(10).fill(0); // LAST PLAYED TIME BY DIFFICULTY //
|
||||
|
||||
if (_.isNil(music_data)) {
|
||||
pgArray[clid] = pgnum;
|
||||
@@ -1237,6 +1269,10 @@ export const musicbreg: EPR = async (info, data, send) => {
|
||||
rArray = music_data.rArray;
|
||||
}
|
||||
|
||||
if (!_.isNil(music_data.playTimeArray)) {
|
||||
playTimeArray = music_data.playTimeArray;
|
||||
}
|
||||
|
||||
const pExscore = esArray[clid];
|
||||
if (exscore > pExscore) {
|
||||
pgArray[clid] = Math.max(pgArray[clid], pgnum);
|
||||
@@ -1247,6 +1283,8 @@ export const musicbreg: EPR = async (info, data, send) => {
|
||||
cArray[clid] = Math.max(cArray[clid], cflg);
|
||||
}
|
||||
|
||||
playTimeArray[clid] = Date.now();
|
||||
|
||||
await DB.Upsert<score>(
|
||||
refid,
|
||||
{
|
||||
@@ -1263,6 +1301,7 @@ export const musicbreg: EPR = async (info, data, send) => {
|
||||
esArray,
|
||||
optArray,
|
||||
opt2Array,
|
||||
playTimeArray,
|
||||
|
||||
[clid]: null,
|
||||
[clid + 10]: null,
|
||||
@@ -1291,50 +1330,46 @@ export const musiccrate: EPR = async (info, data, send) => {
|
||||
const scores = await DB.Find<score>(null, {
|
||||
collection: "score",
|
||||
});
|
||||
const cltype = version < 13 ? Number(command[1]) : Number($(data).attr().cltype);
|
||||
const cltype = version < 13 ? Number(command[1]) : (_.isNil($(data).attr().cltype) ? 0 : Number($(data).attr().cltype));
|
||||
|
||||
let cFlgs: Record<number, number[]> = {},
|
||||
fcFlgs: Record<number, number[]> = {},
|
||||
totalFlgs: Record<number, number[]> = {};
|
||||
|
||||
scores.forEach((res) => {
|
||||
if (_.isNil(res.cArray)) throw new Error("[music.crate] There is unsupported entry in Database");
|
||||
|
||||
let mVersion = Math.floor(res.mid / 1000);
|
||||
if (mVersion > version) return;
|
||||
if (res.mid < 0) return;
|
||||
|
||||
let totalArray = Array<number>(10).fill(0);
|
||||
let cFlgArray = Array<number>(10).fill(0);
|
||||
let fcFlgArray = Array<number>(10).fill(0);
|
||||
|
||||
if (_.isNil(res.cArray)) throw new Error("[music.crate] There is unsupported entry in Database");
|
||||
|
||||
for (let a = 0; a < 10; a++) {
|
||||
if (res.cArray[a] != 0) totalArray[a] += 1;
|
||||
if (res.cArray[a] != 1) cFlgArray[a] += 1;
|
||||
if (res.cArray[a] == 7) fcFlgArray[a] += 1;
|
||||
let temp_mid = version < 20 ? NewMidToOldMid(res.mid) : res.mid;
|
||||
if (_.isNil(totalFlgs[temp_mid])) {
|
||||
totalFlgs[temp_mid] = Array<number>(10).fill(0);
|
||||
cFlgs[temp_mid] = Array<number>(10).fill(0);
|
||||
fcFlgs[temp_mid] = Array<number>(10).fill(0);
|
||||
}
|
||||
|
||||
let temp_mid = version < 20 ? NewMidToOldMid(res.mid) : res.mid;
|
||||
totalFlgs[temp_mid] = totalArray;
|
||||
cFlgs[temp_mid] = cFlgArray;
|
||||
fcFlgs[temp_mid] = fcFlgArray;
|
||||
for (let a = 0; a < 10; a++) {
|
||||
const cflg = LampOut(version, res.cArray[a]);
|
||||
if (cflg > lamp.NO_PLAY) totalFlgs[temp_mid][a] += 1;
|
||||
|
||||
if (cflg > lamp.FAILED) cFlgs[temp_mid][a] += 1;
|
||||
if (cflg > lamp.EX_HARD_CLEAR) fcFlgs[temp_mid][a] += 1;
|
||||
}
|
||||
});
|
||||
|
||||
let result = {}, c = [], cdata = [];
|
||||
const rate = version > 23 ? 1000 : 100;
|
||||
for (const key in totalFlgs) {
|
||||
let cRate = Array<number>(10).fill(0);
|
||||
let fcRate = Array<number>(10).fill(0);
|
||||
let cRate = version < 24 ? Array<number>(10).fill(0) : Array<number>(10).fill(-1);
|
||||
let fcRate = version < 24 ? Array<number>(10).fill(0) : Array<number>(10).fill(-1);
|
||||
|
||||
for (let a = 0; a < 10; a++) {
|
||||
if (totalFlgs[key][a] == 0) continue;
|
||||
|
||||
if (version > 23) {
|
||||
cRate[a] = Math.round((cFlgs[key][a] / totalFlgs[key][a]) * 1000);
|
||||
fcRate[a] = Math.round((fcFlgs[key][a] / totalFlgs[key][a]) * 1000);
|
||||
} else {
|
||||
cRate[a] = Math.round((cFlgs[key][a] / totalFlgs[key][a]) * 100);
|
||||
fcRate[a] = Math.round((fcFlgs[key][a] / totalFlgs[key][a]) * 100);
|
||||
}
|
||||
cRate[a] = Math.round((cFlgs[key][a] / totalFlgs[key][a]) * rate);
|
||||
fcRate[a] = Math.round((fcFlgs[key][a] / totalFlgs[key][a]) * rate);
|
||||
}
|
||||
|
||||
let indices = [1, 2, 3, 6, 7, 8], mapValue = null;
|
||||
@@ -1371,7 +1406,7 @@ export const musiccrate: EPR = async (info, data, send) => {
|
||||
let sendOption: EamuseSendOption = {};
|
||||
if (version < 14) {
|
||||
result = {
|
||||
"@attr": { method: "musiccrate" },
|
||||
"@attr": { method: "musiccrate", expire: "300" },
|
||||
...result
|
||||
};
|
||||
sendOption = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { pcdata, KDZ_pcdata, IIDX27_pcdata, IIDX28_pcdata, IIDX29_pcdata, IIDX30_pcdata, JDZ_pcdata, LDJ_pcdata, IIDX21_pcdata, IIDX22_pcdata, IIDX23_pcdata, IIDX24_pcdata, IIDX25_pcdata, IIDX26_pcdata, JDJ_pcdata, HDD_pcdata, I00_pcdata, GLD_pcdata, IIDX31_pcdata, IIDX32_pcdata, IIDX33_pcdata, FDD_pcdata, ECO_pcdata, E11_pcdata, D01_pcdata } from "../models/pcdata";
|
||||
import { grade } from "../models/grade";
|
||||
import { custom, default_custom } from "../models/custom";
|
||||
import { IDtoCode, IDtoRef, GetVersion, ReftoProfile, ReftoPcdata, ReftoQPRO, appendSettingConverter, NumArrayToString, GetModel, GetCommand, NumArrayToHex } from "../util";
|
||||
import { IDtoCode, IDtoRef, GetVersion, ReftoProfile, ReftoPcdata, ReftoQPRO, appendSettingConverter, NumArrayToString, GetModel, GetCommand, NumArrayToHex, ClidToPlaySide } from "../util";
|
||||
import { eisei_grade, eisei_grade_data, lightning_custom, lightning_musicfilter, lightning_musicfilter_sort, lightning_musicmemo, lightning_musicmemo_new, lightning_playdata, lightning_settings, lm_customdata, lm_playdata, lm_settings, lm_settings_new, musicfilter_data, musicfilter_sort_data, musicmemo_data, musicmemo_data_new } from "../models/lightning";
|
||||
import { profile, default_profile } from "../models/profile";
|
||||
import { rival, rival_data, rival_sub } from "../models/rival";
|
||||
@@ -15,6 +15,7 @@ import { extra_favorite } from "../models/favorite";
|
||||
import { activity, activity_mybest } from "../models/activity";
|
||||
import { extra_boss } from "../models/extraboss";
|
||||
import { djtraining } from "../models/djtraining";
|
||||
import { lane_ticket } from "../models/ticket";
|
||||
|
||||
export const pcmethod: EPR = async (info, data, send) => {
|
||||
const command = GetCommand(data);
|
||||
@@ -49,18 +50,32 @@ export const pccommon: EPR = async (info, data, send) => {
|
||||
expert_secret_full_open: {},
|
||||
}
|
||||
|
||||
let system_voice = [];
|
||||
if (version >= 32) {
|
||||
for (let a = 0; a < 5; a++) {
|
||||
const flags = version == 32
|
||||
? { s_m: String(_.random(0, 1)), s_f: String(_.random(0, 1)), e_m: String(_.random(0, 1)), e_f: String(_.random(0, 1)) }
|
||||
: { s_a: String(_.random(0, 1)), s_b: String(_.random(0, 1)), s_c: String(_.random(0, 1)), e_a: String(_.random(0, 1)), e_b: String(_.random(0, 1)), e_c: String(_.random(0, 1)) };
|
||||
|
||||
system_voice.push(K.ATTR({
|
||||
season: String(a),
|
||||
...flags,
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
// have no idea what some of attribute or value does //
|
||||
// exposing these to plugin setting or use static value //
|
||||
switch (version) {
|
||||
case 10:
|
||||
break;
|
||||
case 11:
|
||||
result["@attr"].tf = 1;
|
||||
result["@attr"].csok = 1;
|
||||
result["@attr"].tf = "1";
|
||||
result["@attr"].csok = "1";
|
||||
break;
|
||||
case 12:
|
||||
result["@attr"].tf = 1;
|
||||
result["@attr"].beok = 1;
|
||||
result["@attr"].tf = "1";
|
||||
result["@attr"].beok = "1";
|
||||
break;
|
||||
case 13:
|
||||
break;
|
||||
@@ -370,19 +385,9 @@ export const pccommon: EPR = async (info, data, send) => {
|
||||
vip_pass_black: {},
|
||||
deller_bonus: K.ATTR({ open: String(1) }),
|
||||
common_evnet: K.ATTR({ flg: String(-1) }),
|
||||
/*system_voice: {
|
||||
season: [
|
||||
{
|
||||
"@attr": {
|
||||
season: String(0), // 0 -> 4 //
|
||||
s_m: String(0),
|
||||
s_f: String(0),
|
||||
e_m: String(0),
|
||||
e_f: String(0),
|
||||
}
|
||||
}
|
||||
]
|
||||
},*/
|
||||
system_voice: {
|
||||
season: system_voice
|
||||
},
|
||||
play_video: {},
|
||||
music_retry: {},
|
||||
display_asio_logo: {},
|
||||
@@ -402,21 +407,9 @@ export const pccommon: EPR = async (info, data, send) => {
|
||||
vip_pass_black: {},
|
||||
deller_bonus: K.ATTR({ open: String(1) }),
|
||||
common_evnet: K.ATTR({ flg: String(-1) }),
|
||||
/*system_voice: {
|
||||
season: [
|
||||
{
|
||||
"@attr": {
|
||||
season: String(0), // 0 -> 4 //
|
||||
s_a: String(0),
|
||||
s_b: String(0),
|
||||
s_c: String(0),
|
||||
e_a: String(0),
|
||||
e_b: String(0),
|
||||
e_c: String(0),
|
||||
}
|
||||
}
|
||||
]
|
||||
},*/
|
||||
system_voice: {
|
||||
season: system_voice
|
||||
},
|
||||
play_video: {},
|
||||
music_retry: {},
|
||||
display_asio_logo: {},
|
||||
@@ -1470,40 +1463,14 @@ export const pcget: EPR = async (info, data, send) => {
|
||||
}
|
||||
|
||||
/*** TODO:: figure out how badges works (following table is for EPOLIS)
|
||||
[save] - element names are following below but get checks for id 0 ~ 16
|
||||
step_up [2]
|
||||
today_recommend
|
||||
weekly_ranking
|
||||
visitor [2]
|
||||
notes_radar [2]
|
||||
tsujigiri
|
||||
iidx_exam
|
||||
world_tourism
|
||||
event1
|
||||
arena [2]
|
||||
event2
|
||||
[save] - badge names are sent in string on save but on get it checks number (category_id)
|
||||
(name) - category_name
|
||||
flg_id - flag_id
|
||||
flg - badge_flg
|
||||
|
||||
[get] (starts from zero)
|
||||
[get]
|
||||
category_id - up to 16
|
||||
badge_flg_id
|
||||
- This can be up to 23 [category_id, badge_flg_id]
|
||||
- 0 - 23 [djLevel]
|
||||
- 1 - 23 [clear]
|
||||
- 2 - 1 [grade]
|
||||
- 3 - 1 [step_up]
|
||||
- 4 - (none)
|
||||
- 5 - (none)
|
||||
- 6 - (none)
|
||||
- 7 - 1 [visitor]
|
||||
- 8 - 1 [notes_radar]
|
||||
- 10 - (none)
|
||||
- 11 - 1
|
||||
- 12 - (none) [tourism?]
|
||||
- 13 - (none) [event]
|
||||
- 14 - 1
|
||||
- 15 - (none)
|
||||
- 16 - (none) [event2]
|
||||
- 3001 - 9
|
||||
badge_flg_id - This can be up to 23 [category_id, badge_flg_id]
|
||||
badge_flg (these are s64 - this may exceed max int value)
|
||||
|
||||
- following codes are dummy code
|
||||
@@ -1517,7 +1484,7 @@ export const pcget: EPR = async (info, data, send) => {
|
||||
|
||||
badge.forEach(res => {
|
||||
const id = badgeData[res.category_name];
|
||||
if (id !== undefined) {
|
||||
if (!_.isNil(id)) {
|
||||
bArray.push({
|
||||
id,
|
||||
flg_id: res.flg_id,
|
||||
@@ -2212,7 +2179,7 @@ export const pcsave: EPR = async (info, data, send) => {
|
||||
const hasTowerData = !(_.isNil($(data).element("tower_data")));
|
||||
const hasSkinData = !(_.isNil($(data).element("skin_equip"))) || !(_.isNil($(data).element("pskin_equip")));
|
||||
const hasTDJSkinData = !(_.isNil($(data).element("tdjskin_equip"))) || !(_.isNil($(data).element("vskin_equip")));
|
||||
const hasVisualSkinData = !(_.isNil($(data).element("vskin_customize_setting")));
|
||||
const hasVisualSkinData = !(_.isNil($(data).element("vskin_setting")));
|
||||
const hasMusicFilter = !(_.isNil($(data).element("music_filter")));
|
||||
const hasBadgeData = !(_.isNil($(data).element("badge")));
|
||||
const hasActivityData = !(_.isNil($(data).element("activity_data")));
|
||||
@@ -2242,7 +2209,12 @@ export const pcsave: EPR = async (info, data, send) => {
|
||||
|
||||
if (version >= 31) {
|
||||
lm_settings.keyboard_kind = Number($(data).attr("lightning_setting").keyboard_kind);
|
||||
lm_settings.brightness = version < 33 ? Number($(data).attr("lightning_setting").brightness) : Number($(data).attr("lightning_setting").brightness_bg);
|
||||
if (version < 33) {
|
||||
lm_settings.brightness = Number($(data).attr("lightning_setting").brightness);
|
||||
}
|
||||
else {
|
||||
lm_settings.brightness = Number($(data).attr("lightning_setting").brightness_bg);
|
||||
}
|
||||
|
||||
if (version >= 33) {
|
||||
lm_settings.brightness_concent = Number($(data).attr("lightning_setting").brightness_concentration);
|
||||
@@ -5037,7 +5009,7 @@ export const pcsave: EPR = async (info, data, send) => {
|
||||
},
|
||||
{
|
||||
$set: {
|
||||
play_num: Number(vocaloEvt.attr().play_num),
|
||||
play_num: Number(vocaloEvt.attr().event_play_num),
|
||||
last_select_music: Number(vocaloEvt.attr().last_select_music),
|
||||
point_get: Number(vocaloEvt.attr().point_get),
|
||||
point_use_0: Number(vocaloEvt.attr().point_use_0),
|
||||
@@ -5567,19 +5539,33 @@ export const pcsave: EPR = async (info, data, send) => {
|
||||
return send.success();
|
||||
};
|
||||
|
||||
export const pcgetlanegacha: EPR = async (info, data, send) => {
|
||||
let tArray = [];
|
||||
for (let i = 0; i < 100; i++) {
|
||||
let random = _.random(0, 5040);
|
||||
export const pcshopregister: EPR = async (info, data, send) => {
|
||||
let refid = IDtoRef(Number($(data).str("iidx_id")));
|
||||
let lid = $(data).str("location_id");
|
||||
|
||||
// TODO //
|
||||
|
||||
return send.success();
|
||||
};
|
||||
|
||||
export const pcgetlanegacha: EPR = async (info, data, send) => {
|
||||
const version = GetVersion(info);
|
||||
const refid = await IDtoRef(Number($(data).attr().iidxid));
|
||||
|
||||
const tickets = await DB.Find<lane_ticket>(refid, {
|
||||
collection: "lane_ticket",
|
||||
version,
|
||||
});
|
||||
let tArray = [];
|
||||
tickets.forEach((res) => {
|
||||
tArray.push(
|
||||
K.ATTR({
|
||||
ticket_id: String(i + 1),
|
||||
arrange_id: String(random),
|
||||
expire_date: String(4102326000),
|
||||
ticket_id: String(res.ticket_id),
|
||||
arrange_id: String(res.arrange_id),
|
||||
expire_date: String(Math.floor((Date.now() / 1000) + 604800)), // set expire date 7 days from now //
|
||||
})
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
// settings(sp, dp_left, dp_right), info(last_page) //
|
||||
|
||||
@@ -5591,35 +5577,64 @@ export const pcgetlanegacha: EPR = async (info, data, send) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const pcshopregister: EPR = async (info, data, send) => {
|
||||
let refid = IDtoRef(Number($(data).str("iidx_id")));
|
||||
let lid = $(data).str("location_id");
|
||||
|
||||
// TODO //
|
||||
|
||||
return send.success();
|
||||
};
|
||||
|
||||
export const pcdrawlanegacha: EPR = async (info, data, send) => {
|
||||
let drawNum = Number($(data).attr().draw_num);
|
||||
let tArray = [];
|
||||
const version = GetVersion(info);
|
||||
const refid = await IDtoRef(Number($(data).attr().iidxid));
|
||||
|
||||
for (let i = 0; i < drawNum; i++) {
|
||||
let random = _.random(0, 5040);
|
||||
const proc_type = Number($(data).attr().proc_type);
|
||||
if (proc_type == 0) {
|
||||
return send.object({
|
||||
session: K.ATTR({
|
||||
session_id: String(_.random(0, 10000)),
|
||||
}),
|
||||
});
|
||||
}
|
||||
const session_id = Number($(data).attr().session_id);
|
||||
const drawNum = Number($(data).attr().draw_num);
|
||||
|
||||
const tickets = await DB.Find<lane_ticket>(refid, {
|
||||
collection: "lane_ticket",
|
||||
version,
|
||||
});
|
||||
const usedIds = new Set(tickets.map(ticket => ticket.ticket_id));
|
||||
const availableIds = Array.from({ length: 10000 }, (_, i) => i)
|
||||
.filter(id => !usedIds.has(id));
|
||||
if (availableIds.length === 0) {
|
||||
return send.deny();
|
||||
}
|
||||
|
||||
let tArray = [];
|
||||
for (let i = 0; i < drawNum && availableIds.length > 0; i++) {
|
||||
const index = _.random(0, availableIds.length - 1);
|
||||
const ticket_id = availableIds.splice(index, 1)[0];
|
||||
const random = _.random(0, 5039);
|
||||
|
||||
tArray.push(
|
||||
K.ATTR({
|
||||
ticket_id: String(_.random(101, 10000)),
|
||||
ticket_id: String(ticket_id),
|
||||
arrange_id: String(random),
|
||||
expire_date: String(4102326000),
|
||||
expire_date: String(Math.floor((Date.now() / 1000) + 604800)),
|
||||
})
|
||||
);
|
||||
|
||||
await DB.Upsert<lane_ticket>(
|
||||
refid,
|
||||
{
|
||||
collection: "lane_ticket",
|
||||
version,
|
||||
ticket_id,
|
||||
},
|
||||
{
|
||||
$set: {
|
||||
arrange_id: random,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return send.object({
|
||||
ticket: tArray,
|
||||
session: K.ATTR({
|
||||
session_id: String(0),
|
||||
session_id: String(session_id),
|
||||
}),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@ export const userdataread: EPR = async (info, data, send) => {
|
||||
|
||||
return send.object({
|
||||
b: K.ITEM("str", user.userdata),
|
||||
}, { format: false, header: false });
|
||||
}, { status: "SOK", format: false, header: false });
|
||||
}
|
||||
|
||||
export const userdatawrite: EPR = async (info, data, send) => {
|
||||
|
||||
@@ -1,3 +1,39 @@
|
||||
export const badgeBaseMap: Record<string, number> = {
|
||||
djLevel: 0,
|
||||
clear: 1,
|
||||
grade: 2,
|
||||
step_up: 3,
|
||||
visitor: 6,
|
||||
notes_radar: 7,
|
||||
};
|
||||
|
||||
export const badgeVersionMap: Record<number | "default", Record<string, number | null>> = {
|
||||
30: {
|
||||
step_up: null,
|
||||
visitor: 6,
|
||||
world_tourism: 8,
|
||||
event1: 9,
|
||||
},
|
||||
31: {
|
||||
visitor: 7,
|
||||
notes_radar: 8,
|
||||
world_tourism: 12,
|
||||
event1: 13,
|
||||
event2: 16,
|
||||
},
|
||||
32: {
|
||||
visitor: 7,
|
||||
notes_radar: 8,
|
||||
world_tourism: 12,
|
||||
event1: 13,
|
||||
event2: 15,
|
||||
},
|
||||
33: {
|
||||
event1: 3301,
|
||||
},
|
||||
"default": {}
|
||||
};
|
||||
|
||||
export interface badge {
|
||||
collection: "badge";
|
||||
version: number;
|
||||
@@ -7,43 +43,3 @@ export interface badge {
|
||||
flg: number;
|
||||
}
|
||||
|
||||
export const badgeBaseMap: Record<string, number> = {
|
||||
djLevel: 0,
|
||||
clear: 1,
|
||||
grade: 2,
|
||||
};
|
||||
|
||||
export const badgeVersionMap: Record<number | "default", Record<string, number>> = {
|
||||
30: {
|
||||
visitor: 6,
|
||||
notes_radar: 7,
|
||||
world_tourism: 8,
|
||||
event1: 9,
|
||||
},
|
||||
31: {
|
||||
step_up: 3,
|
||||
visitor: 6,
|
||||
notes_radar: 7,
|
||||
event1: 13,
|
||||
event2: 16,
|
||||
},
|
||||
32: {
|
||||
step_up: 3,
|
||||
visitor: 6,
|
||||
notes_radar: 7,
|
||||
event1: 13,
|
||||
event2: 15,
|
||||
},
|
||||
33: {
|
||||
step_up: 3,
|
||||
visitor: 6,
|
||||
notes_radar: 7,
|
||||
event1: 3301,
|
||||
},
|
||||
default: {
|
||||
step_up: 3,
|
||||
visitor: 7,
|
||||
notes_radar: 8,
|
||||
world_tourism: 12,
|
||||
},
|
||||
};
|
||||
|
||||
10
iidx@asphyxia/models/clearlamp.ts
Normal file
10
iidx@asphyxia/models/clearlamp.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export enum lamp {
|
||||
NO_PLAY,
|
||||
FAILED,
|
||||
ASSIST_CLEAR,
|
||||
EASY_CLEAR,
|
||||
CLEAR,
|
||||
HARD_CLEAR,
|
||||
EX_HARD_CLEAR,
|
||||
FULL_COMBO,
|
||||
}
|
||||
@@ -25,14 +25,14 @@ export interface custom {
|
||||
|
||||
skin_customize_flg: number[];
|
||||
|
||||
note_size: number; // epolis //
|
||||
note_size: number; // EPOLIS //
|
||||
lift_cover: number;
|
||||
note_beam_size: number;
|
||||
|
||||
cn_color: number; // sparkle shower//
|
||||
cn_color: number; // Sparkle Shower //
|
||||
cn_size: number;
|
||||
|
||||
// appendsettings
|
||||
// appendsettings //
|
||||
rank_folder: boolean;
|
||||
clear_folder: boolean;
|
||||
diff_folder: boolean;
|
||||
@@ -53,15 +53,15 @@ export interface custom {
|
||||
qpro_face: number;
|
||||
qpro_hand: number;
|
||||
qpro_body: number;
|
||||
qpro_back: number; // epolis //
|
||||
qpro_back: number; // EPOLIS //
|
||||
|
||||
// qpro_secret (heroic verse) //
|
||||
// qpro_secret (HEROIC VERSE) //
|
||||
qpro_secret_head: string[];
|
||||
qpro_secret_hair: string[];
|
||||
qpro_secret_face: string[];
|
||||
qpro_secret_hand: string[];
|
||||
qpro_secret_body: string[];
|
||||
qpro_secret_back: string[]; // epolis //
|
||||
qpro_secret_back: string[]; // EPOLIS //
|
||||
}
|
||||
|
||||
export const default_custom = {
|
||||
@@ -84,7 +84,8 @@ export const default_custom = {
|
||||
disable_hcn_color: false,
|
||||
first_note_preview: 0,
|
||||
|
||||
skin_customize_flg: Array<number>(3).fill(-1),
|
||||
skin_customize_flg: Array<number>(16).fill(-1),
|
||||
vskin_customize_flg: Array<number>(6).fill(-1),
|
||||
|
||||
note_size: 0,
|
||||
lift_cover: 0,
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface score {
|
||||
|
||||
optArray: number[];
|
||||
opt2Array: number[];
|
||||
playTimeArray?: number[];
|
||||
}
|
||||
|
||||
export interface score_top {
|
||||
|
||||
8
iidx@asphyxia/models/ticket.ts
Normal file
8
iidx@asphyxia/models/ticket.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export interface lane_ticket {
|
||||
collection: "lane_ticket";
|
||||
version: number;
|
||||
|
||||
ticket_id: number;
|
||||
|
||||
arrange_id: number;
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import { lamp } from "./models/clearlamp";
|
||||
import { custom } from "./models/custom";
|
||||
import { pcdata } from "./models/pcdata";
|
||||
import { profile } from "./models/profile";
|
||||
@@ -166,40 +167,20 @@ export async function ReftoPcdata(refid: string, version: number) {
|
||||
version: version,
|
||||
});
|
||||
|
||||
let p_data = [];
|
||||
let p_data: number[] = [];
|
||||
try {
|
||||
switch (version) {
|
||||
case 20:
|
||||
case 21:
|
||||
case 22:
|
||||
case 23:
|
||||
case 24:
|
||||
case 25:
|
||||
case 26:
|
||||
p_data = [
|
||||
pcdata.sgid,
|
||||
pcdata.dgid,
|
||||
pcdata.sach,
|
||||
pcdata.dach,
|
||||
pcdata.st_sp_ach,
|
||||
pcdata.st_dp_ach,
|
||||
];
|
||||
break;
|
||||
default:
|
||||
p_data = [
|
||||
pcdata.sgid,
|
||||
pcdata.dgid,
|
||||
pcdata.sach,
|
||||
pcdata.dach,
|
||||
];
|
||||
break;
|
||||
}
|
||||
p_data = [
|
||||
pcdata.sgid ?? 0,
|
||||
pcdata.dgid ?? 0,
|
||||
pcdata.sach ?? 0,
|
||||
pcdata.dach ?? 0,
|
||||
];
|
||||
|
||||
// this seems leftover from tricoro but still being referenced until HEROIC VERSE [st_sp_ach/st_dp_ach] //
|
||||
for (let a = 0; a < p_data.length; a++) {
|
||||
if (_.isNil(p_data[a])) p_data[a] = 0;
|
||||
if (version >= 20) {
|
||||
// this seems leftover from tricoro but still being referenced until HEROIC VERSE [st_sp_ach/st_dp_ach] //
|
||||
p_data.push(pcdata.st_sp_ach ?? 0);
|
||||
p_data.push(pcdata.st_dp_ach ?? 0);
|
||||
}
|
||||
|
||||
} catch {
|
||||
p_data = [0, 0, 0, 0, 0, 0];
|
||||
}
|
||||
@@ -213,26 +194,18 @@ export async function ReftoQPRO(refid: string, version: number) {
|
||||
version: version,
|
||||
});
|
||||
|
||||
let qpro_data = [];
|
||||
let qpro_data: number[] = [];
|
||||
try {
|
||||
qpro_data = [
|
||||
custom.qpro_hair ?? 0,
|
||||
custom.qpro_head ?? 0,
|
||||
custom.qpro_face ?? 0,
|
||||
custom.qpro_body ?? 0,
|
||||
custom.qpro_hand ?? 0
|
||||
];
|
||||
|
||||
if (version >= 31) {
|
||||
qpro_data = [
|
||||
custom.qpro_hair,
|
||||
custom.qpro_head,
|
||||
custom.qpro_face,
|
||||
custom.qpro_body,
|
||||
custom.qpro_hand,
|
||||
custom.qpro_back,
|
||||
];
|
||||
}
|
||||
else {
|
||||
qpro_data = [
|
||||
custom.qpro_hair,
|
||||
custom.qpro_head,
|
||||
custom.qpro_face,
|
||||
custom.qpro_body,
|
||||
custom.qpro_hand,
|
||||
];
|
||||
qpro_data.push(custom.qpro_back ?? 0);
|
||||
}
|
||||
} catch {
|
||||
qpro_data = [0, 0, 0, 0, 0, 0];
|
||||
@@ -274,3 +247,97 @@ export function GetCommand(data: any) {
|
||||
|
||||
return command.split(' ');
|
||||
}
|
||||
|
||||
export function LampIn(version: number, cflg: number) {
|
||||
if (version == 9) {
|
||||
return cflg == 1 ? lamp.CLEAR : lamp.FAILED;
|
||||
}
|
||||
else if (version == 10) {
|
||||
switch (cflg) {
|
||||
case 1: return lamp.EASY_CLEAR;
|
||||
case 2: return lamp.CLEAR;
|
||||
case 3: return lamp.FULL_COMBO;
|
||||
default: return lamp.FAILED;
|
||||
}
|
||||
}
|
||||
else if (version >= 11 && version < 14) {
|
||||
switch (cflg) {
|
||||
case 0: return lamp.NO_PLAY;
|
||||
case 1: return lamp.FAILED;
|
||||
case 2: return lamp.EASY_CLEAR;
|
||||
case 3: return lamp.CLEAR;
|
||||
case 4: return lamp.HARD_CLEAR;
|
||||
case 5: return lamp.FULL_COMBO;
|
||||
default: return lamp.FAILED;
|
||||
}
|
||||
}
|
||||
else if (version >= 14 && version < 20) {
|
||||
switch (cflg) {
|
||||
case 0: return lamp.NO_PLAY;
|
||||
case 1: return lamp.FAILED;
|
||||
case 2: return lamp.ASSIST_CLEAR;
|
||||
case 3: return lamp.EASY_CLEAR;
|
||||
case 4: return lamp.CLEAR;
|
||||
case 5: return lamp.HARD_CLEAR;
|
||||
case 6: return lamp.FULL_COMBO;
|
||||
default: return lamp.FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
return cflg;
|
||||
}
|
||||
|
||||
export function LampOut(version: number, cflg: number) {
|
||||
if (version == 9) {
|
||||
return cflg == lamp.NO_PLAY || cflg == lamp.FAILED ? 0 : 1;
|
||||
}
|
||||
else if (version == 10) {
|
||||
switch (cflg) {
|
||||
case lamp.NO_PLAY:
|
||||
case lamp.FAILED:
|
||||
return 0;
|
||||
case lamp.ASSIST_CLEAR:
|
||||
case lamp.EASY_CLEAR:
|
||||
return 1;
|
||||
case lamp.CLEAR:
|
||||
case lamp.HARD_CLEAR:
|
||||
case lamp.EX_HARD_CLEAR:
|
||||
return 2;
|
||||
case lamp.FULL_COMBO:
|
||||
return 3;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else if (version >= 11 && version < 14) {
|
||||
switch (cflg) {
|
||||
case lamp.NO_PLAY: return 0;
|
||||
case lamp.FAILED: return 1;
|
||||
case lamp.ASSIST_CLEAR:
|
||||
case lamp.EASY_CLEAR:
|
||||
return 2;
|
||||
case lamp.CLEAR: return 3;
|
||||
case lamp.HARD_CLEAR:
|
||||
case lamp.EX_HARD_CLEAR:
|
||||
return 4;
|
||||
case lamp.FULL_COMBO: return 5;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
else if (version >= 14 && version < 20) {
|
||||
switch (cflg) {
|
||||
case lamp.NO_PLAY: return 0;
|
||||
case lamp.FAILED: return 1;
|
||||
case lamp.ASSIST_CLEAR: return 2;
|
||||
case lamp.EASY_CLEAR: return 3;
|
||||
case lamp.CLEAR: return 4;
|
||||
case lamp.HARD_CLEAR:
|
||||
case lamp.EX_HARD_CLEAR:
|
||||
return 5;
|
||||
case lamp.FULL_COMBO: return 6;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return cflg;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ $("#version").on("change", function () {
|
||||
$("#effect").val(data["custom"].effect);
|
||||
$("#bomb_size").val(data["custom"].bomb_size);
|
||||
$("#disable_hcn_color").prop("checked", data["custom"].disable_hcn_color);
|
||||
$("#first_note_preview").prop("checked", Number(data["custom"].first_note_preview) === 1);
|
||||
$("#first_note_preview").val(data["custom"].first_note_preview);
|
||||
|
||||
if (data["custom"].note_size == undefined) $("#note_size").val(0);
|
||||
else $("#note_size").val(data["custom"].note_size);
|
||||
@@ -53,7 +53,7 @@ $("#version").on("change", function () {
|
||||
$("#rival_info").prop("checked", data["custom"].rival_info);
|
||||
$("#hide_playcount").prop("checked", data["custom"].hide_playcount);
|
||||
$("#disable_graph_cutin").prop("checked", data["custom"].disable_graph_cutin);
|
||||
$("#class_hispeed").prop("checked", data["custom"].class_hispeed);
|
||||
$("#classic_hispeed").prop("checked", data["custom"].classic_hispeed);
|
||||
$("#rival_played_folder").prop("checked", data["custom"].rival_played_folder);
|
||||
$("#hide_iidxid").prop("checked", data["custom"].hide_iidxid);
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
//DATA//
|
||||
profile: DB.FindOne(refid, { collection: 'profile' })
|
||||
pcdata: DB.FindOne(refid, { collection: 'pcdata' })
|
||||
pcdatas: DB.Find(refid, { collection: 'pcdata' })
|
||||
|
||||
-
|
||||
const pcdata = (pcdatas || []).sort((a, b) => b.updatedAt - a.updatedAt)[0];
|
||||
const version = [
|
||||
10,
|
||||
11,
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
//DATA//
|
||||
profile: DB.FindOne(refid, { collection: "profile" })
|
||||
pcdata: DB.FindOne(refid, { collection: "pcdata" })
|
||||
custom: DB.FindOne(refid, { collection: "custom" })
|
||||
lm_custom: DB.FindOne(refid, { collection: "lightning_custom" })
|
||||
|
||||
profile: DB.FindOne(refid, { collection: 'profile' })
|
||||
pcdatas: DB.Find(refid, { collection: 'pcdata' })
|
||||
customs: DB.Find(refid, { collection: 'custom' })
|
||||
lm_customs: DB.Find(refid, { collection: 'lightning_custom' })
|
||||
-
|
||||
const pcdata = (pcdatas || []).sort((a, b) => b.updatedAt - a.updatedAt)[0];
|
||||
const custom = (customs || []).filter((data) => data.version == pcdata.version)[0];
|
||||
const lm_custom = (lm_customs || []).filter((data) => data.version == pcdata.version)[0];
|
||||
const version = [
|
||||
10,
|
||||
11,
|
||||
@@ -99,11 +101,30 @@ div
|
||||
{val: 19, name: 'キャノンボーラーズ (CB)'},
|
||||
{val: 20, name: 'Rootage'},
|
||||
{val: 21, name: 'HEROIC VERSE'},
|
||||
{val: 22, name: 'CastHour'},
|
||||
{val: 23, name: 'RESIDENT'},
|
||||
{val: 24, name: 'いちご (strawberry)'},
|
||||
{val: 25, name: 'EPOLIS'},
|
||||
{val: 26, name: 'Pinky Crush'}
|
||||
{val: 22, name: 'Turntable 22'},
|
||||
{val: 23, name: 'Turntable 23'},
|
||||
{val: 24, name: 'Turntable 24'},
|
||||
{val: 25, name: 'Turntable 25'},
|
||||
{val: 26, name: 'Turntable 26'},
|
||||
{val: 27, name: 'Turntable 27'},
|
||||
{val: 28, name: 'Turntable 28'},
|
||||
{val: 29, name: 'いちご (strawberry)'},
|
||||
{val: 30, name: 'CastHour'},
|
||||
{val: 31, name: 'Turntable 31'},
|
||||
{val: 32, name: 'Turntable 32'},
|
||||
{val: 33, name: 'Turntable 33'},
|
||||
{val: 34, name: 'Turntable 34'},
|
||||
{val: 35, name: 'Turntable 35'},
|
||||
{val: 36, name: 'Turntable 36'},
|
||||
{val: 37, name: 'Turntable 37'},
|
||||
{val: 38, name: 'Turntable 38'},
|
||||
{val: 39, name: 'Turntable 39'},
|
||||
{val: 40, name: 'Turntable 40'},
|
||||
{val: 41, name: 'RESIDENT'},
|
||||
{val: 42, name: 'Turntable 42'},
|
||||
{val: 43, name: 'EPOLIS'},
|
||||
{val: 44, name: 'Pinky Crush'},
|
||||
{val: 45, name: 'Sparkle Shower'}
|
||||
]
|
||||
each item in turntable_types
|
||||
option(value=item.val, selected=(custom.turntable == item.val)) #{item.name}
|
||||
@@ -139,7 +160,8 @@ div
|
||||
{val: 22, name: 'いいねフラッシュ (Like👍 flash)'},
|
||||
{val: 23, name: 'RESIDENT'},
|
||||
{val: 24, name: 'EPOLIS'},
|
||||
{val: 25, name: 'Pinky Crush'}
|
||||
{val: 25, name: 'Pinky Crush'},
|
||||
{val: 26, name: 'Sparkle Shower'}
|
||||
]
|
||||
each item in note_burst_types
|
||||
option(value=item.val, selected=(custom.note_burst == item.val)) #{item.name}
|
||||
@@ -176,7 +198,8 @@ div
|
||||
{val: 6, name: 'Simple'},
|
||||
{val: 7, name: 'Light'},
|
||||
{val: 8, name: 'Tricoro'},
|
||||
{val: 9, name: 'Bubble'}
|
||||
{val: 9, name: 'Bubble'},
|
||||
{val: 10, name: 'Fruity'}
|
||||
]
|
||||
each ns in note_skin_types
|
||||
option(value=ns.val, selected=(custom.note_skin == ns.val)) #{ns.name}
|
||||
@@ -189,7 +212,8 @@ div
|
||||
const note_size_types = [
|
||||
{val: 0, name: 'Default'},
|
||||
{val: 1, name: 'Short'},
|
||||
{val: 2, name: 'Very Short'}
|
||||
{val: 2, name: 'Very Short'},
|
||||
{val: 3, name: 'Large'},
|
||||
]
|
||||
each item in note_size_types
|
||||
option(value=item.val, selected=(custom.note_size == item.val)) #{item.name}
|
||||
@@ -213,7 +237,8 @@ div
|
||||
{val: 10, name: 'フレネルビーム (Fresnel beam)'},
|
||||
{val: 11, name: 'RESIDENT'},
|
||||
{val: 12, name: 'EPOLIS'},
|
||||
{val: 13, name: 'Pinky Crush'}
|
||||
{val: 13, name: 'Pinky Crush'},
|
||||
{val: 14, name: 'Sparkle Shower'}
|
||||
]
|
||||
each item in note_beam_types
|
||||
option(value=item.val, selected=(custom.note_beam == item.val)) #{item.name}
|
||||
@@ -225,6 +250,7 @@ div
|
||||
-
|
||||
const beam_sizes = [
|
||||
{val: 0, name: 'Default'},
|
||||
{val: 1, name: 'Short'},
|
||||
{val: 2, name: 'Very Short'},
|
||||
{val: 3, name: 'Long'}
|
||||
]
|
||||
@@ -569,7 +595,40 @@ div
|
||||
{val: 329, name: '灼熱 Lost Summer Dayz'},
|
||||
{val: 330, name: 'get set mind'},
|
||||
{val: 331, name: 'Raspberry Potion'},
|
||||
{val: 332, name: 'Secret Rouge'}
|
||||
{val: 332, name: 'Secret Rouge'},
|
||||
{val: 333, name: 'u gotta beat'},
|
||||
{val: 334, name: 'lane334'},
|
||||
{val: 335, name: 'lane335'},
|
||||
{val: 336, name: 'lane336'},
|
||||
{val: 337, name: 'lane337'},
|
||||
{val: 338, name: 'lane338'},
|
||||
{val: 339, name: 'lane339'},
|
||||
{val: 340, name: 'lane340'},
|
||||
{val: 341, name: 'lane341'},
|
||||
{val: 342, name: 'lane342'},
|
||||
{val: 343, name: 'lane343'},
|
||||
{val: 344, name: 'lane344'},
|
||||
{val: 345, name: 'lane345'},
|
||||
{val: 346, name: 'スキッテイエェエエェ!!!!'},
|
||||
{val: 347, name: 'Galaxy Collapse'},
|
||||
{val: 348, name: 'Bang-Boo Bumble'},
|
||||
{val: 349, name: 'Aqvion'},
|
||||
{val: 350, name: 'SμG@R RU$#'},
|
||||
{val: 351, name: 'FlyAway'},
|
||||
{val: 352, name: 'ドリムチウ'},
|
||||
{val: 353, name: 'Skratch Education Lv-1'},
|
||||
{val: 354, name: 'Uaigh Gealai'},
|
||||
{val: 355, name: 'Without Heaven'},
|
||||
{val: 356, name: 'Sparkle Shower'},
|
||||
{val: 357, name: 'デラむぅのでらっくす☆どり~むぅ'},
|
||||
{val: 358, name: 'Makin\' It'},
|
||||
{val: 359, name: 'ベラ・ベ・カラベラ'},
|
||||
{val: 360, name: 'Bang Bang Dance'},
|
||||
{val: 361, name: 'Nyan Nyan University'},
|
||||
{val: 362, name: '好吃来世deエレクトリック'},
|
||||
{val: 363, name: 'Begin'},
|
||||
{val: 364, name: 'BattleRoyal'},
|
||||
{val: 365, name: 'Disco Killer Music Lover'}
|
||||
]
|
||||
each item in lane_cover_types
|
||||
option(value=item.val, selected=(custom.lane_cover == item.val)) #{item.name}
|
||||
@@ -912,7 +971,40 @@ div
|
||||
{val: 329, name: '灼熱 Lost Summer Dayz'},
|
||||
{val: 330, name: 'get set mind'},
|
||||
{val: 331, name: 'Raspberry Potion'},
|
||||
{val: 332, name: 'Secret Rouge'}
|
||||
{val: 332, name: 'Secret Rouge'},
|
||||
{val: 333, name: 'u gotta beat'},
|
||||
{val: 334, name: 'lane334'},
|
||||
{val: 335, name: 'lane335'},
|
||||
{val: 336, name: 'lane336'},
|
||||
{val: 337, name: 'lane337'},
|
||||
{val: 338, name: 'lane338'},
|
||||
{val: 339, name: 'lane339'},
|
||||
{val: 340, name: 'lane340'},
|
||||
{val: 341, name: 'lane341'},
|
||||
{val: 342, name: 'lane342'},
|
||||
{val: 343, name: 'lane343'},
|
||||
{val: 344, name: 'lane344'},
|
||||
{val: 345, name: 'lane345'},
|
||||
{val: 346, name: 'スキッテイエェエエェ!!!!'},
|
||||
{val: 347, name: 'Galaxy Collapse'},
|
||||
{val: 348, name: 'Bang-Boo Bumble'},
|
||||
{val: 349, name: 'Aqvion'},
|
||||
{val: 350, name: 'SμG@R RU$#'},
|
||||
{val: 351, name: 'FlyAway'},
|
||||
{val: 352, name: 'ドリムチウ'},
|
||||
{val: 353, name: 'Skratch Education Lv-1'},
|
||||
{val: 354, name: 'Uaigh Gealai'},
|
||||
{val: 355, name: 'Without Heaven'},
|
||||
{val: 356, name: 'Sparkle Shower'},
|
||||
{val: 357, name: 'デラむぅのでらっくす☆どり~むぅ'},
|
||||
{val: 358, name: 'Makin\' It'},
|
||||
{val: 359, name: 'ベラ・ベ・カラベラ'},
|
||||
{val: 360, name: 'Bang Bang Dance'},
|
||||
{val: 361, name: 'Nyan Nyan University'},
|
||||
{val: 362, name: '好吃来世deエレクトリック'},
|
||||
{val: 363, name: 'Begin'},
|
||||
{val: 364, name: 'BattleRoyal'},
|
||||
{val: 365, name: 'Disco Killer Music Lover'}
|
||||
]
|
||||
each item in lift_cover_types
|
||||
option(value=item.val, selected=(custom.lift_cover == item.val)) #{item.name}
|
||||
@@ -1255,7 +1347,40 @@ div
|
||||
{val: 329, name: '灼熱 Lost Summer Dayz'},
|
||||
{val: 330, name: 'get set mind'},
|
||||
{val: 331, name: 'Raspberry Potion'},
|
||||
{val: 332, name: 'Secret Rouge'}
|
||||
{val: 332, name: 'Secret Rouge'},
|
||||
{val: 333, name: 'u gotta beat'},
|
||||
{val: 334, name: 'lane334'},
|
||||
{val: 335, name: 'lane335'},
|
||||
{val: 336, name: 'lane336'},
|
||||
{val: 337, name: 'lane337'},
|
||||
{val: 338, name: 'lane338'},
|
||||
{val: 339, name: 'lane339'},
|
||||
{val: 340, name: 'lane340'},
|
||||
{val: 341, name: 'lane341'},
|
||||
{val: 342, name: 'lane342'},
|
||||
{val: 343, name: 'lane343'},
|
||||
{val: 344, name: 'lane344'},
|
||||
{val: 345, name: 'lane345'},
|
||||
{val: 346, name: 'スキッテイエェエエェ!!!!'},
|
||||
{val: 347, name: 'Galaxy Collapse'},
|
||||
{val: 348, name: 'Bang-Boo Bumble'},
|
||||
{val: 349, name: 'Aqvion'},
|
||||
{val: 350, name: 'SμG@R RU$#'},
|
||||
{val: 351, name: 'FlyAway'},
|
||||
{val: 352, name: 'ドリムチウ'},
|
||||
{val: 353, name: 'Skratch Education Lv-1'},
|
||||
{val: 354, name: 'Uaigh Gealai'},
|
||||
{val: 355, name: 'Without Heaven'},
|
||||
{val: 356, name: 'Sparkle Shower'},
|
||||
{val: 357, name: 'デラむぅのでらっくす☆どり~むぅ'},
|
||||
{val: 358, name: 'Makin\' It'},
|
||||
{val: 359, name: 'ベラ・ベ・カラベラ'},
|
||||
{val: 360, name: 'Bang Bang Dance'},
|
||||
{val: 361, name: 'Nyan Nyan University'},
|
||||
{val: 362, name: '好吃来世deエレクトリック'},
|
||||
{val: 363, name: 'Begin'},
|
||||
{val: 364, name: 'BattleRoyal'},
|
||||
{val: 365, name: 'Disco Killer Music Lover'}
|
||||
]
|
||||
each item in pacemaker_cover_types
|
||||
option(value=item.val, selected=(custom.pacemaker_cover == item.val)) #{item.name}
|
||||
@@ -1289,7 +1414,8 @@ div
|
||||
{val: 20, name: 'CastHour'},
|
||||
{val: 21, name: 'RESIDENT'},
|
||||
{val: 22, name: 'EPOLIS'},
|
||||
{val: 23, name: 'Pinky Crush'}
|
||||
{val: 23, name: 'Pinky Crush'},
|
||||
{val: 24, name: 'Sparkle Shower'}
|
||||
]
|
||||
each item in full_combo_splash_types
|
||||
option(value=item.val, selected=(custom.full_combo_splash == item.val)) #{item.name}
|
||||
@@ -1319,7 +1445,8 @@ div
|
||||
{val: 16, name: 'CastHour'},
|
||||
{val: 17, name: 'RESIDENT'},
|
||||
{val: 18, name: 'EPOLIS'},
|
||||
{val: 19, name: 'Pinky Crush'}
|
||||
{val: 19, name: 'Pinky Crush'},
|
||||
{val: 20, name: 'Sparkle Shower'}
|
||||
]
|
||||
each item in judge_font_types
|
||||
option(value=item.val, selected=(custom.judge_font == item.val)) #{item.name}
|
||||
@@ -1346,17 +1473,11 @@ div
|
||||
.field
|
||||
label.label Charge Note Size
|
||||
.control
|
||||
if custom.cn_size === undefined
|
||||
input.input(type="number" name="cn_size", id="cn_size", value="0")
|
||||
else
|
||||
input.input(type="number" name="cn_size", id="cn_size", value=custom.cn_size)
|
||||
input.input(type="number" name="cn_size", id="cn_size", value=(custom.cn_size || "0"))
|
||||
.field
|
||||
label.label Charge Note Color
|
||||
.control
|
||||
if custom.cn_color === undefined
|
||||
input.input(type="number" name="cn_color", id="cn_color", value="0")
|
||||
else
|
||||
input.input(type="number" name="cn_color", id="cn_color", value=custom.cn_color)
|
||||
input.input(type="number" name="cn_color", id="cn_color", value=(custom.cn_color || "0"))
|
||||
.field
|
||||
label.label Disable Music Preview
|
||||
.control
|
||||
@@ -1364,7 +1485,7 @@ div
|
||||
.field
|
||||
label.label Disable HCN Color
|
||||
.control
|
||||
input(type="checkbox" name="disable_hcn_color", id="disable_hcn_color", checked=Boolean(custom.disable_hcn_color))
|
||||
input(type="checkbox" name="disable_hcn_color", id="disable_hcn_color", checked=Boolean(custom.disable_hcn_color))
|
||||
//- APPEND SETTINGS
|
||||
.field
|
||||
label.label Rank Folder
|
||||
@@ -1405,7 +1526,7 @@ div
|
||||
.field
|
||||
label.label Classic Hi-SPEED
|
||||
.control
|
||||
input(type="checkbox" name="class_hispeed", id="class_hispeed", checked=Boolean(custom.class_hispeed))
|
||||
input(type="checkbox" name="classic_hispeed", id="classic_hispeed", checked=Boolean(custom.classic_hispeed))
|
||||
.field
|
||||
label.label Rival Played Folder
|
||||
.control
|
||||
@@ -1417,10 +1538,7 @@ div
|
||||
.field
|
||||
label.label Disable Beginner Option
|
||||
.control
|
||||
if custom.disable_beginner_option === undefined
|
||||
input(type="checkbox" name="disable_beginner_option", id="disable_beginner_option", checked=Boolean(false))
|
||||
else
|
||||
input(type="checkbox" name="disable_beginner_option", id="disable_beginner_option", checked=Boolean(custom.disable_beginner_option))
|
||||
input(type="checkbox" name="disable_beginner_option", id="disable_beginner_option", checked=Boolean(custom.disable_beginner_option || false))
|
||||
//- QPRO
|
||||
.field
|
||||
label.label QPRO Head
|
||||
@@ -1445,10 +1563,7 @@ div
|
||||
.field
|
||||
label.label QPRO Back
|
||||
.control
|
||||
if custom.qpro_back === undefined
|
||||
input.input(type="number" name="qpro_back", id="qpro_back", value="0")
|
||||
else
|
||||
input.input(type="number" name="qpro_back", id="qpro_back", value=custom.qpro_back)
|
||||
input.input(type="number" name="qpro_back", id="qpro_back", value=(custom.qpro_back || "0"))
|
||||
//- LIGHTNING CUSTOM
|
||||
if lm_custom != null
|
||||
.field
|
||||
@@ -1462,24 +1577,15 @@ div
|
||||
.field
|
||||
label.label Premium Area Background (Concentration Mode)
|
||||
.control
|
||||
if lm_custom.premium_bg_concent === undefined
|
||||
input.input(type="number" name="lm_bg_2", id="lm_bg_2", value="0")
|
||||
else
|
||||
input.input(type="number" name="lm_bg_2", id="lm_bg_2", value=lm_custom.premium_bg_concent)
|
||||
input.input(type="number" name="lm_bg_2", id="lm_bg_2", value=(lm_custom.premium_bg_concent || "0"))
|
||||
.field
|
||||
label.label Entry BG
|
||||
.control
|
||||
if lm_custom.entry_bg === undefined
|
||||
input.input(type="number" name="lm_entry_bg", id="lm_entry_bg", value="0")
|
||||
else
|
||||
input.input(type="number" name="lm_entry_bg", id="lm_entry_bg", value=lm_custom.entry_bg)
|
||||
input.input(type="number" name="lm_entry_bg", id="lm_entry_bg", value=(lm_custom.entry_bg || "0"))
|
||||
.field
|
||||
label.label Entry BG Brightness
|
||||
.control
|
||||
if lm_custom.entry_bg_brightness === undefined
|
||||
input.input(type="number" name="lm_entry_bg_bright", id="lm_entry_bg_bright", value="0")
|
||||
else
|
||||
input.input(type="number" name="lm_entry_bg_bright", id="lm_entry_bg_bright", value=lm_custom.entry_bg_brightness)
|
||||
input.input(type="number" name="lm_entry_bg_bright", id="lm_entry_bg_bright", value=(lm_custom.entry_bg_brightness || "0"))
|
||||
.field
|
||||
button.button.is-primary(type="submit")
|
||||
span.icon
|
||||
|
||||
@@ -1829,7 +1829,133 @@ script.
|
||||
"32109": "EYE OF THE HEAVEN",
|
||||
"32110": "Plazma",
|
||||
"32111": "キスキツネ",
|
||||
"32112": "Good Looking"
|
||||
"32112": "Good Looking",
|
||||
"33000": "ビビッド ☆+*。キラキライム",
|
||||
"33001": "かわいいだけじゃだめですか?",
|
||||
"33002": "ラブコメトキドキシリアス",
|
||||
"33003": "HEROES",
|
||||
"33004": "Nemophila",
|
||||
"33005": "BitRacer",
|
||||
"33006": "chaplet -IIDX re:build-",
|
||||
"33007": "Signs and Wonders",
|
||||
"33008": "Countdown to Heaven or Hell",
|
||||
"33009": "fixer",
|
||||
"33010": "super double play sessions",
|
||||
"33011": "クレッシェンド",
|
||||
"33012": "Iridescent Memories",
|
||||
"33013": "デラむぅのでらっくす☆どり~むぅ",
|
||||
"33014": "Bloom",
|
||||
"33015": "鏡像都市",
|
||||
"33016": "A Certified Rave Moment",
|
||||
"33017": "Substance",
|
||||
"33018": "FiZZλ_PØT!0И",
|
||||
"33019": "タンポポ",
|
||||
"33020": "夏色のセレナーデ",
|
||||
"33021": "From Human Blood",
|
||||
"33022": "Space Battleship S4TØ",
|
||||
"33023": "⁽⁽ଘ( ˙꒳˙ )ଓ⁾⁾ beyond reason",
|
||||
"33024": "Makin' It",
|
||||
"33026": "kors k's Let's make an Image Song!",
|
||||
"33028": "Regina vespaE",
|
||||
"33030": "voice of echo.",
|
||||
"33031": "JUST SYNC ft.Kanae Asaba",
|
||||
"33032": "Show Time",
|
||||
"33033": "ベラ・ベ・カラベラ",
|
||||
"33034": "D.K.N. ON",
|
||||
"33035": "MOCHIMOCHI DREAMIN!!",
|
||||
"33036": "Dolphin Kick",
|
||||
"33037": "Hallucination",
|
||||
"33038": "閃と雷管とロープ",
|
||||
"33039": "Vitamin",
|
||||
"33040": "RALLY '25",
|
||||
"33041": "煉獄コンフィチュール",
|
||||
"33042": "Limelight",
|
||||
"33043": "月下繚乱",
|
||||
"33044": "UNDO THE NIGHT",
|
||||
"33045": "Bang Bang Dance",
|
||||
"33046": "Dusk Endir",
|
||||
"33047": "Memoria Obscura",
|
||||
"33048": "Funky Quirky",
|
||||
"33049": "PALETTE",
|
||||
"33050": "Disco Killer Music Lover",
|
||||
"33051": "PERFECT GREAT!!",
|
||||
"33052": "Fashion Fruit",
|
||||
"33053": "ベンガル vs. アムール Battle",
|
||||
"33056": "BattleRoyal",
|
||||
"33057": "好吃来世deエレクトリック",
|
||||
"33058": "Lisa-RICCIA",
|
||||
"33059": "じぇりー じゅえる ジャングル",
|
||||
"33060": "Ignited Night",
|
||||
"33061": "ιgniЯRuina",
|
||||
"33062": "SnapSkipSpark",
|
||||
"33063": "X-Plan",
|
||||
"33064": "AGETEKE ONDO",
|
||||
"33065": "サタデーナイト☆ギャロップ",
|
||||
"33066": "Digitized Ocean",
|
||||
"33067": "SPLASH!!!!!!!!!",
|
||||
"33068": "Amor∞Fati",
|
||||
"33069": "OMEGA",
|
||||
"33070": "GOLD RUSH 2025",
|
||||
"33071": "それが、ボクの使命~レスキュー隊長 メンキュー~",
|
||||
"33072": "FIZZY FIZZY POP",
|
||||
"33073": "2 Be Continued",
|
||||
"33074": "Catch ya Getcha!",
|
||||
"33075": "百恋ラブラスター",
|
||||
"33076": "Begin",
|
||||
"33077": "SHINING☆DANCE",
|
||||
"33078": "Shooting Star",
|
||||
"33081": "でんぱ どりる わんにゃー☆三",
|
||||
"33082": "LEMON MELON COOKIE",
|
||||
"33083": "もんめためたもん",
|
||||
"33084": "バブリン",
|
||||
"33085": "Caramel Pain",
|
||||
"33086": "Nyan Nyan University ",
|
||||
"33087": "GO!",
|
||||
"33088": "HORIZON BEATZ",
|
||||
"33089": "RIZING-GAMERS.",
|
||||
"33090": "SILKY BRAVE",
|
||||
"33091": "Astra Blaze",
|
||||
"33092": "Meteor☆Shower",
|
||||
"33093": "King of Tribe",
|
||||
"33094": "COLOR BURST",
|
||||
"33095": "不死身ごっこ",
|
||||
"33096": "オーバーライド",
|
||||
"33098": "Watermelon Explosion",
|
||||
"33099": "REcorrection",
|
||||
"33100": "TOKAKU=ALMiRAJ",
|
||||
"33101": "色を喪った街",
|
||||
"33102": "HyperTwist",
|
||||
"33103": "Last Card",
|
||||
"33104": "RUINA",
|
||||
"33105": "華麗なる!音戯探偵ひなビタ♫",
|
||||
"33106": "レシピのリドル",
|
||||
"33107": "Skywalking",
|
||||
"33108": "pique",
|
||||
"33109": "Gimme a Big Beat(青龍 Remix)",
|
||||
"33110": "Second Heaven(Mamonis Remix)",
|
||||
"33111": "Kick The Rainbow",
|
||||
"33112": "恋愛観測",
|
||||
"33113": "Τέλος",
|
||||
"33114": "ACID VISION",
|
||||
"33115": "メテオラ-meteor-",
|
||||
"33116": "Wizards!",
|
||||
"33117": "THUNDERSTRIKE",
|
||||
"33118": "blue anthem",
|
||||
"33119": "Get Into The Groove feat.WaMi",
|
||||
"33120": "ESPRIT ONE",
|
||||
"33121": "Mighty Beat Monsterz",
|
||||
"33122": "Smintheus",
|
||||
"33123": "断罪のミメシス",
|
||||
"33124": "Any%",
|
||||
"33125": "キミとえがくキセキ",
|
||||
"33126": "[E]",
|
||||
"33127": "三日天下モンキー",
|
||||
"33129": "夢色ワンダー",
|
||||
"33130": "メルト CPK! Remix (初音ミク ver.)",
|
||||
"33131": "Ex-Otogibanashi",
|
||||
"33132": "9-1",
|
||||
"33133": "霹靂",
|
||||
"33333": "TUTORIAL"
|
||||
};
|
||||
|
||||
-
|
||||
@@ -1852,13 +1978,21 @@ div
|
||||
p.card-header-title
|
||||
span.icon
|
||||
i.mdi.mdi-format-list-bulleted
|
||||
| Score List (Pinky Crush)
|
||||
.select.is-small
|
||||
select(id="score-sort-filter")
|
||||
option(value="recent") Recently Played
|
||||
option(value="mid") Music ID
|
||||
option(value="title") Music Title
|
||||
option(value="lamp") Clear Lamp
|
||||
| Score List
|
||||
.field.is-grouped
|
||||
.control
|
||||
.select.is-small
|
||||
select(id="score-sort-filter")
|
||||
option(value="recent") Recently Played
|
||||
option(value="mid") Music ID
|
||||
option(value="title") Music Title
|
||||
option(value="lamp") Clear Lamp
|
||||
.control
|
||||
.select.is-small
|
||||
select(id="score-page-size")
|
||||
option(value="10" selected) 10 per page
|
||||
option(value="30") 30 per page
|
||||
option(value="50") 50 per page
|
||||
.card-content
|
||||
table.table.is-striped.is-fullwidth.is-hoverable
|
||||
thead
|
||||
@@ -1868,7 +2002,7 @@ div
|
||||
th Clear Lamp
|
||||
th EX Score
|
||||
th BP
|
||||
tbody
|
||||
tbody#score-table-body
|
||||
each i in score
|
||||
- for (let d = 0; d < 9; d++) {
|
||||
- let lamp = i.cArray[d];
|
||||
@@ -1876,7 +2010,7 @@ div
|
||||
- let miss = i.mArray[d];
|
||||
|
||||
- if (lamp > 0 || ex > 0 || miss > -1) {
|
||||
- const updateTime = i.updatedAt ? new Date(i.updatedAt).getTime() : 0;
|
||||
- const updateTime = Array.isArray(i.playTimeArray) && Number(i.playTimeArray[d]) > 0 ? Number(i.playTimeArray[d]) : 0;
|
||||
tr(data-mid=i.mid data-updated=updateTime data-lamp=lamp data-ex=ex)
|
||||
//- A space for the title instead of the ID
|
||||
td.music-title(data-mid=i.mid)
|
||||
@@ -1890,9 +2024,28 @@ div
|
||||
- }
|
||||
- }
|
||||
|
||||
nav.pagination.is-small.is-centered(
|
||||
role="navigation"
|
||||
aria-label="pagination"
|
||||
style="margin-top: 1rem;"
|
||||
)
|
||||
button#score-page-prev.button.is-small(
|
||||
type="button"
|
||||
disabled
|
||||
) Previous
|
||||
span#score-page-info(
|
||||
style="display: flex; align-items: center; padding: 0 1rem;"
|
||||
) Page 1 / 1
|
||||
button#score-page-next.button.is-small(
|
||||
type="button"
|
||||
disabled
|
||||
) Next
|
||||
|
||||
//- 3. run Title Replacement
|
||||
script.
|
||||
$(document).ready(function() {
|
||||
let currentScorePage = 1;
|
||||
let scorePageSize = 10;
|
||||
// Cache music title text attributes for each row
|
||||
$('tbody tr').each(function() {
|
||||
const mid = String($(this).data('mid'));
|
||||
@@ -1900,9 +2053,43 @@ script.
|
||||
$(this).attr('data-title', title);
|
||||
});
|
||||
|
||||
function renderScorePage() {
|
||||
const $rows = $('#score-table-body').find('tr');
|
||||
const totalRows = $rows.length;
|
||||
const totalPages = Math.max(1, Math.ceil(totalRows / scorePageSize));
|
||||
|
||||
if (currentScorePage > totalPages) {
|
||||
currentScorePage = totalPages;
|
||||
}
|
||||
|
||||
if (currentScorePage < 1) {
|
||||
currentScorePage = 1;
|
||||
}
|
||||
|
||||
const startIndex = (currentScorePage - 1) * scorePageSize;
|
||||
const endIndex = startIndex + scorePageSize;
|
||||
|
||||
$rows.hide();
|
||||
$rows.slice(startIndex, endIndex).show();
|
||||
|
||||
$('#score-page-info').text(
|
||||
'Page ' + currentScorePage + ' / ' + totalPages
|
||||
);
|
||||
|
||||
$('#score-page-prev').prop(
|
||||
'disabled',
|
||||
currentScorePage <= 1
|
||||
);
|
||||
|
||||
$('#score-page-next').prop(
|
||||
'disabled',
|
||||
currentScorePage >= totalPages
|
||||
);
|
||||
}
|
||||
|
||||
// Define sorting function
|
||||
function sortScoreTable(sortType) {
|
||||
const $tbody = $('tbody');
|
||||
const $tbody = $('#score-table-body');
|
||||
const $rows = $tbody.find('tr').get();
|
||||
|
||||
$rows.sort(function(a, b) {
|
||||
@@ -1935,13 +2122,42 @@ script.
|
||||
$.each($rows, function(index, row) {
|
||||
$tbody.append(row);
|
||||
});
|
||||
|
||||
renderScorePage();
|
||||
}
|
||||
|
||||
// Execute default sort (Recently Played) and bind change event
|
||||
sortScoreTable($('#score-sort-filter').val());
|
||||
$('#score-sort-filter').on('change', function() {
|
||||
currentScorePage = 1;
|
||||
sortScoreTable($(this).val());
|
||||
});
|
||||
$('#score-page-size').on('change', function() {
|
||||
scorePageSize = Number($(this).val()) || 10;
|
||||
currentScorePage = 1;
|
||||
renderScorePage();
|
||||
});
|
||||
|
||||
$('#score-page-prev').on('click', function() {
|
||||
if (currentScorePage <= 1) return;
|
||||
|
||||
currentScorePage -= 1;
|
||||
renderScorePage();
|
||||
});
|
||||
|
||||
$('#score-page-next').on('click', function() {
|
||||
const totalRows = $('#score-table-body').find('tr').length;
|
||||
const totalPages = Math.max(
|
||||
1,
|
||||
Math.ceil(totalRows / scorePageSize)
|
||||
);
|
||||
|
||||
if (currentScorePage >= totalPages) return;
|
||||
|
||||
currentScorePage += 1;
|
||||
renderScorePage();
|
||||
});
|
||||
|
||||
$('.music-title').each(function() {
|
||||
const $cell = $(this);
|
||||
const mid = String($cell.data('mid'));
|
||||
|
||||
Reference in New Issue
Block a user