a2x / cs2-dumper

Counter-Strike: 2 Offset Dumper
MIT License
817 stars 94 forks source link

Incorrect values for m_iIDEntIndex on linux? #177

Open AbsurdumDaemonium opened 2 months ago

AbsurdumDaemonium commented 2 months ago

Hey for some reason when i read m_iIDEntIndex i always get very huge values like 237023232 i add it to the local player and then read, using process_vm_readv from the nix crate i dont think it is a problem with me as i am perfectly able to get m_ihealth using that and some people on UC told me that its likely the dumper thats giving me wrong values

this is the code i currently have https://paste.gg/p/anonymous/23b3ad412320449da695df72fa6e30b7/files/392bd74e84644e58972cdbb172619bfd/raw

AbsurdumDaemonium commented 1 month ago

womp womp

agree

a2x commented 1 month ago

Sorry for the delay mate, I'll look at this as soon as I can.

a2x commented 1 month ago

@AbsurdumDaemonium

I'm not exactly sure if I understand you correctly. The value will always be 0xFFFFFFFF (invalid handle) when your crosshair isn't over another player.

It seems to work as intended for me. Screencast from 2024-07-22 23-27-26.webm

dxshie commented 2 weeks ago

@AbsurdumDaemonium

I'm not exactly sure if I understand you correctly. The value will always be 0xFFFFFFFF (invalid handle) when your crosshair isn't over another player.

It seems to work as intended for me. Screencast from 2024-07-22 23-27-26.webm

works for me also just fine