mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Fix 6.1 offsets.
This commit is contained in:
parent
18384a9386
commit
8865ff5e79
4 changed files with 131 additions and 132 deletions
|
|
@ -4,14 +4,14 @@ using Dalamud.Game.ClientState.Objects.Types;
|
||||||
|
|
||||||
// Read the customization data regarding weapons and displayable equipment from an actor struct.
|
// Read the customization data regarding weapons and displayable equipment from an actor struct.
|
||||||
// Stores the data in a 56 bytes, i.e. 7 longs for easier comparison.
|
// Stores the data in a 56 bytes, i.e. 7 longs for easier comparison.
|
||||||
namespace Penumbra.GameData.Structs
|
namespace Penumbra.GameData.Structs;
|
||||||
{
|
|
||||||
[StructLayout( LayoutKind.Sequential, Pack = 1 )]
|
[StructLayout( LayoutKind.Sequential, Pack = 1 )]
|
||||||
public class CharacterEquipment
|
public class CharacterEquipment
|
||||||
{
|
{
|
||||||
public const int MainWeaponOffset = 0x0C78;
|
public const int MainWeaponOffset = 0x6D0;
|
||||||
public const int OffWeaponOffset = 0x0CE0;
|
public const int OffWeaponOffset = 0x738;
|
||||||
public const int EquipmentOffset = 0xDB0;
|
public const int EquipmentOffset = 0x808;
|
||||||
public const int EquipmentSlots = 10;
|
public const int EquipmentSlots = 10;
|
||||||
public const int WeaponSlots = 2;
|
public const int WeaponSlots = 2;
|
||||||
|
|
||||||
|
|
@ -146,4 +146,3 @@ namespace Penumbra.GameData.Structs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
@ -26,7 +26,7 @@ internal readonly struct WatchedPlayer
|
||||||
internal class PlayerWatchBase : IDisposable
|
internal class PlayerWatchBase : IDisposable
|
||||||
{
|
{
|
||||||
public const int GPosePlayerIdx = 201;
|
public const int GPosePlayerIdx = 201;
|
||||||
public const int GPoseTableEnd = GPosePlayerIdx + 48;
|
public const int GPoseTableEnd = GPosePlayerIdx + 40;
|
||||||
private const int ObjectsPerFrame = 32;
|
private const int ObjectsPerFrame = 32;
|
||||||
|
|
||||||
private readonly Framework _framework;
|
private readonly Framework _framework;
|
||||||
|
|
@ -301,7 +301,7 @@ internal class PlayerWatchBase : IDisposable
|
||||||
|
|
||||||
var id = GetId( character );
|
var id = GetId( character );
|
||||||
SeenActors.Add( id );
|
SeenActors.Add( id );
|
||||||
PluginLog.Verbose( "Comparing Gear for {PlayerName} ({Id}) at {Address}...", character.Name, id, character.Address );
|
PluginLog.Verbose( "Comparing Gear for {PlayerName:l} ({Id}) at 0x{Address:X}...", character.Name, id, character.Address.ToInt64() );
|
||||||
if( !watch.FoundActors.TryGetValue( id, out var equip ) )
|
if( !watch.FoundActors.TryGetValue( id, out var equip ) )
|
||||||
{
|
{
|
||||||
equip = new CharacterEquipment( character );
|
equip = new CharacterEquipment( character );
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"RepoUrl": "https://github.com/xivdev/Penumbra",
|
"RepoUrl": "https://github.com/xivdev/Penumbra",
|
||||||
"ApplicableVersion": "any",
|
"ApplicableVersion": "any",
|
||||||
"Tags": [ "modding" ],
|
"Tags": [ "modding" ],
|
||||||
"DalamudApiLevel": 5,
|
"DalamudApiLevel": 6,
|
||||||
"LoadPriority": 69420,
|
"LoadPriority": 69420,
|
||||||
"IconUrl": "https://raw.githubusercontent.com/xivdev/Penumbra/master/images/icon.png"
|
"IconUrl": "https://raw.githubusercontent.com/xivdev/Penumbra/master/images/icon.png"
|
||||||
}
|
}
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
"TestingAssemblyVersion": "1.0.0.0",
|
"TestingAssemblyVersion": "1.0.0.0",
|
||||||
"RepoUrl": "https://github.com/xivdev/Penumbra",
|
"RepoUrl": "https://github.com/xivdev/Penumbra",
|
||||||
"ApplicableVersion": "any",
|
"ApplicableVersion": "any",
|
||||||
"DalamudApiLevel": 5,
|
"DalamudApiLevel": 6,
|
||||||
"IsHide": "False",
|
"IsHide": "False",
|
||||||
"IsTestingExclusive": "False",
|
"IsTestingExclusive": "False",
|
||||||
"DownloadCount": 0,
|
"DownloadCount": 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue