Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Base Adress is in format "Disrupt_b64.dll"+03A92F9

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Programmer123
How do I cheat?
Reputation: 0

Joined: 07 Jul 2014
Posts: 1

PostPosted: Mon Jul 07, 2014 10:53 am    Post subject: Base Adress is in format "Disrupt_b64.dll"+03A92F9 Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Jul 07, 2014 11:46 am    Post subject: Reply with quote

You can use the Process class to obtain the base address of the given module / process.
http://msdn.microsoft.com/en-us/library/system.diagnostics.process(v=vs.110).aspx

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Mon Jul 07, 2014 12:18 pm    Post subject: Re: Base Adress is in format "Disrupt_b64.dll"+03A Reply with quote

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.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites