for coop mode but not work yet

This commit is contained in:
Yuuki 2024-08-21 13:31:37 +08:00
parent 08af9deb09
commit 84cbf3411a
27 changed files with 90 additions and 141 deletions

View File

@ -1,11 +1,10 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "AbilityInvokeEntryHead.proto"; import "AbilityInvokeEntryHead.proto";
import "ForwardType.proto"; import "ForwardType.proto";
import "AbilityInvokeArgument.proto"; import "AbilityInvokeArgument.proto";
// 4.7.0 // 4.7.0
// ?
message AbilityInvokeEntry { message AbilityInvokeEntry {
uint32 event_id = 1; uint32 event_id = 1;
uint32 forward_peer = 2; uint32 forward_peer = 2;

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// Version: 4.7.0 // Version: 4.7.0
// CmdId: 5279 // CmdId: 21073 or 2728?
// ? // ?
message CanUseSkillNotify { message CanUseSkillNotify {
bool is_can_use_skill = 13; bool is_can_use_skill = 13;

View File

@ -1,10 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "EntityAbilityInvokeEntry.proto"; import "EntityAbilityInvokeEntry.proto";
// 4.7.0
//obf: KNDIDFOJEJD // CmdId: 4338
// CmdId: 22401 // obf: ?
message ClientAbilitiesInitFinishCombineNotify { message ClientAbilitiesInitFinishCombineNotify {
repeated EntityAbilityInvokeEntry entity_invoke_list = 2; repeated EntityAbilityInvokeEntry entity_invoke_list = 1;
} }

View File

@ -1,9 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "AbilityInvokeEntry.proto"; import "AbilityInvokeEntry.proto";
// 4.7.0 // 4.7.0
// CmdId: 4679
// ?
message ClientAbilityInitFinishNotify { message ClientAbilityInitFinishNotify {
repeated AbilityInvokeEntry invokes = 11; repeated AbilityInvokeEntry invokes = 11;
uint32 entity_id = 14; uint32 entity_id = 14;

View File

@ -1,10 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "AbilityInvokeEntry.proto"; import "AbilityInvokeEntry.proto";
// 4.7.0
//obf: PONAMDDLEBN // obf: ?
message EntityAbilityInvokeEntry { message EntityAbilityInvokeEntry {
repeated AbilityInvokeEntry invokes = 10; repeated AbilityInvokeEntry invokes = 15;
uint32 entity_id = 13; uint32 entity_id = 13; // ok
} }

View File

@ -6,16 +6,16 @@ import "ForwardType.proto";
// Obf: FOCOJPAIMIG // Obf: FOCOJPAIMIG
message EvtAvatarEnterFocusNotify { message EvtAvatarEnterFocusNotify {
Vector focus_forward = 4; Vector focus_forward = 4;
ForwardType forward_type = 12; ForwardType forward_type = 12;
//bool CCKKABKJJGP = 12;
//bool MDMOIMDCOPF = 7;
uint32 entity_id = 3; uint32 entity_id = 3;
//bool MCNECDNCLCJ = 1; bool bt1 = 1;
//bool GMLEBIHPOKD = 5; bool bt2 = 2;
//bool OGOLKMLFFHE = 2; bool bt3 = 5;
//bool OEMKCENFMIM = 10; bool bt4 = 6;
//bool DBPHFOKBNCP = 9; bool bt5 = 8;
//bool PBHFFGHHPMA = 15; bool bt6 = 9;
//bool EGBLCMOLOMC = 8; bool bt7 = 10;
//bool NACMCGNGDLN = 6; bool bt8 = 13;
bool bt9 = 14;
bool bt110 = 15;
} }

View File

@ -2,7 +2,8 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "Vector.proto"; import "Vector.proto";
import "ForwardType.proto"; import "ForwardType.proto";
// CmdId: 24809 or 28844x or 24493(lock) // 4.7.0
// CmdId: 24809,28844,24493(lock)
// Obf: DLDCLNJJBFG // Obf: DLDCLNJJBFG
message EvtAvatarExitFocusNotify { message EvtAvatarExitFocusNotify {
Vector finish_forward = 12; Vector finish_forward = 12;

View File

@ -3,7 +3,7 @@ option java_package = "emu.grasscutter.net.proto";
import "ForwardType.proto"; import "ForwardType.proto";
import "Vector.proto"; import "Vector.proto";
// 4.7.0 // 4.7.0
// CmdId: 28844 sus // CmdId: 28844
// Obf: OIFFIANHCNK // Obf: OIFFIANHCNK
message EvtBulletDeactiveNotify { message EvtBulletDeactiveNotify {
ForwardType forward_type = 14; ForwardType forward_type = 14;

View File

@ -5,12 +5,12 @@ import "HitColliderType.proto";
import "Vector.proto"; import "Vector.proto";
// 4.7.0 // 4.7.0
// CmdId: 5735 // CmdId: 5735
// Obf: ? // Obf: ??
message EvtBulletHitNotify { message EvtBulletHitNotify {
ForwardType forward_type = 1; ForwardType forward_type = 1;
HitColliderType hit_collider_type = 7; HitColliderType hit_collider_type = 7;
Vector hit_point = 5; // sus Vector hit_point = 11; // sus
Vector hit_normal = 11; // sus Vector hit_normal = 5; // sus
uint32 entity_id = 6; uint32 entity_id = 6;
int32 hit_box_index = 14; int32 hit_box_index = 14;
uint32 forward_peer = 9; uint32 forward_peer = 9;

View File

@ -2,7 +2,8 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "Vector.proto"; import "Vector.proto";
import "ForwardType.proto"; import "ForwardType.proto";
// CmdId: 24809 // 4.7.0
// CmdId: 24493x,28844x,24809?,3013x?
// Obf: BKFCEHKJCCA // Obf: BKFCEHKJCCA
message EvtBulletMoveNotify { message EvtBulletMoveNotify {
uint32 entity_id = 10; uint32 entity_id = 10;

View File

@ -1,10 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "EntityRendererChangedInfo.proto"; import "EntityRendererChangedInfo.proto";
import "ForwardType.proto"; import "ForwardType.proto";
// 4.7.0 // 4.7.0
// CmdId: 28488 // CmdId: 28488 (lock)
// CNPJNNLOPCL // CNPJNNLOPCL
message EvtEntityRenderersChangedNotify { message EvtEntityRenderersChangedNotify {
bool is_server_cache = 5; bool is_server_cache = 5;

View File

@ -1,8 +1,7 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// 4.7.0 ?
// 4.6.0 // Obf: ??
// Obf: PLMLBCAEFDB
message HomeAvatarTalkFinishInfo { message HomeAvatarTalkFinishInfo {
uint32 avatar_id = 11; uint32 avatar_id = 11;
repeated uint32 finish_talk_id_list = 13; repeated uint32 finish_talk_id_list = 13;

View File

@ -5,7 +5,7 @@ import "ProfilePicture.proto";
// Obf: PCAPDLBGOMG?PBFPMADNALI // Obf: PCAPDLBGOMG?PBFPMADNALI
message HomeGroupPlayerInfo { message HomeGroupPlayerInfo {
string nickname = 14; string nickname = 14;
uint32 player_level = 5; // sus uint32 player_level = 5;
ProfilePicture profile_picture = 1; ProfilePicture profile_picture = 1;
uint32 uid = 15; // ok uint32 uid = 15; // ok
string psn_id = 11; string psn_id = 11;

View File

@ -1,21 +1,20 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "ShapeSphere.proto"; import "ShapeSphere.proto";
import "ShapeBox.proto"; import "ShapeBox.proto";
// 4.7.0 // 4.7.0
//obf: IHJGCPGECHK // obf: IHJGCPGECHK
// CmdId: 25032 // CmdId: 25032
message MassiveEntityElementOpBatchNotify { message MassiveEntityElementOpBatchNotify {
//int32 NOMMJMBBCGJ = 3; uint32 op_idx = 12; // 1?
uint32 op_idx = 12; uint32 user_id = 7; // OK
uint32 user_id = 7; uint32 attacker_id = 2; // OK
uint32 attacker_id = 2; // TODO: or defense_id? int32 entity_type = 3; // OK
int32 entity_type = 3; float attack_element_durability = 6; // OK
float attack_element_durability = 6; int32 uk1 = 5;
//int32 DDPJBEMDEEM = 14; int32 uk2 = 11;
oneof shape { oneof shape {
ShapeSphere shape_sphere = 4; ShapeSphere shape_sphere = 4;
ShapeBox shape_box = 8; ShapeBox shape_box = 8;
} }
} }

View File

@ -8,10 +8,10 @@ import "ProfilePicture.proto";
message OnlinePlayerInfo { message OnlinePlayerInfo {
uint32 uid = 1; uint32 uid = 1;
string nickname = 2; string nickname = 2;
uint32 cur_player_num_in_world = 3; uint32 cur_player_num_in_world = 6;
uint32 avatar_id = 4; uint32 avatar_id = 4;
MpSettingType mp_setting_type = 5; MpSettingType mp_setting_type = 5;
uint32 player_level = 6; uint32 player_level = 3;
uint32 world_level = 7; uint32 world_level = 7;
string online_id = 8; string online_id = 8;
uint32 name_card_id = 9; uint32 name_card_id = 9;

View File

@ -1,26 +1,11 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "PlatformInfo.proto"; import "PlatformInfo.proto";
// CmdId: 8048 // 4.7.0
// Obf: CIGDJCNIJNN // CmdId: 28607
// Obf: PNNLCKEICNA
message PlatformChangeRouteNotify { message PlatformChangeRouteNotify {
PlatformInfo platform = 5; PlatformInfo platform = 12;
uint32 entity_id = 13; uint32 entity_id = 7;
uint32 scene_time = 8; uint32 scene_time = 8;
} }

View File

@ -1,26 +1,11 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "PlatformInfo.proto"; import "PlatformInfo.proto";
// CmdId: 7427 // 4.7.0
// Obf: PPPKGDJOODM // CmdId: 25562?
// Obf: PDPFPMMKOMC
message PlatformStartRouteNotify { message PlatformStartRouteNotify {
uint32 entity_id = 14; uint32 entity_id = 3;
uint32 scene_time = 4; uint32 scene_time = 4;
PlatformInfo platform = 10; PlatformInfo platform = 10;
} }

View File

@ -1,26 +1,11 @@
// https://github.com/SlushinPS/beach-simulator
// Copyright (C) 2023 Slushy Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "PlatformInfo.proto"; import "PlatformInfo.proto";
// CmdId: 27462 // 4.7.0
// Obf: CIMJKKNLBCO // CmdId: 25803
// Obf: KLLCCCBJCDL?
message PlatformStopRouteNotify { message PlatformStopRouteNotify {
uint32 scene_time = 1; uint32 scene_time = 2;
PlatformInfo platform = 8; PlatformInfo platform = 5;
uint32 entity_id = 5; uint32 entity_id = 12;
} }

View File

@ -1,12 +1,10 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "SceneEntityInfo.proto"; import "SceneEntityInfo.proto";
import "VisionType.proto"; import "VisionType.proto";
// 4.7.0 // 4.7.0
// cmdid: 21463? or 24635a or 27183u // cmdid: 24635?
// EIIOKNPBJGC or // EIIOKNPBJGC
message SceneEntityAppearNotify { message SceneEntityAppearNotify {
repeated SceneEntityInfo entity_list = 13; repeated SceneEntityInfo entity_list = 13;
VisionType appear_type = 10; VisionType appear_type = 10;

View File

@ -1,9 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "VisionType.proto"; import "VisionType.proto";
// 4.7.0 // 4.7.0
// CmdId: 7872
// ?
message SceneEntityDisappearNotify { message SceneEntityDisappearNotify {
repeated uint32 entity_list = 6; repeated uint32 entity_list = 6;
VisionType disappear_type = 5; VisionType disappear_type = 5;

View File

@ -2,8 +2,8 @@ syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "MotionInfo.proto"; import "MotionInfo.proto";
// 4.7.0 // 4.7.0
// CmdId: 28352, 6446X // CmdId:28352?,6446
// Obf: CNFNMBHLHEK // Obf: ?
message SceneEntityMoveNotify { message SceneEntityMoveNotify {
MotionInfo motion_info = 1; MotionInfo motion_info = 1;
uint32 entity_id = 15; // OK uint32 entity_id = 15; // OK

View File

@ -3,10 +3,10 @@ option java_package = "emu.grasscutter.net.proto";
import "SceneEntityInfo.proto"; import "SceneEntityInfo.proto";
import "VisionType.proto"; import "VisionType.proto";
// 4.7.0 // 4.7.0
// cmdid: 27183 or 21463 // cmdid: 21463?
// AMPAJBECEIJ or EIIOKNPBJGC // ?
message SceneEntityUpdateNotify { message SceneEntityUpdateNotify {
repeated SceneEntityInfo entity_list = 11; repeated SceneEntityInfo entity_list = 8;
VisionType appear_type = 9; VisionType appear_type = 11;
uint32 param = 13; uint32 param = 4;
} }

View File

@ -1,6 +1,7 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// CmdId: 23746
// 4.7.0
message SceneForceLockNotify { message SceneForceLockNotify {
repeated uint32 force_id_list = 6; repeated uint32 force_id_list = 8;
} }

View File

@ -1,7 +1,7 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
// 4.7.0 // 4.7.0
// CmdId: 8454?,27604
message SceneForceUnlockNotify { message SceneForceUnlockNotify {
bool is_add = 3; bool is_add = 3;
repeated uint32 force_id_list = 6; repeated uint32 force_id_list = 6;

View File

@ -1,13 +1,13 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "Vector.proto"; import "Vector.proto";
// 4.7.0 // 4.7.0
//obf: IEIAEKDEKPH // obf: IEIAEKDEKPH
message ShapeBox { message ShapeBox {
Vector center = 1; Vector center = 1;
Vector axis0 = 2; Vector extents = 5;
Vector axis1 = 3; // sus
Vector axis4 = 4; Vector axis0 = 2;
Vector extents = 5; Vector axis1 = 3;
Vector axis4 = 4;
} }

View File

@ -1,9 +1,8 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "Vector.proto"; import "Vector.proto";
// 4.7.0
//obf: KKGNEFILAFP // obf: ?
message ShapeSphere { message ShapeSphere {
Vector center = 1; Vector center = 1;
float radius = 2; float radius = 2;

View File

@ -1,9 +1,9 @@
syntax = "proto3"; syntax = "proto3";
option java_package = "emu.grasscutter.net.proto"; option java_package = "emu.grasscutter.net.proto";
import "UnionCmd.proto"; import "UnionCmd.proto";
// 4.7.0 // 4.7.0
// CmdId: 6564
// ?
message UnionCmdNotify { message UnionCmdNotify {
repeated UnionCmd cmd_list = 1; repeated UnionCmd cmd_list = 1;
} }