| View previous topic :: View next topic |
| Author |
Message |
Programmer123 How do I cheat?
Reputation: 0
Joined: 07 Jul 2014 Posts: 1
|
Posted: Mon Jul 07, 2014 10:53 am Post subject: Base Adress is in format "Disrupt_b64.dll"+03A92F9 |
|
|
I code a memory hack in C#. After I used the pointerscan, I found a right one. Now if i take this adress ("Disrupt_b64.dll"+03A92F98) and put it in my code it doesn't work:
| Code: | | string baseAdress = ""Disrupt_b64.dll"+03A92F98"; |
So I tried like this:
| Code: | | string baseAdress = "\"Disrupt_b64.dll\"+03A92F98"; |
Both of them doesn't work, first one because disrupt_b64.dll isnt in written in those "". Second one doesn't go, because I use fleep hacks tutorials where he had a function like this:
| Code: | public static int hexToDec(string Hex)
{
return int.Parse(Hex, NumberStyles.HexNumber);
} |
Normally I have an address like this: 03A92F98 and not the string in front of it.
The function don't work with "\"Disrupt_b64.dll\"+03A92F98" -> FormatException. How can I transfrom this format:
"xyz.dll" + 12345678
to this format:
03775928
Anyone can help me with my problem?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Mon Jul 07, 2014 12:18 pm Post subject: Re: Base Adress is in format "Disrupt_b64.dll"+03A |
|
|
| Programmer123 wrote: | I code a memory hack in C#. After I used the pointerscan, I found a right one. Now if i take this adress ("Disrupt_b64.dll"+03A92F98) and put it in my code it doesn't work:
| Code: | | string baseAdress = ""Disrupt_b64.dll"+03A92F98"; |
So I tried like this:
| Code: | | string baseAdress = "\"Disrupt_b64.dll\"+03A92F98"; |
Both of them doesn't work, first one because disrupt_b64.dll isnt in written in those "". Second one doesn't go, because I use fleep hacks tutorials where he had a function like this:
| Code: | public static int hexToDec(string Hex)
{
return int.Parse(Hex, NumberStyles.HexNumber);
} |
Normally I have an address like this: 03A92F98 and not the string in front of it.
The function don't work with "\"Disrupt_b64.dll\"+03A92F98" -> FormatException. How can I transfrom this format:
"xyz.dll" + 12345678
to this format:
03775928
Anyone can help me with my problem? |
This is because when cheat engine shows you Disrupt_b64.dll it automatically resolves it to the dll base address so when you use that in your scripts/tables it works.
When you are coding it yourself, you have to grab the base address yourself and calculate the offsets.
So grab the base address and then do somethging like
baseaddress+offset instead of
Disrupt_b64.dll+offset
it should be pretty easy with C# as there are tons of classes/libraries that you don't even have to bother with the low level stuff. Use the link atomos suggested.
_________________
|
|
| Back to top |
|
 |
|