Skip to content

Commit

Permalink
feat: 适配国服6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-kirisame committed May 9, 2023
1 parent 1830ec2 commit 6127a88
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
8 changes: 4 additions & 4 deletions HousingCheck/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ public class Config
/// <summary>
/// 国服 Opcode
/// </summary>
public const int OPCODE_WARD_INFO = 198;
public const int OPCODE_LAND_INFO = 621;
public const int OPCODE_SALE_INFO = 517;
public const int OPCODE_CLIENT_TRIGGER = 177;
public const int OPCODE_WARD_INFO = 332;
public const int OPCODE_LAND_INFO = 322;
public const int OPCODE_SALE_INFO = 201;
public const int OPCODE_CLIENT_TRIGGER = 227;

/// <summary>
/// 上报API版本
Expand Down
3 changes: 3 additions & 0 deletions HousingCheck/HousingCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ void NetworkSent(string connection, long epoch, byte[] message)
if (!config.EnableOpcodeGuess) return;

var ipc = parser.ParseIPCHeader(message);
if (ipc == null) return;
var guessOpcode = ipc.Value.type;
if (message.Length == Marshal.SizeOf<FFXIVIpcClientTrigger>())
{
Expand Down Expand Up @@ -376,6 +377,8 @@ void NetworkReceived(string connection, long epoch, byte[] message)
if (!config.EnableOpcodeGuess) return;

var ipc = parser.ParseIPCHeader(message);
if (ipc == null) return;

var guessOpcode = ipc.Value.type;
if (message.Length == Marshal.SizeOf<FFXIVIpcHousingWardInfo>())
{
Expand Down
4 changes: 2 additions & 2 deletions HousingCheck/HousingCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<RootNamespace>HousingCheck</RootNamespace>
<AssemblyName>HousingCheck</AssemblyName>
<TargetFramework>net472</TargetFramework>
<Version>1.7.2</Version>
<Copyright>Copyright ©2021 Bluefissure, Hyperzlib. Copyright ©2021-2022 Lotlab</Copyright>
<Version>1.7.3</Version>
<Copyright>Copyright ©2021 Bluefissure, Hyperzlib. Copyright ©2021-2023 Lotlab</Copyright>
<ILMergeDebugInfo>false</ILMergeDebugInfo>
<Platforms>x64;anycpu</Platforms>
</PropertyGroup>
Expand Down
11 changes: 8 additions & 3 deletions HousingCheck/LandSaleInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class LandSaleInfo : IPCPacketBase<FFXIVIpcLandSaleInfo>
{
public override string ToString()
{
return $"LandSaleInfo: {Value.purchase_type}, {Value.region_type}, {Value.status}. {Value.persons} participated, {Value.winner} win, ends at {DateTimeOffset.FromUnixTimeSeconds(Value.endTime).LocalDateTime}";
return $"LandSaleInfo: {Value.purchase_type}, {Value.region_type}, {Value.status} ({Value.unknown0},{Value.unknown1},{Value.unknown3}). {Value.persons} participated, {Value.winner} win, ends at {DateTimeOffset.FromUnixTimeSeconds(Value.endTime).LocalDateTime}";
}
}

Expand All @@ -27,14 +27,19 @@ public struct FFXIVIpcLandSaleInfo
public HousePurchaseType purchase_type;
public HouseRegionType region_type;
public LandStatus status;
public byte unknown0;
public byte unknown1;

public byte padding0;
public byte padding1;
public byte padding2;

public UInt32 endTime;
public UInt32 padding2;
public UInt32 unknown3;
public UInt32 persons;
public UInt32 winner;

[MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public byte[] unknown;
}

Expand Down

0 comments on commit 6127a88

Please sign in to comment.