Forums WoW Modding Support Archives WoWModding Support Archives [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

[DiscordArchive] Slowly trying to play around with learning to find at least certain hard-coded constants in the clie

rektbyfaith
Administrator
0
06-07-2024, 09:20 AM
#1
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?
rektbyfaith
06-07-2024, 09:20 AM #1

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?

rektbyfaith
Administrator
0
06-07-2024, 09:21 AM
#2
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?
rektbyfaith
06-07-2024, 09:21 AM #2

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?

rektbyfaith
Administrator
0
06-07-2024, 09:30 AM
#3
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
rektbyfaith
06-07-2024, 09:30 AM #3

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

rektbyfaith
Administrator
0
06-07-2024, 09:32 AM
#4
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?
rektbyfaith
06-07-2024, 09:32 AM #4

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?

rektbyfaith
Administrator
0
06-07-2024, 09:33 AM
#5
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?
rektbyfaith
06-07-2024, 09:33 AM #5

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?

rektbyfaith
Administrator
0
06-07-2024, 09:35 AM
#6
Archived author: robinsch • Posted: 2024-06-07T09:35:11.621000+00:00
Original source

depends on the instruction
rektbyfaith
06-07-2024, 09:35 AM #6

Archived author: robinsch • Posted: 2024-06-07T09:35:11.621000+00:00
Original source

depends on the instruction

rektbyfaith
Administrator
0
06-07-2024, 09:35 AM
#7
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
rektbyfaith
06-07-2024, 09:35 AM #7

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

rektbyfaith
Administrator
0
06-07-2024, 09:37 AM
#8
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.
rektbyfaith
06-07-2024, 09:37 AM #8

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.

rektbyfaith
Administrator
0
06-07-2024, 09:38 AM
#9
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
rektbyfaith
06-07-2024, 09:38 AM #9

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

rektbyfaith
Administrator
0
06-07-2024, 09:49 AM
#10
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>
rektbyfaith
06-07-2024, 09:49 AM #10

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>

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)