[DiscordArchive] Slowly trying to play around with learning to find at least certain hard-coded constants in the clie
[DiscordArchive] Slowly trying to play around with learning to find at least certain hard-coded constants in the clie
Archived author: Kris • Posted: 2024-06-07T09:20:31.497000+00:00
Original source
Slowly trying to play around with learning to find at least certain hard-coded constants in the client. Like say for example I'm looking for the range at which you get nameplates for entities, I imagine I'm looking for a cmp instruction followed by a jle instruction, right, or does not knowing the data type complicate that a bit? Playing around with IDA/Cheat Engine and coming up empty. Any tips as far as methodology?
Archived author: Kris • Posted: 2024-06-07T09:21:51.362000+00:00
Original source
ChatGPT says that cmp is used for integers, and I figured range between entities is passed around as a float, so maybe I'm just looking for the wrong things?
Archived author: robinsch • Posted: 2024-06-07T09:30:50.393000+00:00
Original source
If you know the number and it's not a very common number you could use that approach, for float x86 uses FCOMP
Archived author: Kris • Posted: 2024-06-07T09:32:56.123000+00:00
Original source
I'm sorta just guessing at the number, looks like they disappear around 37y, but honestly wasn't entirely sure that the client uses the same units for its internal "ranges" as spells, and I haven't had any luck with changing values of 37 I've found in cheat engine, I'll look for some fcomps and see what I come up with, since I find it unlikely that distances are integers.
Does the value that the distance is being compared to need to be converted to a float too?
Archived author: Kris • Posted: 2024-06-07T09:33:47.552000+00:00
Original source
Like say it's 37, would that 37 need to be a float in order to be used in an fcomp instruction?
Archived author: robinsch • Posted: 2024-06-07T09:35:11.621000+00:00
Original source
depends on the instruction
Archived author: robinsch • Posted: 2024-06-07T09:35:48.644000+00:00
Original source
usually they compare to a pointer or some value on FPU stack
Archived author: Kris • Posted: 2024-06-07T09:37:30.388000+00:00
Original source
Thanks, think I'll stay the course with the brute-force checking things and expand my searches to fcomp instructions too.
Archived author: robinsch • Posted: 2024-06-07T09:38:07.583000+00:00
Original source
If you need some hints then I can give you some
Archived author: Kris • Posted: 2024-06-07T09:49:09.286000+00:00
Original source
I might take you up on that, for now though I'm still learning a good bit every hour I put into finding this stupid thing, so it feels productive. <:feelsgoodman:264250798249213952>