fix public/5 submodule to normal folder

This commit is contained in:
dhruv
2026-05-17 15:47:36 +05:30
parent 2b26fda833
commit 9735303148
21149 changed files with 28262194 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{
"Charactor": [
{ "id": 1, "Name": "Hinata Mutsuishi" },
{ "id": 2, "Name": "Maika Takatori" },
{ "id": 3, "Name": "Shiho Kano" },
{ "id": 4, "Name": "Honoka Tsukii" },
{ "id": 5, "Name": "Yuki Tendo" },
{ "id": 6, "Name": "Chisa Akagawa" },
{ "id": 7, "Name": "Airi Eniwa" },
{ "id": 8, "Name": "Yuzuha Kujou" },
{ "id": 9, "Name": "Miharu Yomine" },
{ "id": 10, "Name": "Aya Kamuro" },
{ "id": 11, "Name": "Mahoro Miyaji" },
{ "id": 12, "Name": "Riko Hinagura" },
{ "id": 13, "Name": "Rie Maruyama" },
{ "id": 14, "Name": "Satori Utsugi" },
{ "id": 15, "Name": "Rinne Myojin" },
{ "id": 16, "Name": "Naru Toomi" },
{ "id": 101, "Name": "Masaki Otori" },
{ "id": 102, "Name": "Rio Isuzu" },
{ "id": 103, "Name": "Kyouka Yura" }
]
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,60 @@
import json
import os
class Costume:
def __init__(self, no, heroineId, costumeId, costumeName):
self.no = no
self.heroineId = heroineId
self.costumeId = costumeId
self.costumeName = costumeName
def outtext(self):
return "%s, %s, %s, %s" % (self.no, self.heroineId, self.costumeId, self.costumeName)
def outtext2(self):
return "%02d_%03d, %s" % (self.heroineId, self.costumeId, self.costumeName)
# ----------------
CharactorManager = []
with open('CharactorList.json', 'r', encoding='utf-8') as json_file:
data = json.load(json_file)
CharactorManager = data['Charactor']
# ----------------
costlist = []
with open('HeroineCostumeMaster.json', 'r', encoding='utf-8') as json_file:
data = json.load(json_file)
for c in data['<ModelList>k__BackingField']:
costlist.append(Costume(c['id'], c['heroineId'], c['costumeId'], c['costumeName']))
costlist.sort(key = lambda x:(x.heroineId, x.costumeId), reverse = False)
# ----------------
# chars = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 11, 12, 13, 14, 15, 16, 101, 102, 103]
jsondata = {'Master':[]}
for char in CharactorManager:
charname = char['Name']
jsontitle = '%03d' % (char['id'])
l2d = {'id': char['id'], 'name':char['Name'], 'live2d':[]}
for model in range(1,20):
filepath = 'live2d/%03d/%03d_%03d/%03d.model3.json' % (char['id'], char['id'], model, char['id'])
if os.path.exists(f'../{filepath}'):
c = list(filter(lambda x: (x.heroineId == char['id'] and x.costumeId == model), costlist))
if c:
l2d['live2d'].append({ 'costumeId':model, 'costumeName': c[0].costumeName , 'path': filepath})
else:
l2d['live2d'].append({ 'costumeId':model, 'costumeName': "不明" , 'path':filepath})
jsondata['Master'].append(l2d)
with open('live2dMaster.json', 'w', encoding='utf-8') as outfile:
json.dump(jsondata, outfile, indent=4, ensure_ascii=False)