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 


getThreadlist function

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

Joined: 04 Feb 2013
Posts: 5

PostPosted: Sat Nov 16, 2013 4:19 pm    Post subject: getThreadlist function Reply with quote

A game I created a Lua trainer for recently updated. For some reason, I've noticed that if I change any opcodes before there is more than 2 threads in the program, the game crashes (blah has stopped working message).
Now, an easy way around this would obviously be to just delay it, but I cannot do that currently. The game has an integrity scanner which I can bypass, but only before the game has fully loaded.
In my attempt to create a way around this I wrote this Lua code:
Code:
local lst = createStringlist()
getThreadlist(lst)
print(lst:getText())
print("There are "..lst:getCount().." threads")

The problem with this is it gets the threads for the whole system. Is there any way I can get the threads for just the currently opened process? Thanks.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Nov 16, 2013 5:03 pm    Post subject: Reply with quote

hmm, that's a bug in ce (fixed in the svn now)

Perhaps pause()/unpause() might be of some use? (every now and then pause the game, and then inspect some part of the memory to see if it's in a viable state and then apply the changes before resuming)

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

Joined: 04 Feb 2013
Posts: 5

PostPosted: Sat Nov 16, 2013 5:36 pm    Post subject: Reply with quote

Thanks for the help, I'll give it a try.
Another thing I'd like to inform you about is in the CE documentation it says the function is called getThreadList when it is in fact getThreadlist (lowercase L).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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