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 


Finding static address in small C# console program

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

Joined: 21 Dec 2015
Posts: 1

PostPosted: Mon Dec 21, 2015 6:22 am    Post subject: Finding static address in small C# console program Reply with quote

Hi,
I'm using cheat engine for some time now and I know how to find static addresses in some games. But in other games it seems I cannot find it, so I created a small C# program just to see if I can find it and the assembly generated.

Code:

public class Program
{
    static void Main(string[] args)
    {
        for (int i = 0; i < 1000; ++i)
        {
            Console.WriteLine(i);
            System.Threading.Thread.Sleep(3000);
        }
     }
}


I can find the value of i easily, then I check what accessed it and got 3 address, 2 return nothing when searching the hex of it, and the other return one result (not static address), Then I add the address with the offset and it shows the right value, but again this isn't a static address, so I check what access this pointer, and then it shows nothing!!! I'm stuck.

I've tried the Pointer Scan For This Address, it returns millions of addresses the first few times but eventually returns 0.

It's always possible to find the base address of every value? When it's not possible? What are my options now?

Thanks!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25820
Location: The netherlands

PostPosted: Mon Dec 21, 2015 8:04 am    Post subject: Reply with quote

this doesn't have a static. And i is not a pointer

For code like this you'll have to use threadstack to find it.

go through threadstack0 to threadstack10 and see if one is close to the address of i

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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