Skip to content

Commit

Permalink
Some initial setup work for sign summoning.
Browse files Browse the repository at this point in the history
  • Loading branch information
TLeonardUK committed Aug 13, 2021
1 parent 1f90134 commit d8293ba
Show file tree
Hide file tree
Showing 25 changed files with 9,275 additions and 5,626 deletions.
36 changes: 18 additions & 18 deletions Protobuf/FpdLogMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -60,53 +60,45 @@ message ActGestureLog {
}
}

// ID: ???
message LevelUpLog {
}

// ID: ???
// ID: 2020
message UseMagicLog {
message Use_magic_info_list {
}
}

// ID: ???
message BrokenEquipmentLog {
}

// ID: ???
// ID: 3001
message PurchaseItemLog {
message Purchase_item_info_list {
}
}

// ID: ???
// ID: 3003
message DropItemLog {
message Throw_away_item_list {
}
}

// ID: ???
// ID: 3004
message LeaveItemLog {
message Set_item_info_list {
}
}

// ID: ???
// ID: 3005
message SaleItemLog {
message Sale_item_info_list {
}
}

// ID: ???
message AccessWarehouseLog {
message Access_warehouse_info_list {
// ID: 3010
message StrengthenWeaponLog {
message Strengthen_weapon_info_list {
}
}

// ID: ???
message StrengthenWeaponLog {
message Strengthen_weapon_info_list {
message AccessWarehouseLog {
message Access_warehouse_info_list {
}
}

Expand All @@ -116,6 +108,14 @@ message RepairEquipmentLog {
}
}

// ID: ???
message LevelUpLog {
}

// ID: ???
message BrokenEquipmentLog {
}

// ID: ???
message EquipMagicLog {
}
Expand Down
262 changes: 140 additions & 122 deletions Protobuf/Frpg2PlayerData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,46 @@ message DateTime {
}

message AllStatus {
optional PlayerLocation playerlocation = 1;
optional LogInfo loginfo = 2;
optional PlayerStatus playerstatus = 3;
optional PlayData playdata = 4;
optional StatsInfo statsinfo = 5;
optional PlayerLocation player_location = 1;
optional LogInfo log_info = 2;
optional PlayerStatus player_status = 3;
optional PlayData play_data = 4;
optional StatsInfo stats_info = 5;
optional Equipment equipment = 6;
optional string steamid = 7;
optional string steam_id = 7;
}

message unknown_struct_1 {
optional int64 unknown_1 = 1;
optional string unknown_2 = 2; // When this is filled in it looks like a timestamp. eg. 202108092109340005938762
optional int64 unknown_3 = 3;
}

// Everything in this needs to be marked as optional as it seems to be a delta, only fields that
// have changed since the last call are set. The first call at the start of the game seems to keep everything.
message UpdateAllDelta {
optional PlayerLocation player_location = 1;
optional LogInfo log_info = 2;
optional PlayerStatus player_status = 3;
optional PlayData play_data = 4;
optional StatsInfo stats_info = 5;
optional Equipment equipment = 6;
optional unknown_struct_1 unknown_1 = 7;
}

message PlayerStatus {
optional int32 soullevel = 4;
repeated int32 recentonlinearea = 17;
optional int32 soul_level = 4;
repeated int32 recent_online_areas = 17;
repeated uint32 unknown2 = 18; //0 or 1
optional int32 hp = 23;
optional int32 maxhp = 24;
optional int32 basemaxhp = 25;
optional int32 max_hp = 24;
optional int32 base_max_hp = 25;
optional int32 fp = 26;
optional int32 maxfp = 27;
optional int32 basemaxfp = 28;
optional int32 max_fp = 27;
optional int32 base_max_fp = 28;
optional int32 stamina = 29;
optional int32 maxstamina = 30;
optional int32 basemaxstamina = 31;
optional int32 max_stamina = 30;
optional int32 base_max_stamina = 31;
optional string name = 38;
optional int32 vigor = 40;
optional int32 attunement = 41;
Expand All @@ -56,136 +74,136 @@ message PlayerStatus {
optional int32 intelligence = 46;
optional int32 faith = 47;
optional int32 luck = 48;
optional DefenseInfo defenseinfo = 58;
optional CutRateInfo cutrateinfo = 59;
optional ResistanceInfo armorresistanceinfo = 60;
optional ResistanceInfo baseresistanceinfo = 61;
optional DefenseInfo defense_info = 58;
optional CutRateInfo cutrate_info = 59;
optional ResistanceInfo armor_resistance_info = 60;
optional ResistanceInfo base_resistance_info = 61;
}

message PlayData {
required uint32 unknown1 = 1; //144680
required uint32 unknown2 = 4; //0
required uint32 unknown3 = 5; //0
required uint32 unknown4 = 6; //5
required uint32 unknown5 = 7; //11
repeated BonfireInfo bonfireinfo = 8;
optional uint32 unknown_1 = 1; //144680
optional uint32 unknown_2 = 4; //0
optional uint32 unknown_3 = 5; //0
optional uint32 unknown_4 = 6; //5
optional uint32 unknown_5 = 7; //11
optional BonfireInfo bonfire_info = 8;
}

message LogInfo {
required uint32 unknown1 = 1; //144680
required uint32 unknown2 = 6; //24
required uint32 unknown3 = 7; //404
required uint32 unknown4 = 8; //0
required uint32 unknown5 = 9; //3
required uint32 unknown6 = 10; //78
optional uint32 unknown_1 = 1; //144680
optional uint32 unknown_2 = 6; //24
optional uint32 unknown_3 = 7; //404
optional uint32 unknown_4 = 8; //0
optional uint32 unknown_5 = 9; //3
optional uint32 unknown_6 = 10; //78
}

message StatsInfo {
required uint32 unknown1 = 1;
required uint32 unknown2 = 2;
required uint32 unknown3 = 3;
required uint32 unknown4 = 4;
required uint32 unknown5 = 5;
required uint32 unknown6 = 6;
required DateTime datetime1 = 7;
required DateTime datetime2 = 8;
optional uint32 unknown_1 = 1;
optional uint32 unknown_2 = 2;
optional uint32 unknown_3 = 3;
optional uint32 unknown_4 = 4;
optional uint32 unknown_5 = 5;
optional uint32 unknown6 = 6;
optional DateTime date_time_1 = 7;
optional DateTime date_time_2 = 8;
}

message Equipment {
required int32 leftweapon1 = 1;
required int32 leftweapon2 = 2;
required int32 leftweapon3 = 3;
required int32 rightweapon1 = 4;
required int32 rightweapon2 = 5;
required int32 rightweapon3 = 6;
required int32 head = 7;
required int32 chest = 8;
required int32 hands = 9;
required int32 legs = 10;
required int32 ring1 = 11;
required int32 ring2 = 12;
required int32 ring3 = 13;
required int32 ring4 = 14;
required int32 quickitem1 = 15;
required int32 quickitem2 = 16;
required int32 quickitem3 = 17;
required int32 quickitem4 = 18;
required int32 quickitem5 = 19;
required int32 quickitem6 = 20;
required int32 quickitem7 = 21;
required int32 quickitem8 = 22;
required int32 quickitem9 = 23;
required int32 quickitem10 = 24;
required int32 toolbelt1 = 25;
required int32 toolbelt2 = 26;
required int32 toolbelt3 = 27;
required int32 toolbelt4 = 28;
required int32 toolbelt5 = 29;
required int32 arrow1 = 30;
required int32 arrow2 = 31;
required int32 bolt1 = 32;
required int32 bolt2 = 33;
required int32 spell1 = 34;
required int32 spell2 = 35;
required int32 spell3 = 36;
required int32 spell4 = 37;
required int32 spell5 = 38;
required int32 spell6 = 39;
required int32 spell7 = 40;
required int32 spell8 = 41;
required int32 spell9 = 42;
required int32 spell10 = 43;
required int32 spell11 = 44;
required int32 spell12 = 45;
required int32 spell13 = 46;
required int32 spell14 = 47;
required int32 unknown0 = 48;
required int32 unknown1 = 49;
required int32 unknown2 = 50;
required int32 unknown3 = 51;
required int32 unknown4 = 52;
required int32 unknown5 = 53;
required int32 unknown6 = 54;
required int32 unknown7 = 55;
required int32 unknown8 = 56;
required int32 unknown9 = 57;
required int32 unknown10 = 58;
required int32 unknown11 = 59;
required int32 unknown12 = 60;
optional int32 left_weapon_1 = 1;
optional int32 left_weapon_2 = 2;
optional int32 left_weapon_3 = 3;
optional int32 right_weapon_1 = 4;
optional int32 right_weapon_2 = 5;
optional int32 right_weapon_3 = 6;
optional int32 head = 7;
optional int32 chest = 8;
optional int32 hands = 9;
optional int32 legs = 10;
optional int32 ring_1 = 11;
optional int32 ring_2 = 12;
optional int32 ring_3 = 13;
optional int32 ring_4 = 14;
optional int32 quick_item_1 = 15;
optional int32 quick_item_2 = 16;
optional int32 quick_item_3 = 17;
optional int32 quick_item_4 = 18;
optional int32 quick_item_5 = 19;
optional int32 quick_item_6 = 20;
optional int32 quick_item_7 = 21;
optional int32 quick_item_8 = 22;
optional int32 quick_item_9 = 23;
optional int32 quick_item_10 = 24;
optional int32 tool_belt_1 = 25;
optional int32 tool_belt_2 = 26;
optional int32 tool_belt_3 = 27;
optional int32 tool_belt_4 = 28;
optional int32 tool_belt_5 = 29;
optional int32 arrow_1 = 30;
optional int32 arrow_2 = 31;
optional int32 bolt_1 = 32;
optional int32 bolt_2 = 33;
optional int32 spell_1 = 34;
optional int32 spell_2 = 35;
optional int32 spell_3 = 36;
optional int32 spell_4 = 37;
optional int32 spell_5 = 38;
optional int32 spell_6 = 39;
optional int32 spell_7 = 40;
optional int32 spell_8 = 41;
optional int32 spell_9 = 42;
optional int32 spell_10 = 43;
optional int32 spell_11 = 44;
optional int32 spell_12 = 45;
optional int32 spell_13 = 46;
optional int32 spell_14 = 47;
optional int32 unknown_0 = 48;
optional int32 unknown_1 = 49;
optional int32 unknown_2 = 50;
optional int32 unknown_3 = 51;
optional int32 unknown_4 = 52;
optional int32 unknown_5 = 53;
optional int32 unknown_6 = 54;
optional int32 unknown_7 = 55;
optional int32 unknown_8 = 56;
optional int32 unknown_9 = 57;
optional int32 unknown_10 = 58;
optional int32 unknown_11 = 59;
optional int32 unknown_12 = 60;
}

message PlayerLocation {
required uint32 onlineareaidlower = 1;
required uint32 onlineareaidupper = 2;
optional uint32 online_area_id_lower = 1;
optional uint32 online_area_id_upper = 2;
}

message DefenseInfo {
required uint32 physical = 1;
required uint32 strike = 2;
required uint32 slash = 3;
required uint32 thrust = 4;
required uint32 magic = 5;
required uint32 fire = 6;
required uint32 lightning = 7;
required uint32 dark = 8;
optional uint32 physical = 1;
optional uint32 strike = 2;
optional uint32 slash = 3;
optional uint32 thrust = 4;
optional uint32 magic = 5;
optional uint32 fire = 6;
optional uint32 lightning = 7;
optional uint32 dark = 8;
}

message CutRateInfo {
required float physical = 1;
required float strike = 2;
required float slash = 3;
required float thrust = 4;
required float magic = 5;
required float fire = 6;
required float lightning = 7;
required float dark = 8;
optional float physical = 1;
optional float strike = 2;
optional float slash = 3;
optional float thrust = 4;
optional float magic = 5;
optional float fire = 6;
optional float lightning = 7;
optional float dark = 8;
}

message ResistanceInfo {
required uint32 bleed = 1;
required uint32 poison = 2;
required uint32 frost = 3;
required uint32 curse = 4;
optional uint32 bleed = 1;
optional uint32 poison = 2;
optional uint32 frost = 3;
optional uint32 curse = 4;
}

message Vector {
Expand All @@ -195,6 +213,6 @@ message Vector {
}

message BonfireInfo {
required uint32 bonfireid = 1;
required uint32 hasbeenlit = 2;
required uint32 bonfire_id = 1;
required uint32 has_been_lit = 2;
}
Loading

0 comments on commit d8293ba

Please sign in to comment.