Open alorodri opened 1 year ago
Hey @alorodri,
I have the same error, did you manage to figure it out? If I pass BigInt to func it fails even though it should support it @Rob-- .
all functions that accept an address also accept the address as a BigInt
Hey @alorodri,
I have the same error, did you manage to figure it out? If I pass BigInt to func it fails even though it should support it @Rob-- .
all functions that accept an address also accept the address as a BigInt
Hey @Danovich ! Besides idk if it's the correct solution, I've been able to manage it casting the address to Number
before passing it again to the readMemory
function.
@alorodri and the data you get from readMemory is correct? Converting bigint to number is sketchy as you can go over the MAX_SAFE_INTEGER and lose accuracy...
@alorodri and the data you get from readMemory is correct? Converting bigint to number is sketchy as you can go over the MAX_SAFE_INTEGER and lose accuracy...
In my case it worked and I got the value I was searching for, but seems it loses accuracy and can result in errors if the Number is > 2^54 or something like that.
@Rob-- any updates on this issue?
Hi, will fix this soon.
Hello!
In this code, it fails to read the memory from the first pointer, when it sums the offset and tries to
readMemory
again the new address. Elden Ring is a x64 game, I compiled memoryjs with build64 and I had no problem getting the first ptr value. The problem comes with the secondreadMemory
call, because the first returns a BigInt, then when I call again I must pass an address that is a BigInt, and then it shows me that error:Some useful data:
Object process
That's my code:
Thanks in advance!