1
0
mirror of synced 2024-11-27 16:10:53 +01:00

Revert "Readded locking songs in initialDataCheck, updated game constants"

This reverts commit e440e340fc.
This commit is contained in:
S-Sebb?? 2023-09-17 22:07:41 +08:00
parent e440e340fc
commit d476d323d9
17 changed files with 902 additions and 1117 deletions

View File

@ -29,13 +29,13 @@ public static class Constants
public const int TONE_UID_MAX = 19; public const int TONE_UID_MAX = 19;
public const int TITLE_UID_MAX = 941; public const int TITLE_UID_MAX = 814;
private const int COSTUME_FLAG_1_ARRAY_SIZE = 156; private const int COSTUME_FLAG_1_ARRAY_SIZE = 154;
private const int COSTUME_FLAG_2_ARRAY_SIZE = 140; private const int COSTUME_FLAG_2_ARRAY_SIZE = 140;
private const int COSTUME_FLAG_3_ARRAY_SIZE = 156; private const int COSTUME_FLAG_3_ARRAY_SIZE = 156;
private const int COSTUME_FLAG_4_ARRAY_SIZE = 58; private const int COSTUME_FLAG_4_ARRAY_SIZE = 58;
private const int COSTUME_FLAG_5_ARRAY_SIZE = 142; private const int COSTUME_FLAG_5_ARRAY_SIZE = 129;
public static readonly int[] CostumeFlagArraySizes = public static readonly int[] CostumeFlagArraySizes =
{ {
COSTUME_FLAG_1_ARRAY_SIZE, COSTUME_FLAG_1_ARRAY_SIZE,

View File

@ -1,9 +1,6 @@
{ {
"Serilog": { "Serilog": {
"Using": [ "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
"Serilog.Sinks.Console",
"Serilog.Sinks.File"
],
"MinimumLevel": { "MinimumLevel": {
"Default": "Information", "Default": "Information",
"Override": { "Override": {
@ -23,10 +20,7 @@
"WriteTo": [ "WriteTo": [
{ {
"Name": "File", "Name": "File",
"Args": { "Args": { "path": "./Logs/log-.txt", "rollingInterval": "Day" }
"path": "./Logs/log-.txt",
"rollingInterval": "Day"
}
} }
] ]
} }

View File

@ -24,17 +24,12 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
Logger.LogInformation("Initial data check request: {Request}", request.Stringify()); Logger.LogInformation("Initial data check request: {Request}", request.Stringify());
var songIdMax = settings.EnableMoreSongs ? Constants.MUSIC_ID_MAX_EXPANDED : Constants.MUSIC_ID_MAX; var songIdMax = settings.EnableMoreSongs ? Constants.MUSIC_ID_MAX_EXPANDED : Constants.MUSIC_ID_MAX;
var musicList = gameDataService.GetMusicList();
var lockedSongsList = gameDataService.GetLockedSongsList();
var enabledMusicList = musicList.Except(lockedSongsList);
var enabledArray = var enabledArray =
FlagCalculator.GetBitArrayFromIds(enabledMusicList, songIdMax, Logger); FlagCalculator.GetBitArrayFromIds(gameDataService.GetMusicList(), songIdMax, Logger);
var defaultSongWithUraList = gameDataService.GetMusicWithUraList(); var defaultSongWithUraList = gameDataService.GetMusicWithUraList();
var enabledUraList = defaultSongWithUraList.Except(lockedSongsList);
var uraReleaseBit = var uraReleaseBit =
FlagCalculator.GetBitArrayFromIds(enabledUraList, songIdMax, Logger); FlagCalculator.GetBitArrayFromIds(defaultSongWithUraList, songIdMax, Logger);
var response = new InitialdatacheckResponse var response = new InitialdatacheckResponse
{ {
@ -73,13 +68,12 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
verUp2Type101.AryInformationDatas.AddRange(danData); verUp2Type101.AryInformationDatas.AddRange(danData);
response.AryVerupNoData2s.Add(verUp2Type101); response.AryVerupNoData2s.Add(verUp2Type101);
// gaiden testing var verUp2Type102 = new InitialdatacheckResponse.VerupNoData2
// var verUp2Type102 = new InitialdatacheckResponse.VerupNoData2 {
// { MasterType = 102,
// MasterType = 102, };
// }; verUp2Type102.AryInformationDatas.AddRange(danData);
// verUp2Type102.AryInformationDatas.AddRange(danData); response.AryVerupNoData2s.Add(verUp2Type102);
// response.AryVerupNoData2s.Add(verUp2Type102);
var eventFolderData = new List<InitialdatacheckResponse.VerupNoData2.InformationData>(); var eventFolderData = new List<InitialdatacheckResponse.VerupNoData2.InformationData>();
foreach (var folderId in Constants.EVENT_FOLDER_IDS) foreach (var folderId in Constants.EVENT_FOLDER_IDS)

View File

@ -10,38 +10,9 @@
"verupNo": 1, "verupNo": 1,
"priority": 1, "priority": 1,
"songNo": [ "songNo": [
478, 478, 153, 200, 482, 511, 672, 675, 646, 644, 645, 676, 671, 479,
153, 707, 480, 481, 203, 204, 483, 205, 202, 241, 14, 387, 197, 281, 226,
200, 484, 543, 512, 709, 35
482,
511,
672,
675,
646,
644,
645,
676,
671,
479,
707,
480,
481,
203,
204,
483,
205,
202,
241,
14,
387,
197,
281,
226,
484,
543,
512,
709,
35
] ]
}, },
{ {
@ -49,68 +20,12 @@
"verupNo": 1, "verupNo": 1,
"priority": 1, "priority": 1,
"songNo": [ "songNo": [
1485, 1485, 1404, 1580, 1730, 1750, 1277, 1478, 1481, 1482, 1484, 1500,
1404, 1890, 2349, 2604, 2640, 1176, 1419, 1596, 1693, 2248, 1049, 1221,
1580, 1222, 1223, 1224, 1493, 1578, 1719, 2650, 1595, 1964, 1469, 1217,
1730, 1314, 1406, 1565, 1745, 2120, 2200, 2324, 2785, 1631, 2301, 2802,
1750, 1490, 2088, 2268, 2309, 2507, 2126, 1630, 2509, 1263, 2495, 2642,
1277, 2745, 1054, 2583, 1271, 1266, 1267, 2923
1478,
1481,
1482,
1484,
1500,
1890,
2349,
2604,
2640,
1176,
1419,
1596,
1693,
2248,
1049,
1221,
1222,
1223,
1224,
1493,
1578,
1719,
2650,
1595,
1964,
1469,
1217,
1314,
1406,
1565,
1745,
2120,
2200,
2324,
2785,
1631,
2301,
2802,
1490,
2088,
2268,
2309,
2507,
2126,
1630,
2509,
1263,
2495,
2642,
2745,
1054,
2583,
1271,
1266,
1267,
2923
] ]
}, },
{ {
@ -118,87 +33,29 @@
"verupNo": 1, "verupNo": 1,
"priority": 1, "priority": 1,
"songNo": [ "songNo": [
1361, 1361, 1366, 1373, 1379, 1337, 1345, 1357, 1362, 1367, 1368, 1369,
1366, 1374, 1375, 1388, 1390, 1579, 2225, 1354, 1394, 2804, 1340, 1341,
1373, 1370, 1376, 1384, 1359, 1385, 2416, 2756, 1363, 1920, 1353, 1360,
1379, 1381, 1389, 1364, 1391, 1342, 1546, 1931
1337,
1345,
1357,
1362,
1367,
1368,
1369,
1374,
1375,
1388,
1390,
1579,
2225,
1354,
1394,
2804,
1340,
1341,
1370,
1376,
1384,
1359,
1385,
2416,
2756,
1363,
1920,
1353,
1360,
1381,
1389,
1364,
1391,
1342,
1546,
1931
] ]
}, },
{ {
"folderId": 5, "folderId": 5,
"verupNo": 1, "verupNo": 1,
"priority": 1, "priority": 1,
"songNo": [ "songNo": [242, 430, 368, 604, 333]
242,
430,
368,
604,
333
]
}, },
{ {
"folderId": 6, "folderId": 6,
"verupNo": 1, "verupNo": 1,
"priority": 1, "priority": 1,
"songNo": [ "songNo": [841, 767, 658, 467, 468, 466, 460, 157, 465]
841,
767,
658,
467,
468,
466,
460,
157,
465
]
}, },
{ {
"folderId": 7, "folderId": 7,
"verupNo": 1, "verupNo": 1,
"priority": 1, "priority": 1,
"songNo": [ "songNo": [733, 732, 44, 790, 894]
733,
732,
44,
790,
894
]
}, },
{ {
"folderId": 8, "folderId": 8,

View File

@ -3,132 +3,72 @@
"setId":1, "setId":1,
"verupNo":1, "verupNo":1,
"mainSongNo":895, "mainSongNo":895,
"subSongNo": [ "subSongNo":[894,732,44,921]
894,
732,
44,
921
]
}, },
{ {
"setId":2, "setId":2,
"verupNo":1, "verupNo":1,
"mainSongNo":912, "mainSongNo":912,
"subSongNo": [ "subSongNo":[827,871,36,227]
827,
871,
36,
227
]
}, },
{ {
"setId":3, "setId":3,
"verupNo":1, "verupNo":1,
"mainSongNo":913, "mainSongNo":913,
"subSongNo": [ "subSongNo":[460,916,430,872]
460,
916,
430,
872
]
}, },
{ {
"setId":4, "setId":4,
"verupNo":1, "verupNo":1,
"mainSongNo":842, "mainSongNo":842,
"subSongNo": [ "subSongNo":[7,233,256,831]
7,
233,
256,
831
]
}, },
{ {
"setId":5, "setId":5,
"verupNo":1, "verupNo":1,
"mainSongNo":947, "mainSongNo":947,
"subSongNo": [ "subSongNo":[926,882,730,695]
926,
882,
730,
695
]
}, },
{ {
"setId":6, "setId":6,
"verupNo":1, "verupNo":1,
"mainSongNo":937, "mainSongNo":937,
"subSongNo": [ "subSongNo":[828,925,474,924]
828,
925,
474,
924
]
}, },
{ {
"setId":7, "setId":7,
"verupNo":1, "verupNo":1,
"mainSongNo":956, "mainSongNo":956,
"subSongNo": [ "subSongNo":[839,255,285,187]
839,
255,
285,
187
]
}, },
{ {
"setId":8, "setId":8,
"verupNo":1, "verupNo":1,
"mainSongNo":923, "mainSongNo":923,
"subSongNo": [ "subSongNo":[729,873,789,893]
729,
873,
789,
893
]
}, },
{ {
"setId":9, "setId":9,
"verupNo":1, "verupNo":1,
"mainSongNo":915, "mainSongNo":915,
"subSongNo": [ "subSongNo":[726,811,711,303]
726,
811,
711,
303
]
}, },
{ {
"setId":10, "setId":10,
"verupNo":1, "verupNo":1,
"mainSongNo":885, "mainSongNo":885,
"subSongNo": [ "subSongNo":[837,464,801,18]
837,
464,
801,
18
]
}, },
{ {
"setId":11, "setId":11,
"verupNo":1, "verupNo":1,
"mainSongNo":898, "mainSongNo":898,
"subSongNo": [ "subSongNo":[47,135,374,792]
47,
135,
374,
792
]
}, },
{ {
"setId":12, "setId":12,
"verupNo":1, "verupNo":1,
"mainSongNo":948, "mainSongNo":948,
"subSongNo": [ "subSongNo":[412,538,411,413]
412,
538,
411,
413
]
} }
] ]

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>TaikoWebUI</title> <title>TaikoWebUI</title>
<base href="/" /> <base href="/" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
@ -16,7 +16,7 @@
<div id="blazor-error-ui"> <div id="blazor-error-ui">
An unhandled error has occurred. An unhandled error has occurred.
<a class="reload" href="">Reload</a> <a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a> <a class="dismiss">🗙</a>
</div> </div>
<script src="_framework/blazor.webassembly.js"></script> <script src="_framework/blazor.webassembly.js"></script>