Skip to content

Commit

Permalink
fix init env packet
Browse files Browse the repository at this point in the history
fix init env packet
  • Loading branch information
shalzuth committed Aug 3, 2022
1 parent aff4350 commit a1839b4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions LostArkLogger/Packets/Base/PKTInitEnv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public PKTInitEnv(BitReader reader)
}
public UInt64 PlayerId;
public UInt64 s64_0;
public List<Byte> blist_0;
public subPKTInitEnv5 subPKTInitEnv5;
public List<UInt16> u16list_0;
public subPKTInitEnv8 subPKTInitEnv8;
public UInt64 s64_1;
public UInt32 u32_0;
public UInt32 u32_1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
using System.Collections.Generic;
namespace LostArkLogger
{
public partial class subPKTInitEnv5
public partial class subPKTInitEnv8
{
public subPKTInitEnv5(BitReader reader)
public subPKTInitEnv8(BitReader reader)
{
if (Properties.Settings.Default.Region == Region.Steam) SteamDecode(reader);
if (Properties.Settings.Default.Region == Region.Korea) KoreaDecode(reader);
}
public List<List<Byte>> blist_0 = new List<List<Byte>>();
public List<List<Byte>> blist_1 = new List<List<Byte>>();
public List<List<Byte>> blist_2 = new List<List<Byte>>();
public List<List<UInt16>> u16list_0 = new List<List<UInt16>>();
public List<List<UInt16>> u16list_1 = new List<List<UInt16>>();
public List<List<UInt16>> u16list_2 = new List<List<UInt16>>();
public UInt16 num;
}
}
4 changes: 2 additions & 2 deletions LostArkLogger/Packets/Korea/PKTInitEnv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public void KoreaDecode(BitReader reader)
s64_1 = reader.ReadUInt64();
b_0 = reader.ReadByte();
u32_1 = reader.ReadUInt32();
subPKTInitEnv5 = reader.Read<subPKTInitEnv5>();
subPKTInitEnv8 = reader.Read<subPKTInitEnv8>();
PlayerId = reader.ReadUInt64();
blist_0 = reader.ReadList<Byte>();
u16list_0 = reader.ReadList<UInt16>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
using System.Collections.Generic;
namespace LostArkLogger
{
public partial class subPKTInitEnv5
public partial class subPKTInitEnv8
{
public void KoreaDecode(BitReader reader)
{
num = reader.ReadUInt16();
for(var i = 0; i < num; i++)
{
blist_2.Add(reader.ReadList<Byte>());
blist_1.Add(reader.ReadList<Byte>());
blist_0.Add(reader.ReadList<Byte>());
u16list_2.Add(reader.ReadList<UInt16>());
u16list_1.Add(reader.ReadList<UInt16>());
u16list_0.Add(reader.ReadList<UInt16>());
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions LostArkLogger/Packets/Steam/PKTInitEnv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ public partial class PKTInitEnv
{
public void SteamDecode(BitReader reader)
{
subPKTInitEnv5 = reader.Read<subPKTInitEnv5>();
subPKTInitEnv8 = reader.Read<subPKTInitEnv8>();
u32_0 = reader.ReadUInt32();
s64_0 = reader.ReadSimpleInt();
s64_1 = reader.ReadUInt64();
blist_0 = reader.ReadList<Byte>();
u16list_0 = reader.ReadList<UInt16>();
b_0 = reader.ReadByte();
PlayerId = reader.ReadUInt64();
u32_1 = reader.ReadUInt32();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
using System.Collections.Generic;
namespace LostArkLogger
{
public partial class subPKTInitEnv5
public partial class subPKTInitEnv8
{
public void SteamDecode(BitReader reader)
{
num = reader.ReadUInt16();
for(var i = 0; i < num; i++)
{
blist_1.Add(reader.ReadList<Byte>());
blist_2.Add(reader.ReadList<Byte>());
blist_0.Add(reader.ReadList<Byte>());
u16list_1.Add(reader.ReadList<UInt16>());
u16list_2.Add(reader.ReadList<UInt16>());
u16list_0.Add(reader.ReadList<UInt16>());
}
}
}
Expand Down

0 comments on commit a1839b4

Please sign in to comment.