thisme Posted February 24, 2022 Share Posted February 24, 2022 I have a script which prints the memory addresses of some in game values, but they are negative: -1462043392 (in hex: -57250300) -1462043388 -1462043384 -1462043380 -1462043376 -1462043372 -1462043368 Is this a fault with Lua or GameGuardian? How do I get the real ones? Link to comment Share on other sites More sharing options...
thisme Posted February 24, 2022 Author Share Posted February 24, 2022 Don't use print directly, format it first: print(string.format("%x", target.address))) This may yield things like ffffffffa8dafd00, but just ignore the fs in front. So the actual address is a8dafd00, which GG finds easily. Link to comment Share on other sites More sharing options...
Lover1500 Posted February 24, 2022 Share Posted February 24, 2022 try this. function tohex(val) if not gg.getTargetInfo().x64 and val<0 then val=val&0xffffffff end return string.format('%x', val) end print(tohex(-1462043380)) Link to comment Share on other sites More sharing options...
Question
thisme
I have a script which prints the memory addresses of some in game values, but they are negative:
-1462043392 (in hex: -57250300)
-1462043388
-1462043384
-1462043380
-1462043376
-1462043372
-1462043368
Is this a fault with Lua or GameGuardian? How do I get the real ones?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.