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 


What is Thread?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Wed Aug 12, 2015 5:09 am    Post subject: What is Thread? Reply with quote

Hi, i have a question, what is Thread?
i have seen it in:
Memory_Viewer>Tools>Create_Thread
Memory_Viewer>View>Threadlist

If its something useful how can i work with it and what is its function?

_________________
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 468

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

PostPosted: Wed Aug 12, 2015 5:14 am    Post subject: Reply with quote

A thread is something that executes code inside the process.

You need to know assembler to use it

_________________
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
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Wed Aug 12, 2015 12:01 pm    Post subject: Reply with quote

and we can create one?
_________________
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Wed Aug 12, 2015 12:22 pm    Post subject: Reply with quote

https://en.wikipedia.org/wiki/Multithreading_(computer_architecture)

As far as CE is concerned, i doubt you will find its use in gamehacking (maybe for lua ?). In programming, depending on your program needs you will need to use multi-threading. Read the wiki article and you will understand when and why you may want to use it.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Sat Aug 15, 2015 4:59 am    Post subject: Reply with quote

So, can I do it?
I should allocate some memory and write my code there, and I can run this code separately?

_________________
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sat Aug 15, 2015 5:36 am    Post subject: Reply with quote

Okay, what exactly are you trying to accomplish?
_________________
Back to top
View user's profile Send private message
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Sat Aug 15, 2015 7:13 am    Post subject: Reply with quote

I want to know how to use it
_________________
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Aug 15, 2015 7:57 am    Post subject: Reply with quote

If cheat engine didn't already have a way to freeze a value, you could use a thread.
The thread could constantly be updating an address in the background of normal execution.
Chances are you'll never have a reason to create a thread in any of your hacks.
Back to top
View user's profile Send private message
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Sun Aug 16, 2015 6:58 am    Post subject: Reply with quote

Can someone say how can I make one?
I tried the option and the game stopped working

_________________
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Sun Aug 16, 2015 10:13 am    Post subject: Reply with quote

Nemexia55 wrote:
Can someone say how can I make one?
I tried the option and the game stopped working


Because you (probably) tried to execute an area with no instruction leading the game to a dead end or executed some code assuming the proper values when they weren't there, we don't know unless you paste your code.

I suggest you actually use and create threads in a programming language so you get an idea how to use them. There is nothing magical to them and CE simply creates a thread in target process (game) using CreateRemoteThread i assume (haven't looked in the source).


PS: If you intend to use this in a CE trainer, you would have to create the thread yourself (lua or through AA), allocate memory to send as the lpStartAddress. A lot of hassle for something you can do without.

PS2: Forgot to mention, you can use CE CreateThread function like this
1. Open Notepad
2. Open CE 6.4
3. Memory Viewer > Create Thread > Blindly Slam OK, OK, OK.
Should pop-up a new notepad window - not very functional but you get how to make one and what you can do with it.

Did this on windows 10 x64, not sure if it works for other versions. As for the why this works, it simply executes the notepad EP which is where CE lands when attaching (i guess, haven't bothered to look).

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sun Aug 16, 2015 10:30 am    Post subject: Reply with quote

@Nemexia55

Okay but why do you want to make a thread, exactly?

What is your goal? What is the driving force behind this? What do you attempt to accomplish via this functionality?

_________________
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 Gamehacking 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