sync deobf.proto

This commit is contained in:
Yuuki 2024-07-04 19:30:03 +08:00
parent f3abfbe553
commit 885dfe5970
3 changed files with 12045 additions and 73 deletions

38
cmdid.js Normal file
View File

@ -0,0 +1,38 @@
const fs = require('fs');
// Read the proto file
fs.readFile('deobf.proto', 'utf8', (err, data) => {
if (err) {
console.error(err);
return;
}
const pattern = /\/\/\s*CmdId:\s*(\d+)?\s*\n\s*message\s+(\w+)\s*{/g;
let match;
const messages = [];
// Find all matches
while ((match = pattern.exec(data)) !== null) {
const cmdId = match[1] ? parseInt(match[1], 10) : 0; // If cmdId is not present, set to 0
const name = match[2];
// Skip messages without CmdId
if (cmdId != 0) {
messages.push({ name, id: cmdId });
//console.log('Found message:', name, 'CmdId:', cmdId);
} else{
console.log('Not foundFound message:', name);
}
}
// Convert to JSON format
const jsonContent = JSON.stringify(messages, null, 4);
// Write to test.json
fs.writeFile('cmdid_deobf.json', jsonContent, 'utf8', (err) => {
if (err) {
console.error(err);
return;
}
console.log('test.json has been saved.');
});
});

11934
cmdid_deobf.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -383,7 +383,7 @@ message EJJDABDAIIJ {
// CmdId: 4336
message IANOFCIIMCP {
repeated ItemParam item_param_list = 4;
repeated uint64 IMMDEMBGNGF = 5;
repeated uint64 food_weapon_guid_list = 5;
InterOpType op_type = 12;
uint32 gadget_entity_id = 13;
uint32 gadget_id = 14;
@ -518,7 +518,7 @@ message ENHBKMMHLLD {
FKBCBIDMKPC KGLMCIEKAGL = 5;
}
// CmdId: 25103
// CmdId: 25103 ? (notif status)
message HKOAKAJJAGC {
}
@ -605,7 +605,7 @@ message AvatarExcelInfo {
// CmdId: 22714
message KHDIMKHOFGI {
uint64 CMFCDHLPBNA = 3;
uint64 target_weapon_guid = 3;
repeated ItemParam item_param_list = 4;
int32 retcode = 8;
}
@ -781,7 +781,7 @@ message GetPlayerTokenRsp {
string token = 2; // self add
uint32 key_id = 720; // self add
/* protected @ 0x20 */// bytes extra_bin_data = 65535;
/* protected @ 0x28 */// string AJOEFDIKLHM = 65535;
/* protected @ 0x28 */// string msg = 65535;
/* protected @ 0x30 */// repeated uint32 finish_collection_id_list = 65535;
string psn_id = 1402;
string country_code = 254;
@ -1195,7 +1195,7 @@ message PGAIHLMPBMA {
// CmdId: 25056
message PDGEAGKHCPG {
uint32 NEHLGIOLBJA = 9;
uint64 CMFCDHLPBNA = 13;
uint64 target_weapon_guid = 13;
repeated uint64 HICOIODAHGK = 15;
}
@ -1315,16 +1315,16 @@ message PLNOOAMPFMM {
uint32 EBODAKOOHOE = 1914;
}
message KNODJMAAMPD {
string BCFOBMONHBO = 2;
message AnnounceData {
string count_down_text = 2; // ?
uint32 end_time = 3;
bool LJGLGHFNMOJ = 5;
bool is_center_system_last_5_every_minutes = 5;
uint32 config_id = 7;
uint32 IIPBPLFFPJA = 8;
uint32 count_down_frequency = 8; // ?
uint32 begin_time = 12;
uint32 CBGAMFOCOIB = 13;
string MNBFIGHNCNO = 14;
string NKGAEGCBGID = 15;
uint32 center_system_frequency = 13; // OK ?
string center_system_text = 14;
string dungeon_confirm_text = 15; // ?
}
// CmdId: 26563
@ -1544,12 +1544,12 @@ message GNFMAHAJHGA {
// CmdId: 1182
message OLAEGBJMEFL {
uint32 BCGGLAKCPLO = 1;
uint32 target_weapon_awaken_level = 1;
map<uint32, uint32> CPENAIDNBFF = 2;
int32 retcode = 6;
uint64 avatar_guid = 7;
map<uint32, uint32> CBHLDELLPML = 13;
uint64 CMFCDHLPBNA = 15;
uint64 target_weapon_guid = 15;
}
message JKIEGFIDDND {
@ -2729,7 +2729,7 @@ message AOMDGIMEPHD {
}
// CmdId: 8012
message BHLPGMLLKJK {
message ExitTransPointRegionNotify {
uint32 scene_id = 6;
uint32 point_id = 9;
}
@ -3878,9 +3878,9 @@ message DICGHBAAJAE {
}
// CmdId: 3294
message LHEIDHIFFGK {
message WeaponUpgradeRsp {
uint32 cur_level = 3;
uint64 CMFCDHLPBNA = 7;
uint64 target_weapon_guid = 7;
int32 retcode = 12;
repeated ItemParam item_param_list = 13;
uint32 old_level = 14;
@ -4213,8 +4213,8 @@ message POBHNOCAAEK {
}
// CmdId: 6675
message OJNKEODJCJG {
uint32 NGDANBNGEKD = 6;
message EnterWorldAreaReq {
uint32 area_type = 6;
uint32 area_id = 7;
}
@ -4609,7 +4609,7 @@ message SetNameCardRsp {
uint32 name_card_id = 12;
}
message JOLGLBCFGND {
message AiSyncInfo {
uint32 entity_id = 4;
bool BLAILJICANB = 7;
bool NHKNNAOKGBG = 11;
@ -4910,7 +4910,7 @@ message BEEHBFEJMNO {
}
// CmdId: 22734
message NLIDKBFBKEB {
message ClientAIStateNotify {
uint32 cur_tactic = 6;
uint32 entity_id = 15;
}
@ -7493,7 +7493,7 @@ message KNCBHENGCKB {
uint32 level_id = 14;
}
// CmdId: 9504
// CmdId: 9504 ?x
message EGHJFAEHFNK {
int32 retcode = 8;
}
@ -9732,11 +9732,11 @@ message LKLMHKNLKNI {
}
// CmdId: 23521
message GDCMEIJPPOP {
message WeaponPromoteRsp {
uint32 JOIDOMFINIH = 2;
int32 retcode = 4;
uint32 LKDPJDHALGJ = 8;
uint64 CMFCDHLPBNA = 13;
uint64 target_weapon_guid = 13;
}
// CmdId: 25153
@ -10649,16 +10649,16 @@ message HMJLPBCLBCJ {
Vector IKGBCJAAFBP = 13;
}
message KMBMBGFCLNB {
bytes PNBIMFJGCIM = 1;
message AreaNotify {
bytes area_code = 1;
uint32 area_id = 2;
uint32 NGDANBNGEKD = 12;
uint32 area_type = 12;
}
oneof FGLLLICOIEG {
PINHIOBIOIF refresh_notify = 14;
BLJEFJGKCIL add_wind_bullet_notify = 9;
KMBMBGFCLNB area_notify = 8;
AreaNotify area_notify = 8;
}
}
@ -11402,8 +11402,8 @@ message INGBEAPEPEH {
}
// CmdId: 26944
message OOAPOAEHAAM {
repeated HKBPJNKGGCC LHMCLBGJNBA = 8;
message GetMapAreaRsp {
repeated MapAreaInfo map_area_info_list = 8;
int32 retcode = 13;
}
@ -14200,8 +14200,8 @@ message DNMEJJEODGC {
}
// CmdId: 9611
message MMKGKFCNNFJ {
uint64 CMFCDHLPBNA = 6;
message WeaponPromoteReq {
uint64 target_weapon_guid = 6;
}
// CmdId: 29906
@ -18295,9 +18295,9 @@ message KFDGFPBBNJP {
}
// CmdId: 24162
message LEDEEIJMAJN {
repeated uint64 IMMDEMBGNGF = 3;
uint64 CMFCDHLPBNA = 10;
message WeaponUpgradeReq {
repeated uint64 food_weapon_guid_list = 3;
uint64 target_weapon_guid = 10;
repeated ItemParam item_param_list = 13;
}
@ -18513,7 +18513,7 @@ message DFJOAJLMENN {
message MKGKIHKGHEI {
AnimatorParameterValueInfo value = 4;
bool FBEMJCPDDMF = 5;
bool is_server_cache = 5;
int32 name_id = 10;
uint32 entity_id = 12;
}
@ -19342,7 +19342,7 @@ message DNBALHBCBGE {
}
message HHDANPOFIHE {
/* protected @ 0x28 */// string AJOEFDIKLHM = 65535;
/* protected @ 0x28 */// string msg = 65535;
/* protected @ 0x30 */// bytes NCPLOLGMDOP = 65535;
/* protected @ 0x38 */// bytes AFPJFFOPKDF = 65535;
/* protected @ 0x40 */// bytes LCIGCIBIDPN = 65535;
@ -19584,7 +19584,7 @@ message RegionInfo {
string IBJDBOGCPBJ = 1;
uint32 gateserver_port = 2;
string CINMCEKOBLI = 3;
string NGDANBNGEKD = 7;
string area_type = 7;
string NJODNGAALKE = 8;
string FAGNOMNDGIM = 9;
string ADAKKDBJKKK = 10;
@ -20534,7 +20534,7 @@ message OMODKOKOHAM {
uint64 dungeon_guid = 8;
}
// CmdId: 20453
// CmdId: 20453 (tes2)
message EPJBIEOIPEC {
}
@ -20899,7 +20899,7 @@ message FBBGCFMILEK {
uint32 apply_uid = 14;
}
// CmdId: 21813
// CmdId: 21813 (tes3)
message MHLHAFDDEAF {
bool KPCHNHHPKJM = 3;
repeated uint32 FPCMLMCJKDB = 12;
@ -20957,7 +20957,7 @@ message IOCKICPKBPC {
}
// CmdId: 20724
message KFGIJGBNIGG {
message GetShopmallDataReq {
}
// CmdId: 1571
@ -22599,9 +22599,9 @@ message GBMLGLMAJEP {
// CmdId: 6115
message FFLLCENBCIH {
repeated int32 BAJKKPEEFED = 2;
repeated int32 remove_obstacle_ids = 2;
bool use_edge = 6;
repeated ToTheMoonObstacleInfo CDNIIEAEHEA = 9;
repeated ToTheMoonObstacleInfo add_obstacles = 9;
uint32 scene_id = 15;
}
@ -23256,9 +23256,9 @@ enum CPMJHCCLOKE {
}
// CmdId: 24710
message GLCLIIAOADG {
repeated uint32 MJABIIEHENA = 6;
repeated JOLGLBCFGND info_list = 13;
message EntityAiSyncNotify {
repeated uint32 local_avatar_alerted_monster_list = 6;
repeated AiSyncInfo info_list = 13;
}
message NIGMAGDOAOD {
@ -25442,7 +25442,7 @@ message JCEIECCIFHJ {
// CmdId: 28576
message AGJPFBKFGBB {
repeated HKBPJNKGGCC LHMCLBGJNBA = 11;
repeated MapAreaInfo map_area_info_list = 11;
}
// CmdId: 26342
@ -25911,7 +25911,7 @@ message BPHBEMAMBPD {
message MDLLIDBPMHN {
string HMLDEEHJADI = 1;
int32 retcode = 9;
string AJOEFDIKLHM = 12;
string msg = 12;
}
// CmdId: 25598
@ -26138,10 +26138,10 @@ message NLHNGPIGAPJ {
}
// CmdId: 8436
message FMPOBCLPIGO {
message EnterWorldAreaRsp {
uint32 area_id = 3;
int32 retcode = 5;
uint32 NGDANBNGEKD = 12;
uint32 area_type = 12;
}
message BMHANEKEJBH {
@ -26754,11 +26754,11 @@ message DLDCLNJJBFG {
}
// CmdId: 2375
message GPPPFELACIN {
message ObstacleModifyNotify {
repeated int32 DGJANCNNNCP = 3;
repeated int32 MAAACDMLALJ = 4;
repeated int32 BAJKKPEEFED = 7;
repeated ObstacleInfo CDNIIEAEHEA = 9;
repeated int32 remove_obstacle_ids = 7;
repeated ObstacleInfo add_obstacles = 9;
uint32 scene_id = 13;
}
@ -27153,7 +27153,7 @@ message PlayerLoginRsp {
ResVersionConfig res_version_config = 1498;
/* protected @ 0xA0 */// bytes player_data = 65535;
/* protected @ 0xA8 */// StopServerInfo FGGLOEBHLBN = 65535;
/* protected @ 0xB0 */// string AJOEFDIKLHM = 65535;
/* protected @ 0xB0 */// string msg = 65535;
/* protected @ 0xB8 */// bool is_transfer = 65535;
/* protected @ 0xB9 */// bool ADFFLOANLEB = 65535;
/* protected @ 0xBA */// bool CKPBABGDMKC = 65535;
@ -27347,7 +27347,7 @@ message PKOCEHDGLHE {
// CmdId: 3369
message EPFAFIBPELO {
string AJOEFDIKLHM = 10;
string msg = 10;
}
// CmdId: 4452
@ -27491,7 +27491,7 @@ message HLONGHPALAB {
int32 retcode = 11;
}
// CmdId: 23493
// CmdId: 23493 (tes, menu in adv book)
message KOOFBAPIMEJ {
uint32 scene_id = 4;
}
@ -28253,10 +28253,10 @@ message OAELECPEMOM {
}
// CmdId: 243
message GFKFHIJALJD {
string AJOEFDIKLHM = 1;
message AntiAddictNotify {
string msg = 1;
string level = 3;
int32 CIPEFLBLLKL = 11;
int32 msg_type = 11;
}
// CmdId: 9291
@ -28649,7 +28649,7 @@ message FIJENDBCDJJ {
}
// CmdId: 1452
message BLLGPFKGJIO {
message EvtDestroyGadgetNotify {
uint32 entity_id = 3;
ForwardType forward_type = 11;
}
@ -30013,8 +30013,8 @@ message DropHintNotify {
}
// CmdId: 1758
message NIICMKOCDDN {
repeated KNODJMAAMPD BPFDPMCGFFK = 10;
message ServerAnnounceNotify {
repeated AnnounceData announce_data_list = 10;
}
message MMDLOEJBCEK {
@ -30146,7 +30146,7 @@ message DNCLKLCKPIN {
// CmdId: 781
message FDOCBKDPEJJ {
string AJOEFDIKLHM = 11;
string msg = 11;
}
// CmdId: 28757
@ -30366,9 +30366,9 @@ message OBFNJOOACCC {
}
// CmdId: 1330
message EIPEACPKJEN {
message SceneAreaUnlockNotify {
uint32 scene_id = 3;
repeated uint32 HAHACOLBBCC = 7;
repeated uint32 area_list = 7;
}
message EMDMMLCEDJL {
@ -30864,7 +30864,7 @@ message HKDGPCLIDLL {
bool POHJHIGFOEK = 2;
repeated uint32 MOPFHPHAHLP = 3;
BKEOLGDNEID CIPEFLBLLKL = 8;
BKEOLGDNEID msg_type = 8;
uint32 reason = 10;
repeated uint32 AAMDCFJJELJ = 13;
}
@ -31528,8 +31528,8 @@ enum ResinCostType {
message MBCEJHOFBLP {
}
message HKBPJNKGGCC {
uint32 JBIHCBPOFFJ = 1;
message MapAreaInfo {
uint32 map_area_id = 1;
bool is_open = 2;
}
@ -31904,7 +31904,7 @@ message FFDLGCCGJEP {
Vector DMLNHBCHEKO = 14;
}
// CmdId: 27004
// CmdId: 27004 (time in menu)
message NHDDHBNDOBO {
}
@ -32139,7 +32139,7 @@ message POIBGHHMJBH {
}
// CmdId: 20259
message LAMOGOEBPPF {
message EnterTransPointRegionNotify {
uint32 scene_id = 4;
uint32 point_id = 6;
}
@ -32251,7 +32251,7 @@ message KEEMMPNLFHB {
// CmdId: 28488
message CNPJNNLOPCL {
EntityRendererChangedInfo renderer_changed_info = 4;
bool FBEMJCPDDMF = 5;
bool is_server_cache = 5;
uint32 entity_id = 7;
ForwardType forward_type = 15;
}
@ -32265,8 +32265,8 @@ message FishPoolInfo {
// CmdId: 21562
message HNDHLHPKPNN {
repeated ItemParam item_param_list = 3;
repeated uint64 IMMDEMBGNGF = 12;
uint64 CMFCDHLPBNA = 13;
repeated uint64 food_weapon_guid_list = 12;
uint64 target_weapon_guid = 13;
}
message JBLBNFJPLEJ {