Rob-- / memoryjs

Read and write process memory in Node.js (Windows API functions exposed via Node bindings)
MIT License
632 stars 86 forks source link

findPattern #82

Closed denis-akazuki closed 3 years ago

denis-akazuki commented 3 years ago

Hello, I used this library to get values from game. I wanted to find world structure. My code: let dwWorld = memoryjs.findPattern(this.hProcess.handle, "GTA5.exe", "48 8B 05 ? ? ? ? 48 8B 58 08 48 85 DB 74 32", memoryjs.NORMAL, 0, 0); dwWorld = dwWorld + memoryjs.readMemory(this.hProcess.handle, dwWorld + 3, "int") + 7; return memoryjs.readMemory(this.hProcess.handle, dwWorld + 0x8 + 0x280, "float"); Returned value not equal to values in game. Maybe I had mistaken, what I need Signature: 48 8B 05 ? ? ? ? 48 8B 58 08 48 85 DB 74 32 Method: pattern + readInt(pattern + 3) + 7