-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error reading BigInt pointer #114
Comments
Hey @Danovich ! Besides idk if it's the correct solution, I've been able to manage it casting the address to |
@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!
The text was updated successfully, but these errors were encountered: