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 


New To Cheat Engine, THREADSTACK problem.

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

Joined: 12 Jan 2014
Posts: 2

PostPosted: Sun Jan 12, 2014 2:51 pm    Post subject: New To Cheat Engine, THREADSTACK problem. Reply with quote

Ive been programming for about 10 years now... And I decided I wanted to Create a simple program that gets a couple a variables from a games process. It took me awhile to finally find some sort of STATIC address for the variables that I found, but It turns out CE is telling me its ["THREADSTACK1"-<some address>].

I have no idea what this means, But all I know is I dont think I can use this for my own Trainer thing im trying to program.

Whats the step process I need to do to get rid of this THREADSTACK so I can get a proper Static Address to use for my program?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Jan 12, 2014 5:10 pm    Post subject: Reply with quote

Threadstack# is a semi-static variable that points to a place in the stack that has been deemed it's start (the ExitThread call specifically)

In your case i suggest you ditch that pointer and find one your trainer engine does support

you can sort the base address column, then close the .ptr file. Delete the .ptr file with a negative subindex, and then reopen it and you'll be rid of them
Also, when you do a scan you can tell cheat engine to not pick stack addresses as static

But keep in mind this code
Code:

int main(.....)
{
  CMyGame game;
  game->run()
}

The variable game would be in the stack, so you won't be able to find that as a base, and then have to hope for another weirder path.

_________________
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
XDemonic
How do I cheat?
Reputation: 0

Joined: 12 Jan 2014
Posts: 2

PostPosted: Sun Jan 12, 2014 10:22 pm    Post subject: Reply with quote

so what your saying, If the Game (or application) variable im trying to get to, Lies within from a Start of a thread, Im basically doomed to get a real Static Address for that variable?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Jan 13, 2014 12:34 am    Post subject: Reply with quote

there may be other static variables you can use as an entry
E.g steamapi might contain a static pointer to the graphics device, which contains a pointer to the gui, which contains a pointer to the game

_________________
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
dharthoorn
Advanced Cheater
Reputation: 1

Joined: 27 Nov 2008
Posts: 84

PostPosted: Fri Feb 21, 2014 6:25 am    Post subject: Reply with quote

I have the same problem ie. silly number of pointer hits (86 gigs of PTR files) and the majority being THREADSTACK0 and THREADSTACK1.

Quote:
you can sort the base address column, then close the .ptr file. Delete the .ptr file with a negative subindex, and then reopen it and you'll be rid of them
Also, when you do a scan you can tell cheat engine to not pick stack addresses as static


I don't understand. I sorted the column, closed the ptr file and browsed to the .prt files. What is a negative subindex and how do I recognise it? There are no minuses in the file names nor values that translate to negatives in hex so I'm confused.

_________________
"If you could reason with religious people there would be no religious people" - House Md. (My Personal Life Coach)
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 Discussions 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