diff --git a/op.js b/op.js index 21556ff1..588de389 100644 --- a/op.js +++ b/op.js @@ -701,6 +701,10 @@ function clean_proto_gen_v2() { // Use regular expressions to extract the desired part const match = fileName.match(/^(.*)\.proto$/); + if(match == null) + { + return; + } const messageName = match[1]; // Check if the string is all uppercase @@ -857,6 +861,101 @@ function clean_proto_event() { ); } +function clean_proto_event_v2() { + var torequire = [ + "ParamList", + "StrengthenPointData", + "TowerLevelEndNotify", + "TrialAvatarFirstPassDungeonNotify" + ]; + + var filedonotdelete = []; + + let dir = "./proto"; + let file = "./proto/DungeonSettleNotify.proto"; + + var rd; + + const files = getAllFiles(dir); + + // read file + try { + const read = fs.readFileSync(file); + rd = read.toString(); + } catch (error) { + console.log(error); + return; + } + + //console.log(rd); + + while ((m = regex_import.exec(rd)) !== null) { + + // This is necessary to avoid infinite loops with zero-width matches + if (m.index === regex_import.lastIndex) { + regex_import.lastIndex++; + } + + // The result can be accessed through the `m`-variable. + m.forEach((match, groupIndex) => { + // only index 1 grup + if (groupIndex == 1) { + //console.log(`t: ${match}`); + + var found_rt = torequire.find((j) => j === match); + if (found_rt) { + //console.log(`Skip ${match}`); + } else { + //console.log(`add ${match}`); + var sub = find_import(dir + "/" + match + ".proto"); + //console.log(sub); + if (sub) { + sub.forEach(function (k) { + var v = torequire.find((j) => j === k); + if (!v) { + torequire.push(k); + } + }); + } + filedonotdelete.push(match); + torequire.push(match); + } + } + }); + } + + console.log(filedonotdelete); + + // last + files.forEach(function (file) { + var name_file = path.parse(file).name; + var toskip = filedonotdelete.find((j) => name_file === j); + if (toskip) { + found_needclean++; + console.log(name_file); + try { + fs.unlinkSync(file); + console.log("Remove file: " + file); + //file removed + } catch (err) { + //console.error(err); + } + } else { + found_noclean++; + //console.log("skip "+name_file); + } + }); + + console.log( + "No clean: " + + found_noclean + + " | Need to clean: " + + found_needclean + + " | Related " + + found_maybe_related + ); +} + // Update GC Proto // get_cmdid_gc(); // 1. get cmd old gc // read_cmdid_ht_json(); // 2 or @@ -867,5 +966,8 @@ function clean_proto_event() { // npx prettier --write PacketOpcodes.java // scan_gc(); // 5. scan gc // clean_proto_event(); // 6. clean event, need manual -// clean_proto_gen(); // 6. clean proto -// clean_proto_gen_v2(); + clean_proto_gen(); // 6. clean proto +// clean_proto_gen_v2(); + +// TODO: clean DungeonSettleNotify +// clean_proto_event_v2(); \ No newline at end of file diff --git a/proto/AbilityMetaModifierChange.proto b/proto/AbilityMetaModifierChange.proto index 4bbd9e4d..7c0499f0 100644 --- a/proto/AbilityMetaModifierChange.proto +++ b/proto/AbilityMetaModifierChange.proto @@ -9,16 +9,15 @@ import "ModifierAction.proto"; // Name: IPPNBIDINLA message AbilityMetaModifierChange { - bool is_durability_zero = 8; + bool isAttachedParentAbility = 8; int32 modifier_local_id = 11; repeated ModifierProperty properties = 4; uint32 apply_entity_id = 3; AbilityAttachedModifier attached_instanced_modifier = 1; ModifierAction action = 9; // NOAJNAPDEMN - bool is_attached_parent_ability = 15; + bool is_durability_zero = 15; AbilityString parent_ability_name = 6; bool is_mute_remote = 2; AbilityString parent_ability_override = 12; uint32 server_buff_uid = 13; -} - +} \ No newline at end of file diff --git a/proto/ActivityInfo.proto b/proto/ActivityInfo.proto index 02f59f0f..82cdfeeb 100644 --- a/proto/ActivityInfo.proto +++ b/proto/ActivityInfo.proto @@ -14,13 +14,13 @@ message ActivityInfo { bool FLFGIDFALEK = 15; uint32 LPOCNCICJHM = 485; map activity_coin_map = 703; - repeated uint32 expireCondList = 2; + repeated uint32 meet_cond_list = 2; //PAGIONJOCJN uint32 end_time = 4; bool GLOONPBGOHM = 1331; repeated ActivityPushTipsData activity_push_tips_data_list = 1827; - repeated uint32 meet_cond_list = 13; // LGCJBENHFOB + repeated uint32 expire_cond_list = 13; // LGCJBENHFOB bool is_finished = 6; - repeated uint32 EOPFKDBBOII = 894; + repeated uint32 taken_reward_list = 894; //EOPFKDBBOII repeated ActivityWatcherInfo watcher_info_list = 8; uint32 activity_type = 5; // KMOFHMKLGHD uint32 activity_id = 7; @@ -29,7 +29,7 @@ message ActivityInfo { bool OEBHLKFBCOG = 696; bool LGKOJCGDGBH = 1736; uint32 begin_time = 9; - repeated uint32 takenRewardList = 778; + repeated uint32 DDBJAKPEPLC = 778; uint32 first_day_start_time = 1677; uint32 cur_score = 1005; bool EFJOLIOFLBG = 514; diff --git a/proto/AttackHitEffectResult.proto b/proto/AttackHitEffectResult.proto index d7fc0d22..6b116523 100644 --- a/proto/AttackHitEffectResult.proto +++ b/proto/AttackHitEffectResult.proto @@ -2,14 +2,12 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; - - - +// Name: KPDGACKMNJA message AttackHitEffectResult { - uint32 Unk3300_KLNGDAMMFIF = 3; - float airStrength = 6; - uint32 Unk3300_LCKECJCKKJK = 13; - float hitHaltTime = 15; - float retreatStrength = 4; - float hitHaltTimeScale = 7; -} + float hitHaltTime = 14; + float airStrength = 7; + uint32 NCIHLNFLAAF = 10; + float retreatStrength = 4; + float hitHaltTimeScale = 2; + uint32 LDDDDFHEMBA = 3; +} \ No newline at end of file diff --git a/proto/AttackResult.proto b/proto/AttackResult.proto index 3364275c..5bfe9ae6 100644 --- a/proto/AttackResult.proto +++ b/proto/AttackResult.proto @@ -22,7 +22,7 @@ message AttackResult { float GCKKIKJLCKG = 1030; uint32 GFAODFMIIIB = 278; float AEIPHPGEFAN = 474; - HitCollision hitCollision = 7; + AttackHitEffectResult hit_eff_result = 10; uint32 IPPPOLACNMI = 13; bool ANNLKCIDPEC = 1534; uint32 attacker_id = 2; @@ -30,7 +30,7 @@ message AttackResult { bool JKJBOKBIIBI = 196; string anim_event_id = 5; Vector resolved_dir = 15; - AttackHitEffectResult hitEffResult = 10; + HitCollision hit_collision = 7; uint32 BIHIHLDIPOK = 6; uint32 element_type = 4; uint32 OOLJHPBLPDL = 352; diff --git a/proto/AvatarTeamResonanceInfo.proto b/proto/AvatarTeamResonanceInfo.proto index 2922553d..7fe1c467 100644 --- a/proto/AvatarTeamResonanceInfo.proto +++ b/proto/AvatarTeamResonanceInfo.proto @@ -5,9 +5,9 @@ option java_package = "emu.grasscutter.net.proto"; // Name: LLKMMEJJNNF message AvatarTeamResonanceInfo { - repeated uint32 INOIJMMCNEF = 8; + repeated uint32 add_team_resonance_id_list = 8; //INOIJMMCNEF uint32 entity_id = 2; - repeated uint32 MJMEKGPPGIO = 10; + repeated uint32 del_team_resonance_id_list = 10; //MJMEKGPPGIO uint64 avatar_guid = 3; } diff --git a/proto/AvatarUpgradeRsp.proto b/proto/AvatarUpgradeRsp.proto index 6f7e0f6e..9cc7dc30 100644 --- a/proto/AvatarUpgradeRsp.proto +++ b/proto/AvatarUpgradeRsp.proto @@ -10,7 +10,7 @@ message AvatarUpgradeRsp { uint32 cur_level = 15; int32 retcode = 1; uint64 avatar_guid = 13; - map oldFightPropMap = 7; - map curFightPropMap = 12; + map cur_fight_prop_map = 7; //GEKBLKPMJCG + map old_fight_prop_map = 12; //AFEDLAOGFOC } diff --git a/proto/ChangeHpReason.proto b/proto/ChangeHpReason.proto index 3e0bf5d2..f1ab3790 100644 --- a/proto/ChangeHpReason.proto +++ b/proto/ChangeHpReason.proto @@ -3,7 +3,7 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; - +// Name: GFDBMHNEOFL enum ChangeHpReason { CHANGE_HP_REASON_NONE = 0; CHANGE_HP_REASON_SUB_AVATAR = 1; diff --git a/proto/ChapterStateNotify.proto b/proto/ChapterStateNotify.proto index 79bd689a..1390c330 100644 --- a/proto/ChapterStateNotify.proto +++ b/proto/ChapterStateNotify.proto @@ -7,13 +7,13 @@ import "ChapterState.proto"; // Name: EGGHDNJDFIM // CmdId: 427 message ChapterStateNotify { - // Name: POAIPEHKEHE + // Name: POAIPEHKEHE > NeedPlayerLevel message NeedPlayerLevel { bool is_limit = 12; uint32 configNeedPlayerLevel = 11; } - // Name: OKNHDJOIJFI + // Name: OKNHDJOIJFI > NeedBeginTime message NeedBeginTime { bool is_limit = 10; uint32 configNeedBeginTime = 3; diff --git a/proto/DailyDungeonEntryInfo.proto b/proto/DailyDungeonEntryInfo.proto index d871be2e..0311e34b 100644 --- a/proto/DailyDungeonEntryInfo.proto +++ b/proto/DailyDungeonEntryInfo.proto @@ -7,8 +7,8 @@ import "DungeonEntryInfo.proto"; // Name: ILBGCAPNDLF message DailyDungeonEntryInfo { uint32 recommend_dungeon_id = 3; - uint32 dungeonEntryId = 1; - uint32 dungeonEntryConfigId = 14; + uint32 dungeon_entry_config_id = 1; //GGGEMNHNCNJ + uint32 dungeon_entry_id = 14; //MNDEGGLANGF DungeonEntryInfo recommend_dungeon_entry_info = 7; } diff --git a/proto/DungeonEntryInfo.proto b/proto/DungeonEntryInfo.proto index 1f00b2b2..251e0baf 100644 --- a/proto/DungeonEntryInfo.proto +++ b/proto/DungeonEntryInfo.proto @@ -8,10 +8,10 @@ import "WeeklyBossResinDiscountInfo.proto"; message DungeonEntryInfo { uint32 start_time = 4; uint32 next_refresh_time = 2; - uint32 HFEFHDCOMLB = 12; - uint32 EIMBMLKPONH = 7; + uint32 max_boss_chest_num = 12; //HFEFHDCOMLB + uint32 EIMBMLKPONH = 7; //not used bool is_passed = 15; - uint32 JPBJFFCFINC = 6; + uint32 JPBJFFCFINC = 6; //not used WeeklyBossResinDiscountInfo weekly_boss_resin_discount_info = 10; uint32 dungeon_id = 11; uint32 end_time = 9; diff --git a/proto/DungeonSettleNotify.proto b/proto/DungeonSettleNotify.proto index 7aacff7b..1409825a 100644 --- a/proto/DungeonSettleNotify.proto +++ b/proto/DungeonSettleNotify.proto @@ -15,7 +15,7 @@ message DungeonSettleNotify { uint32 close_time = 11; uint32 createPlayerUid = 10; repeated uint32 fail_cond_list = 3; - map settleShow = 6; + map settleShow = 14; map strengthen_point_data_map = 9; bool is_success = 15; uint32 result = 12; diff --git a/proto/FurnitureMakeSlot.proto b/proto/FurnitureMakeSlot.proto index 5dbc1458..cec86446 100644 --- a/proto/FurnitureMakeSlot.proto +++ b/proto/FurnitureMakeSlot.proto @@ -6,6 +6,6 @@ import "FurnitureMakeData.proto"; // Name: DIIKFAIPKGG message FurnitureMakeSlot { - repeated FurnitureMakeData furnitureMakeDataList = 1; + repeated FurnitureMakeData furniture_make_data_list = 1; } diff --git a/proto/GachaItem.proto b/proto/GachaItem.proto index d271c221..ab0f0e71 100644 --- a/proto/GachaItem.proto +++ b/proto/GachaItem.proto @@ -9,8 +9,8 @@ import "ItemParam.proto"; message GachaItem { repeated ItemParam token_item_list = 13; ItemParam gacha_item = 15; - bool isGachaItemNew = 4; + bool is_flash_card = 4; //ECDEIIANGJN repeated GachaTransferItem transfer_items = 7; - bool isFlashCard = 10; + bool is_gacha_item_new = 10; //HFDPDGIDDLB } diff --git a/proto/GachaWishReq.proto b/proto/GachaWishReq.proto index 1e7d15e5..d1e94590 100644 --- a/proto/GachaWishReq.proto +++ b/proto/GachaWishReq.proto @@ -6,8 +6,8 @@ option java_package = "emu.grasscutter.net.proto"; // Name: HEEOPFJGOKN // CmdId: 1514 message GachaWishReq { - uint32 gachaScheduleId = 9; + uint32 gachaScheduleId = 9; //NMKGGDOKHLF uint32 item_id = 11; - uint32 gachaType = 5; + uint32 gachaType = 5; //DGIFMDIADJF } diff --git a/proto/GetScenePointRsp.proto b/proto/GetScenePointRsp.proto index db9e0305..f9783ae6 100644 --- a/proto/GetScenePointRsp.proto +++ b/proto/GetScenePointRsp.proto @@ -10,12 +10,12 @@ message GetScenePointRsp { repeated uint32 toBeExploreDungeonEntryList = 13; //FKDLJELPPOJ int32 retcode = 2; repeated uint32 hide_point_list = 12; - repeated uint32 unhide_point_list = 7; //LLLIACPHNEH + repeated uint32 locked_point_list = 7; //LLLIACPHNEH uint32 belong_uid = 8; - repeated uint32 unlockAreaList = 11; //KBGDANIJLFK - repeated uint32 notExploredDungeonEntryList = 14; //LEAMLBEEBMN + repeated uint32 notExploredDungeonEntryList = 11; //KBGDANIJLFK + repeated uint32 unlockAreaList = 14; //LEAMLBEEBMN bool PGBKOMBKBKG = 5; // new field - repeated uint32 locked_point_list = 10; //JOMDNANCHND + repeated uint32 unhide_point_list = 10; //JOMDNANCHND repeated uint32 groupUnlimitPointList = 15; //HJLALADBFAC uint32 scene_id = 6; repeated uint32 unlocked_point_list = 4; diff --git a/proto/HitCollision.proto b/proto/HitCollision.proto index 7ec844bc..2d507134 100644 --- a/proto/HitCollision.proto +++ b/proto/HitCollision.proto @@ -5,11 +5,14 @@ option java_package = "emu.grasscutter.net.proto"; import "Vector.proto"; import "HitColliderType.proto"; + +// Name: CPAKHCFDGLO message HitCollision { - float attackeeHitForceAngle = 7; - Vector hitDir = 5; + float attackeeHitForceAngle = 7; + Vector hit_point = 5; float attackeeHitEntityAngle = 9; int32 hit_box_index = 2; - Vector hitPoint = 4; + Vector hit_dir = 4; HitColliderType hit_collider_type = 8; } + diff --git a/proto/HomeBasicInfo.proto b/proto/HomeBasicInfo.proto index b3a0ee72..053d4bd4 100644 --- a/proto/HomeBasicInfo.proto +++ b/proto/HomeBasicInfo.proto @@ -8,11 +8,11 @@ import "HomeLimitedShopInfo.proto"; message HomeBasicInfo { uint32 level = 14; uint64 exp = 8; - uint32 curRoomSceneId = 3; + uint32 cur_module_id = 3; //FBNCMGADPOF string owner_nick_name = 7; - uint32 curModuleId = 2; + uint32 cur_room_scene_id = 2; //PGOLLEEPPFI HomeLimitedShopInfo limited_shop_info = 5; - uint32 homeOwnerUid = 6; + uint32 home_owner_uid = 6; //PGOONNIGDEH bool is_in_edit_mode = 9; } diff --git a/proto/HomeLimitedShopInfo.proto b/proto/HomeLimitedShopInfo.proto index 3d7368b9..f27d0c36 100644 --- a/proto/HomeLimitedShopInfo.proto +++ b/proto/HomeLimitedShopInfo.proto @@ -8,9 +8,8 @@ import "Vector.proto"; message HomeLimitedShopInfo { uint32 nextGuestOpenTime = 12; uint32 nextOpenTime = 11; - Vector djinnPos = 1; + Vector djinn_pos = 1; //CKJKPEEKOGG uint32 nextCloseTime = 6; uint32 uid = 14; - Vector djinnRot = 9; -} - + Vector djinn_rot = 9; //GMPJFCODOLK +} \ No newline at end of file diff --git a/proto/HomeResource.proto b/proto/HomeResource.proto index b57ffd23..3a314a96 100644 --- a/proto/HomeResource.proto +++ b/proto/HomeResource.proto @@ -2,8 +2,9 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; +// Name: FHCMHOPJELB message HomeResource { - uint32 storeLimit = 14; - uint32 storeValue = 3; - uint32 nextRefreshTime = 1; -} + uint32 next_refresh_time = 1; + uint32 store_limit = 14; //MEKKKFKHOPD + uint32 store_value = 3; //JECDNACMJKP +} \ No newline at end of file diff --git a/proto/HomeResourceNotify.proto b/proto/HomeResourceNotify.proto index 706e268c..2ce4c2d3 100644 --- a/proto/HomeResourceNotify.proto +++ b/proto/HomeResourceNotify.proto @@ -7,7 +7,6 @@ import "HomeResource.proto"; // Name: PEPNHFLKBLG // CmdId: 4753 message HomeResourceNotify { - HomeResource homeCoin = 5; - HomeResource fetterExp = 14; -} - + HomeResource fetter_exp = 5; //DPCGMOMFNCD + HomeResource home_coin = 14; //ONMIIOIPGAI +} \ No newline at end of file diff --git a/proto/HomeResourceTakeFetterExpRsp.proto b/proto/HomeResourceTakeFetterExpRsp.proto index 65a8cef7..89614e22 100644 --- a/proto/HomeResourceTakeFetterExpRsp.proto +++ b/proto/HomeResourceTakeFetterExpRsp.proto @@ -8,6 +8,6 @@ import "HomeResource.proto"; // CmdId: 4808 message HomeResourceTakeFetterExpRsp { int32 retcode = 2; - HomeResource fetterExp = 9; + HomeResource fetter_exp = 9; } diff --git a/proto/HomeResourceTakeHomeCoinRsp.proto b/proto/HomeResourceTakeHomeCoinRsp.proto index bc013dc8..52ff656d 100644 --- a/proto/HomeResourceTakeHomeCoinRsp.proto +++ b/proto/HomeResourceTakeHomeCoinRsp.proto @@ -8,6 +8,6 @@ import "HomeResource.proto"; // CmdId: 4554 message HomeResourceTakeHomeCoinRsp { int32 retcode = 3; - HomeResource homeCoin = 9; + HomeResource home_coin = 9; } diff --git a/proto/InvestigationMonster.proto b/proto/InvestigationMonster.proto index 2b349f8b..a5437db3 100644 --- a/proto/InvestigationMonster.proto +++ b/proto/InvestigationMonster.proto @@ -15,7 +15,7 @@ message InvestigationMonster { uint32 max_boss_chest_num = 13; //HFEFHDCOMLB bool is_area_locked = 14; // MFGIMDGKDHH - uint32 NKADJMFOMGB = 3; + uint32 refresh_interval = 3; //NKADJMFOMGB bool is_alive = 11; // ABCENJAFGOF WeeklyBossResinDiscountInfo weekly_boss_resin_discount_info = 9; uint32 next_refresh_time = 8; @@ -24,7 +24,7 @@ message InvestigationMonster { uint32 scene_id = 7; uint32 level = 5; LockState lock_state = 10; - uint32 refresh_interval = 4; // JPBJFFCFINC + uint32 JPBJFFCFINC = 4; // JPBJFFCFINC uint32 resin = 15; uint32 monster_id = 308; uint32 boss_chest_num = 1; // HDIBPIICNBB diff --git a/proto/ModifierProperty.proto b/proto/ModifierProperty.proto index 9f44c119..51521da0 100644 --- a/proto/ModifierProperty.proto +++ b/proto/ModifierProperty.proto @@ -1,10 +1,12 @@ syntax = "proto3"; -import "AbilityString.proto"; - option java_package = "emu.grasscutter.net.proto"; +import "AbilityString.proto"; + +// Name: HBMJGKJKIGL message ModifierProperty { - AbilityString key = 8; - float value = 9; + float value = 9; + AbilityString key = 8; } + diff --git a/proto/PersonalLineAllDataRsp.proto b/proto/PersonalLineAllDataRsp.proto index 43f4d668..b89cc306 100644 --- a/proto/PersonalLineAllDataRsp.proto +++ b/proto/PersonalLineAllDataRsp.proto @@ -11,7 +11,6 @@ message PersonalLineAllDataRsp { uint32 cur_finished_daily_task_count = 2; uint32 legendary_key_count = 7; int32 retcode = 14; - repeated uint32 ongoingPersonalLineList = 12; - repeated uint32 canBeUnlockedPersonalLineList = 6; -} - + repeated uint32 can_be_unlocked_personal_line_list = 12; // LFBFDPFCOGN + repeated uint32 ongoing_personal_line_list = 6; // NEBDFELPDCO +} \ No newline at end of file diff --git a/proto/PullPrivateChatReq.proto b/proto/PullPrivateChatReq.proto index 6edd7cd3..7f8a069f 100644 --- a/proto/PullPrivateChatReq.proto +++ b/proto/PullPrivateChatReq.proto @@ -7,7 +7,7 @@ option java_package = "emu.grasscutter.net.proto"; // CmdId: 4984 message PullPrivateChatReq { uint32 target_uid = 9; - uint32 JBKDCKFOAGH = 11; - uint32 JJDCBKLFOGK = 7; + uint32 pull_num = 11; + uint32 from_sequence = 7; } diff --git a/proto/PullRecentChatReq.proto b/proto/PullRecentChatReq.proto index 8616cb15..1b75a62a 100644 --- a/proto/PullRecentChatReq.proto +++ b/proto/PullRecentChatReq.proto @@ -6,7 +6,7 @@ option java_package = "emu.grasscutter.net.proto"; // Name: MNJBPJGKHLJ // CmdId: 5032 message PullRecentChatReq { - uint32 GODLNLIJKDE = 15; - uint32 JBKDCKFOAGH = 8; + uint32 begin_sequence = 15; //GODLNLIJKDE + uint32 pull_num = 8; //JBKDCKFOAGH } diff --git a/proto/QuestProgressUpdateNotify.proto b/proto/QuestProgressUpdateNotify.proto index a31cc1ee..ce356142 100644 --- a/proto/QuestProgressUpdateNotify.proto +++ b/proto/QuestProgressUpdateNotify.proto @@ -6,8 +6,7 @@ option java_package = "emu.grasscutter.net.proto"; // Name: APPHCCAKOKB // CmdId: 466 message QuestProgressUpdateNotify { - repeated uint32 failProgressList = 7; - repeated uint32 finishProgressList = 2; + repeated uint32 finish_progress_list = 7; //DOFGANFLADG + repeated uint32 fail_progress_list = 2; //NAJLNEMFEGA uint32 quest_id = 3; -} - +} \ No newline at end of file diff --git a/proto/SeaLampActivityInfo.proto b/proto/SeaLampActivityInfo.proto new file mode 100644 index 00000000..7df2b4fa --- /dev/null +++ b/proto/SeaLampActivityInfo.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + +import "SeaLampSectionInfo.proto"; + +// Name: FPJLKJADJAC +message SeaLampActivityInfo { + repeated SeaLampSectionInfo section_info_list = 8; + uint32 sea_lamp_coin = 9; + uint32 mechanicus_id = 11; + bool IAIGGMMDBIH = 7; + uint32 day_index = 6; + bool is_content_closed = 15; + uint32 popularity = 13; + bool KHJFGGCODAG = 14; + uint32 first_day_start_time = 4; +} + diff --git a/proto/SeaLampSectionInfo.proto b/proto/SeaLampSectionInfo.proto new file mode 100644 index 00000000..9c70c3e7 --- /dev/null +++ b/proto/SeaLampSectionInfo.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +option java_package = "emu.grasscutter.net.proto"; + + +// Name: KKEHCHJODDD +message SeaLampSectionInfo { + uint32 section_id = 14; +} + diff --git a/proto/Shop.proto b/proto/Shop.proto index 095b0e40..ae3aae9f 100644 --- a/proto/Shop.proto +++ b/proto/Shop.proto @@ -2,20 +2,20 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; -import "ShopMcoinProduct.proto"; -import "ShopCardProduct.proto"; import "ShopConcertProduct.proto"; +import "ShopCardProduct.proto"; +import "ShopMcoinProduct.proto"; import "ShopGoods.proto"; // Name: HNDMELNBJGE message Shop { uint32 city_reputation_level = 11; uint32 city_id = 4; - repeated ShopMcoinProduct mcoin_product_list = 1; + repeated ShopConcertProduct concert_product_list = 1; uint32 next_refresh_time = 10; repeated ShopGoods goods_list = 8; - repeated ShopConcertProduct concert_product_list = 7; + repeated ShopMcoinProduct mcoin_product_list = 7; uint32 shop_type = 9; - repeated ShopCardProduct card_product_list = 12; + repeated ShopCardProduct card_product_list = 12; // FPPKBMBBHOD } diff --git a/proto/ShopCardProduct.proto b/proto/ShopCardProduct.proto index e4e97ef9..02d1a867 100644 --- a/proto/ShopCardProduct.proto +++ b/proto/ShopCardProduct.proto @@ -2,24 +2,25 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; - - import "ItemParam.proto"; +// Name: FINEJDCEECI message ShopCardProduct { - message ResinCard { - repeated ItemParam baseItemList = 1; - repeated ItemParam perDayItemList = 2; - } + // Name: KPKPFMLBAOL + message ResinCard { + repeated ItemParam base_item_list = 1; // GFLEMFDCFIM + repeated ItemParam per_day_item_list = 2; // HBANPLNDOJA + } - string productId = 1; - string priceTier = 2; - uint32 mcoinBase = 3; - uint32 hcoinPerDay = 4; - uint32 days = 5; - uint32 remainRewardDays = 6; - uint32 cardProductType = 7; - oneof extra_card_data { - ResinCard resin_card = 101; - } + string product_id = 1; + string price_tier = 2; + uint32 mcoin_base = 3; + uint32 hcoin_per_day = 4; + uint32 days = 5; + uint32 remain_reward_days = 6; + uint32 card_product_type = 7; + oneof extra_card_data { + ResinCard resin_card = 101; + } } + diff --git a/proto/ShopConcertProduct.proto b/proto/ShopConcertProduct.proto index 555014ce..510a98fa 100644 --- a/proto/ShopConcertProduct.proto +++ b/proto/ShopConcertProduct.proto @@ -3,14 +3,14 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; - - +// Name: FIMJMLPLPAC message ShopConcertProduct { - string productId = 1; - string priceTier = 2; - uint32 obtainCount = 3; - uint32 obtainLimit = 4; - uint32 beginTime = 5; - uint32 endTime = 6; - uint32 buyTimes = 7; + string product_id = 1; + string price_tier = 2; + uint32 obtain_count = 3; + uint32 obtain_limit = 4; + uint32 begin_time = 5; + uint32 end_time = 6; + uint32 buy_times = 7; } + diff --git a/proto/ShopGoods.proto b/proto/ShopGoods.proto index 8d8c528c..2c39f337 100644 --- a/proto/ShopGoods.proto +++ b/proto/ShopGoods.proto @@ -6,25 +6,25 @@ import "ItemParam.proto"; // Name: EFLDHGLFIDD message ShopGoods { - uint32 disableType = 7; // OCIGJMBPIMN + uint32 min_level = 7; //OCIGJMBPIMN uint32 JAFFFHILNCD = 1817; ItemParam goods_item = 8; - uint32 end_time = 12; - uint32 hcoin = 14; //JPCBEPKDBGA - repeated uint32 pre_goods_id_list = 3; - uint32 ALOPKNFLFBE = 570; - uint32 boughtNum = 4; //KCHMFBKCLKO - uint32 goodsId = 9; //GOMAIIJPDKD - uint32 HBAEGHNDCKB = 11; // HBAEGHNDCKB - uint32 secondarySheetId = 505; //KKINAOMJKAD - uint32 maxLevel = 6; // FGACANHEBMH - uint32 begin_time = 5; - uint32 next_refresh_time = 10; - repeated ItemParam cost_item_list = 1; - uint32 minLevel = 1467; //LMOPLEOOIJM - uint32 LLJPJOEMPFE = 15; // LLJPJOEMPFE, hcoin=coin wrong - uint32 mcoin = 2; // MIBMBPJHBBM // fix - uint32 buyLimit = 1344; // LLCOFLCEKDB - uint32 scoin = 13; //CABPCJFGBLJ // fix + uint32 end_time = 12; //ok + uint32 scoin = 14; //JPCBEPKDBGA + repeated uint32 pre_goods_id_list = 3; //ok + uint32 secondarySheetId = 570; // ALOPKNFLFBE ??? + uint32 boughtNum = 4; //KCHMFBKCLKO ??? + uint32 goods_id = 9; //GOMAIIJPDKD + uint32 max_level = 11; //HBAEGHNDCKB + uint32 disableType = 505; + uint32 buy_limit = 6; //FGACANHEBMH + uint32 begin_time = 5; //ok + uint32 next_refresh_time = 10; //ok + repeated ItemParam cost_item_list = 1; //ok + uint32 LMOPLEOOIJM = 1467; + uint32 LLJPJOEMPFE = 15; + uint32 hcoin = 2; //MIBMBPJHBBM + uint32 LLCOFLCEKDB = 1344; + uint32 mcoin = 13; //CABPCJFGBLJ } diff --git a/proto/ShopMcoinProduct.proto b/proto/ShopMcoinProduct.proto index 08ca1680..f062ce3b 100644 --- a/proto/ShopMcoinProduct.proto +++ b/proto/ShopMcoinProduct.proto @@ -3,14 +3,14 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; - - +// Name: LIJKGGFCHOB message ShopMcoinProduct { - string productId = 1; - string priceTier = 2; - uint32 mcoinBase = 3; - uint32 mcoinNonFirst = 4; - uint32 mcoinFirst = 5; - uint32 boughtNum = 6; - bool isAudit = 7; + string product_id = 1; + string price_tier = 2; + uint32 mcoin_base = 3; + uint32 mcoin_non_first = 4; + uint32 mcoin_first = 5; + uint32 bought_num = 6; + bool is_audit = 7; } + diff --git a/proto/SkipPlayerGameTimeReq.proto b/proto/SkipPlayerGameTimeReq.proto index 9d1aeab7..3e8a9323 100644 --- a/proto/SkipPlayerGameTimeReq.proto +++ b/proto/SkipPlayerGameTimeReq.proto @@ -2,8 +2,12 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; + +// Name: MJMGAGMFAOO +// CmdId: 196 message SkipPlayerGameTimeReq { - bool isForceSet = 3; - uint32 clientGameTime = 1; - uint32 gameTime = 15; + uint32 game_time = 14; + uint32 client_game_time = 7; + bool is_force_set = 11; } + diff --git a/proto/SkipPlayerGameTimeRsp.proto b/proto/SkipPlayerGameTimeRsp.proto index c1b9c696..6ee7a19a 100644 --- a/proto/SkipPlayerGameTimeRsp.proto +++ b/proto/SkipPlayerGameTimeRsp.proto @@ -2,8 +2,12 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; + +// Name: BHNBOAEFEGL +// CmdId: 163 message SkipPlayerGameTimeRsp { - uint32 clientGameTime = 14; - uint32 gameTime = 15; - int32 retcode = 12; + uint32 client_game_time = 9; + uint32 game_time = 2; + int32 retcode = 7; } + diff --git a/proto/TowerAllDataRsp.proto b/proto/TowerAllDataRsp.proto index 3c2202fc..d3c70276 100644 --- a/proto/TowerAllDataRsp.proto +++ b/proto/TowerAllDataRsp.proto @@ -9,22 +9,22 @@ import "TowerFloorRecord.proto"; // Name: NFDBAJIDFBG // CmdId: 2465 message TowerAllDataRsp { - map skipFloorGrantedRewardItemMap = 6; - TowerMonthlyBrief monthlyBrief = 2; - uint32 nextScheduleChangeTime = 11; // BAJALPKLOHN - uint32 OGLKMJOBNAK = 3; // OGLKMJOBNAK + map floor_open_time_map = 6; //BPOEDICFILA + TowerMonthlyBrief last_schedule_monthly_brief = 2; //GPCJOCOKPCL + uint32 BAJALPKLOHN = 11; //not used + uint32 OGLKMJOBNAK = 3; //not used int32 retcode = 9; - uint32 scheduleStartTime = 15; //CKCFIIGKHMJ + uint32 CKCFIIGKHMJ = 15; //not used bool is_first_interact = 14; - uint32 EJMAMALGICG = 12; // EJMAMALGICG - uint32 IOOHBFIGKHH = 13; - map floorOpenTimeMap = 10; + uint32 EJMAMALGICG = 12; + uint32 tower_schedule_id = 13; //IOOHBFIGKHH + map AHFICLOPFLC = 10; //AHFICLOPFLC repeated TowerFloorRecord tower_floor_record_list = 1; bool is_finished_entrance_floor = 4; - uint32 CFEHKIFIKFB = 7; - uint32 AMFOBDDCIHK = 1758; - TowerMonthlyBrief lastScheduleMonthlyBrief = 622; - uint32 towerScheduleId = 8; + uint32 next_schedule_change_time = 7; //CFEHKIFIKFB + uint32 schedule_start_time = 1758; //AMFOBDDCIHK + TowerMonthlyBrief monthly_brief = 622; //HCLHNDJDAPC + uint32 AKANNMFELNA = 8; ////not used TowerCurLevelRecord cur_level_record = 5; } diff --git a/proto/TowerMonthlyBrief.proto b/proto/TowerMonthlyBrief.proto index f451a644..b0590f00 100644 --- a/proto/TowerMonthlyBrief.proto +++ b/proto/TowerMonthlyBrief.proto @@ -3,11 +3,11 @@ syntax = "proto3"; option java_package = "emu.grasscutter.net.proto"; - - +// Name: TowerMonthlyBrief message TowerMonthlyBrief { - uint32 bestLevelIndex = 11; - uint32 towerScheduleId = 7; - uint32 totalStarCount = 14; - uint32 bestFloorIndex = 8; + uint32 tower_schedule_id = 11; //IOOHBFIGKHH + uint32 total_star_count = 12; //BNODKLKHBPA + uint32 best_level_index = 14; //JILIANEOBAP + uint32 best_floor_index = 10; //GIMMDPJPPNH } + diff --git a/proto/TrialAvatarGrantRecord.proto b/proto/TrialAvatarGrantRecord.proto index 59b8330b..27c22051 100644 --- a/proto/TrialAvatarGrantRecord.proto +++ b/proto/TrialAvatarGrantRecord.proto @@ -6,21 +6,21 @@ option java_package = "emu.grasscutter.net.proto"; // Name: FINJPJBDGIK message TrialAvatarGrantRecord { // Name: FJBKKFJNBHD - enum FJBKKFJNBHD { - FJBKKFJNBHD_MLBFMJIBJEP = 0; - FJBKKFJNBHD_NDIBKKFOJKH = 1; - FJBKKFJNBHD_CBHCDCFMGJC = 2; - FJBKKFJNBHD_CJONEJKHGGD = 3; - FJBKKFJNBHD_LKFLHJBKDAL = 4; - FJBKKFJNBHD_KEDGKBAANHA = 5; - FJBKKFJNBHD_NGEADLFHLPL = 6; - FJBKKFJNBHD_HGIMGKGCPFP = 7; - FJBKKFJNBHD_IENCKFHOCGO = 8; - FJBKKFJNBHD_JGNOOBCCHGL = 9; - FJBKKFJNBHD_KBOHKIPDMAB = 10; - FJBKKFJNBHD_DKCNBCHPJOA = 11; - FJBKKFJNBHD_FKMOBKNNLLK = 12; - FJBKKFJNBHD_ENDFNEMHAKM = 13; + enum GrantReason { + GRANT_REASON_INVALID = 0; + GRANT_REASON_BY_QUEST = 1; + GRANT_REASON_BY_TRIAL_AVATAR_ACTIVITY = 2; + GRANT_REASON_BY_DUNGEON_ELEMENT_CHALLENGE = 3; + GRANT_REASON_BY_MIST_TRIAL_ACTIVITY = 4; + GRANT_REASON_BY_SUMO_ACTIVITY = 5; + GRANT_REASON_BY_POTION_ACTIVITY = 6; + GRANT_REASON_BY_CRYSTAL_LINK_ACTIVITY = 7; + GRANT_REASON_BY_IRODORI_MASTER = 8; + GRANT_REASON_BY_GM = 9; + GRANT_REASON_BY_INSTABLE_SPRAY_ACTIVITY = 10; + GRANT_REASON_BY_MUQADAS_POTION_ACTIVITY = 11; + GRANT_REASON_BY_VINTAGE_HUNTING = 12; + GRANT_REASON_BY_CHAR_AMUSEMENT = 13; FJBKKFJNBHD_HMLDNDBKNFL = 14; FJBKKFJNBHD_PJDEJIHFCPP = 15; } diff --git a/proto/WorldOwnerDailyTaskNotify.proto b/proto/WorldOwnerDailyTaskNotify.proto index d4d6fcd2..28e25f88 100644 --- a/proto/WorldOwnerDailyTaskNotify.proto +++ b/proto/WorldOwnerDailyTaskNotify.proto @@ -7,8 +7,8 @@ import "DailyTaskInfo.proto"; // Name: IHPCDCEIDJD // CmdId: 130 message WorldOwnerDailyTaskNotify { - uint32 finishedDailyTaskNum = 10; - uint32 filterCityId = 8; + uint32 finished_daily_task_num = 10; + uint32 filter_city_id = 8; repeated DailyTaskInfo task_list = 6; }