Comments (3)
You can take mProc.MainModule.BaseAddress and subtract that from the AoB output to get the offset from the base address.
long offset = aobResult - mem.mProc.MainModule.BaseAddress;
string CEOutputEquiv = $"Growtopia.exe+{offset:X}";
In reality though both are equivalent to each other.
You can use the output of the aob scan by converting it to a hex string easy way to do that is to use string interpolation like similar to this.
long aobResultRaw = (await m.AoBScan(AOB)).FirstOrDefault();
string aobResultString = $"0x{aobResultRaw:X}";
Also please do note that AoB scans are async tasks so you really should await on them to get the result instead of accessing the result directly. Also some calls may return 0 or more results so using Sum()
on the result may not do what you intend.
from memory.dll.
You can take mProc.MainModule.BaseAddress and subtract that from the AoB output to get the offset from the base address.
long offset = aobResult - mem.mProc.MainModule.BaseAddress; string CEOutputEquiv = $"Growtopia.exe+{offset:X}";In reality though both are equivalent to each other.
You can use the output of the aob scan by converting it to a hex string easy way to do that is to use string interpolation like similar to this.
long aobResultRaw = (await m.AoBScan(AOB)).FirstOrDefault(); string aobResultString = $"0x{aobResultRaw:X}";Also please do note that AoB scans are async tasks so you really should await on them to get the result instead of accessing the result directly. Also some calls may return 0 or more results so using
Sum()
on the result may not do what you intend.
Thanks for the answer @hollow87. Unfortunately my output (aobresult
) is a string. VS Gives this error "Operator '-' cannot be applied to operands of type 'string' and 'IntPtr' ". How do i convert IntPtr to string? Or is there any other solution to this error? Thanks!
from memory.dll.
This is beyond the scope of an github issue. I can suggest joining the discord to see if someone will help you with programming in general.
from memory.dll.
Related Issues (20)
- CodeCave problem,help
- add fast research HOT 1
- WriteMemory with the option bytes crashes the game
- Discord Link Has Expired HOT 1
- Will writeMemory function cause Crash? HOT 1
- OpenProcess Always Returned NULL
- Have you translated the following C + + code?VirtualAlloc
- Add GetModuleToPointer HOT 2
- Fix GetCode now work in 32bit&64bit HOT 1
- Using custom AoB scan regions causes no results. HOT 1
- I am astonished HOT 1
- Can we hook functions with this library? HOT 1
- UNIT64 error HOT 1
- Is Cheat Engine and Cheat Table Support added ? HOT 7
- I have a reading error HOT 2
- Not a bug but I have a question HOT 1
- WriteMemory function doesn't work in specifical condition HOT 2
- I am having some issues! HOT 5
- How can i change opcode values inline, or load a full auto assembler script from cheat engine HOT 1
- issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memory.dll.