FFXIVAPP/sharlayan

PlayerEntity memory incorrect?

Closed this issue · 5 comments

Sorry for all the bug reports/questions..

I've noticed I can't get a read on the PlayerEntity model. I'm trying to access the "Name" variable but also the other variables in the model seem to be incorrect also.

var name = Reader.GetPlayerInfo().PlayerEntity.Name;
//returns random string data.

Are the memory offsets incorrect or is this model depreciated now? I'm trying to use it to compare against the ConcurrentDictionary of ActorEntity to find the active player on the game.

Debugging through shows correct on my end. Have you setup log4view to view logs from the app in real time?

Yeah for some reason I'm struggling to get the same results (DX11)

var PlayerInfo = Reader.GetActors()?.PCEntities?.FirstOrDefault().Value;
                
                var MyselfInfo = Reader.GetPlayerInfo()?.PlayerEntity;
                var PlayerInfo = Reader.GetActors()?.PCEntities?.FirstOrDefault().Value;

                Debug.WriteLine("Name: " + MyselfInfo.Name + "//" + PlayerInfo.Name);
                Debug.WriteLine("Dex: " + MyselfInfo.BaseDexterity);

It outputs:

capture

So PlayerInfo is correct reading from the Actors, its PlayerEntity which seems to be weird.

I'll have a look at the offset; also have you joined our discord channel? :)

Just joined the Discord ^^

Fixed :)