mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-28 09:05:26 +00:00
add simpel Merge Excel
This commit is contained in:
parent
83e86a4f22
commit
3bbdddeea3
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
scene_grid.json
|
||||
/Tool/*.json
|
||||
.idea/
|
||||
AllExcel
|
||||
FoundExcel
|
||||
!ExcelGC.json
|
376
Tool/ExcelGC.json
Normal file
376
Tool/ExcelGC.json
Normal file
@ -0,0 +1,376 @@
|
||||
[
|
||||
{
|
||||
"name": "TalkExcelConfigData.json",
|
||||
"comment": "(skip auto copy,put manual)Original GC",
|
||||
"skip":true
|
||||
},
|
||||
{
|
||||
"name": "QuestExcelConfigData.json",
|
||||
"comment": "(skip auto copy,put manual)Need Mod Config,Expected a string but was BEGIN_OBJECT at line 10 column 24 path",
|
||||
"skip":true
|
||||
},
|
||||
{
|
||||
"name": "ReliquaryAffixExcelConfigData.json",
|
||||
"comment": "maybe need fix"
|
||||
},
|
||||
{
|
||||
"name": "ReliquaryMainPropExcelConfigData.json",
|
||||
"comment": "maybe need fix"
|
||||
},
|
||||
{
|
||||
"name": "DropTableExcelConfigData.json",
|
||||
"comment": "(NoSuchFileException), use folder Server, it's not in original repo"
|
||||
},
|
||||
{
|
||||
"name": "GatherExcelConfigData.json",
|
||||
"comment": "Expected an int but was BOOLEAN at line 108 column 15, in gc cd=10 but og cd=true"
|
||||
},
|
||||
{
|
||||
"name": "DropSubTableExcelConfigData.json",
|
||||
"comment": "why miss? use 3.6 data"
|
||||
},
|
||||
{
|
||||
"name": "HomeWorldBgmExcelConfigData.json",
|
||||
"comment": "rename stuff"
|
||||
},
|
||||
{
|
||||
"name": "AvatarCostumeExcelConfigData.json",
|
||||
"comment": "rename stuff"
|
||||
},
|
||||
{
|
||||
"name": "DropMaterialExcelConfigData.json",
|
||||
"comment": "(NoSuchFileException), use folder Server, it's not in original repo"
|
||||
},
|
||||
{
|
||||
"name": "AvatarSkillExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ForgeExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "FetterInfoExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "FettersExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "FetterStoryExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "PhotographExpressionExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "PhotographPosenameExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "OpenStateConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "FetterCharacterCardExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AvatarTalentExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "RewardPreviewExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "MonsterDescribeExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "InvestigationConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "NewActivityWatcherConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AvatarSkillDepotExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "CityConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "MonsterSpecialNameExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ProudSkillExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "MusicGameBasicConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "DailyTaskExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "WorldAreaConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "MonsterCurveExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "MaterialCodexExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ReliquarySetExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "TowerScheduleExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "NewActivityCondExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AvatarFlycloakExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "GadgetExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "TriggerExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ChapterExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "PlayerLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "TowerLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "DungeonEntryExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "DungeonPassExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ShopGoodsExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "WeatherExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "BattlePassRewardExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "DailyTaskLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "RewardExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "BattlePassMissionExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "DailyDungeonConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AvatarFettersLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AnimalCodexExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "WeaponLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ReliquaryCodexExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AchievementExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "CombineExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ActivityShopOverallExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "BuffExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AvatarPromoteExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "SceneExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "NpcExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "PersonalLineExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "DailyTaskRewardExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "EquipAffixExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ReliquaryLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "WorldLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "BlossomRefreshExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "WeaponCurveExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "QuestCodexExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "DungeonChallengeConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "DungeonExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "FurnitureMakeExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AvatarCurveExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AvatarLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "TowerFloorExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "WeaponCodexExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "WeaponPromoteExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "MaterialExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "WeaponExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "ReliquaryExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "HomeWorldFurnitureExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AchievementGoalExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "HomeworldLevelExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "EnvAnimalGatherExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "CookRecipeExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "CookBonusExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "NewActivityExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "InvestigationMonsterConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "CompoundExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "InvestigationTargetConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "MonsterExcelConfigData.json",
|
||||
"comment": ""
|
||||
},
|
||||
{
|
||||
"name": "AvatarExcelConfigData.json",
|
||||
"comment": ""
|
||||
}
|
||||
]
|
51
Tool/MergeExcel.js
Normal file
51
Tool/MergeExcel.js
Normal file
@ -0,0 +1,51 @@
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
|
||||
const get_excel = path.join(__dirname, "AllExcel");
|
||||
const found_excel = path.join(__dirname, "FoundExcel");
|
||||
|
||||
fs.readdir(get_excel, function (err, files) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
return;
|
||||
}
|
||||
|
||||
// Read the JSON file
|
||||
const jsonFile = path.join(__dirname, "ExcelGC.json");
|
||||
fs.readFile(jsonFile, "utf8", function (err, data) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
return;
|
||||
}
|
||||
|
||||
// Parse the JSON data
|
||||
const jsonData = JSON.parse(data);
|
||||
|
||||
// Extract the filters from the JSON data
|
||||
const filters = jsonData.map((item) => item.name);
|
||||
|
||||
// Filter the existing filenames from the directory based on the filters
|
||||
/*
|
||||
&&
|
||||
file !== "TalkExcelConfigData.json" &&
|
||||
file !== "QuestExcelConfigData.json"
|
||||
*/
|
||||
const existingFilenames = files.filter((file) => filters.includes(file));
|
||||
|
||||
console.log(existingFilenames);
|
||||
|
||||
// Copy the files to the FoundExcel folder
|
||||
existingFilenames.forEach((filename) => {
|
||||
const sourceFile = path.join(get_excel, filename);
|
||||
const destinationFile = path.join(found_excel, filename);
|
||||
|
||||
fs.copyFile(sourceFile, destinationFile, (err) => {
|
||||
if (err) {
|
||||
console.error(`Error copying file ${filename}:`, err);
|
||||
} else {
|
||||
console.log(`File ${filename} copied successfully.`);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user