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 


create Remote thread

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

Joined: 06 Jan 2024
Posts: 9

PostPosted: Sun Jan 07, 2024 5:31 am    Post subject: create Remote thread Reply with quote

There is a game it is simple 2D game.

so when you play it you can incress the player speed for some seconds when you complete a back flip in area it's like power of player,

so i found this function and i can call it in new thread and active this speed but the problem here when i create a thread on this function several time for example between each time i wait for 1 second and call it agin the game crash, it's freeze but i still can listen the sound of game but screen freezed.

so the question here is that happend becouse i call this function on thread and it not in the context of game or the game confuse when i call it severl time.

the Code:

the code in dart language it is the same function that in C++

String pAddress =
_memoryEditor.pointer(altoDllBase + 0x00883FF0, sizeOf<Int64>(), offsets: [0x10, 0x108, 0xC0, 0x18, 0x0, 0x40, 0x0]).toHexString(64);

String funcAddress = (altoDllBase + 0x12DE930).toHexString(64);

String opCode = 'push rbp;'
'mov rbp, rsp;'
'mov rax, $funcAddress;'
'mov rcx, $pAddress;'
'mov edx, 0x4;'
'call rax;'
'mov rsp, rbp;'
'pop rbp;'
'ret'.toOpCode();

String speedUpAlocAddress = VirtualAllocEx(_attachProcess.processDetails!.processHandle, nullptr, bytes, MEM_COMMIT, PAGE_EXECUTE_READWRITE).address;

_memoryEditor.writeBytes(speedUpAlocAddress, opCode, byte: opCode.length ~/ 2);

CreateRemoteThread(
_attachProcess.processDetails!.processHandle,
nullptr,
0xFF,
Pointer.fromAddress(speedUpAlocAddress),
nullptr,
0,
nullptr,
)
The code is right every think is right but like i sade the game crash after When I call it many times and do not leave a long period of time between them !!
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sun Jan 07, 2024 6:19 am    Post subject: Reply with quote

maybe QueueUserAPC2 is more useful to you ?
_________________
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
Ahmed Jihad
How do I cheat?
Reputation: 0

Joined: 06 Jan 2024
Posts: 9

PostPosted: Sun Jan 07, 2024 9:55 am    Post subject: Reply with quote

Dark Byte wrote:
maybe QueueUserAPC2 is more useful to you ?

i will try it !!
Back to top
View user's profile Send private message Send e-mail
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