From b86c08b694a070cce5402146c00adead3e0a422d Mon Sep 17 00:00:00 2001 From: meli <57847713+ff-meli@users.noreply.github.com> Date: Thu, 20 Feb 2020 10:30:58 -0800 Subject: [PATCH 1/2] ActorTable update for 5.2 --- Dalamud/Game/ClientState/ClientStateAddressResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dalamud/Game/ClientState/ClientStateAddressResolver.cs b/Dalamud/Game/ClientState/ClientStateAddressResolver.cs index 08f858d0c..75302b8ad 100644 --- a/Dalamud/Game/ClientState/ClientStateAddressResolver.cs +++ b/Dalamud/Game/ClientState/ClientStateAddressResolver.cs @@ -13,7 +13,7 @@ namespace Dalamud.Game.ClientState public IntPtr JobGaugeData { get; set; } protected override void Setup64Bit(SigScanner sig) { - ActorTable = sig.Module.BaseAddress + 0x1BFFD90; + ActorTable = sig.Module.BaseAddress + 0x1C62218; LocalContentId = sig.Module.BaseAddress + 0x1C2E000; JobGaugeData = sig.Module.BaseAddress + 0x1BFB110; } From b09ae60141d245f6298e8a458de2591d1100ec7c Mon Sep 17 00:00:00 2001 From: meli <57847713+ff-meli@users.noreply.github.com> Date: Thu, 20 Feb 2020 11:34:01 -0800 Subject: [PATCH 2/2] Update known offset changes for Actor struct --- Dalamud/Game/ClientState/Structs/Actor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dalamud/Game/ClientState/Structs/Actor.cs b/Dalamud/Game/ClientState/Structs/Actor.cs index 4dff763c7..f06f19c3d 100644 --- a/Dalamud/Game/ClientState/Structs/Actor.cs +++ b/Dalamud/Game/ClientState/Structs/Actor.cs @@ -20,13 +20,13 @@ namespace Dalamud.Game.ClientState.Structs [FieldOffset(140)] public ObjectKind ObjectKind; [FieldOffset(141)] public byte SubKind; [FieldOffset(160)] public Position3 Position; - [FieldOffset(6308)] public byte CurrentWorld; - [FieldOffset(6310)] public byte HomeWorld; + [FieldOffset(6276)] public byte CurrentWorld; + [FieldOffset(6278)] public byte HomeWorld; [FieldOffset(6328)] public int CurrentHp; [FieldOffset(6332)] public int MaxHp; [FieldOffset(6336)] public int CurrentMp; [FieldOffset(6340)] public int MaxMp; - [FieldOffset(6388)] public byte ClassJob; - [FieldOffset(6390)] public byte Level; + [FieldOffset(6358)] public byte ClassJob; + [FieldOffset(6360)] public byte Level; } }