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 


How does D3DHook send the data to the process?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Filipe_Br
Master Cheater
Reputation: 2

Joined: 07 Jan 2016
Posts: 250
Location: My house

PostPosted: Sun Apr 22, 2018 3:49 pm    Post subject: How does D3DHook send the data to the process? Reply with quote

When you call a Lua function from D3DHook somehow a function is executed in the target process.
I tried looking at the source of the Cheat Engine, but there are so many files on D3DHook that I got lost.

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

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

PostPosted: Sun Apr 22, 2018 4:01 pm    Post subject: Reply with quote

It uses a shared memory object.
that memory blocks contains a list of of textures and a list of render commands.
when the game renders a frame it first makes sure that the textures are loaded as well, and then it follows the render commands (e.g place texture 1 at position x,y with rotation r)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Filipe_Br
Master Cheater
Reputation: 2

Joined: 07 Jan 2016
Posts: 250
Location: My house

PostPosted: Sun Apr 22, 2018 4:11 pm    Post subject: Reply with quote

But when you call the function "createTextContainer" for example. The version of this function that was written in pascal, is in the memory of the game or the Cheat Engine?
If it is in memory of the Cheat Engine itself, then I think I will have to change my OpenGL Hook dll a lot.

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

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

PostPosted: Sun Apr 22, 2018 6:07 pm    Post subject: Reply with quote

No, the code written in pascal is not running inside the target.
The code written in C++ is executing in the target. (on frame render it sees that the data has changed, and then acts accordingly)

The memory blocks that CE uses for data like textures and other objects do reside in both processes at the same time (they share the same physical memory)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Filipe_Br
Master Cheater
Reputation: 2

Joined: 07 Jan 2016
Posts: 250
Location: My house

PostPosted: Sun Apr 22, 2018 8:38 pm    Post subject: Reply with quote

Are you talking about it here?
https://msdn.microsoft.com/pt-br/library/windows/desktop/aa366551(v=vs.85).aspx

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

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

PostPosted: Mon Apr 23, 2018 5:29 am    Post subject: Reply with quote

yes
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
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