View previous topic :: View next topic |
Author |
Message |
Filipe_Br Master Cheater
Reputation: 3
Joined: 07 Jan 2016 Posts: 272 Location: My house
|
Posted: Sun Apr 22, 2018 3:49 pm Post subject: How does D3DHook send the data to the process? |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25700 Location: The netherlands
|
Posted: Sun Apr 22, 2018 4:01 pm Post subject: |
|
|
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.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Filipe_Br Master Cheater
Reputation: 3
Joined: 07 Jan 2016 Posts: 272 Location: My house
|
Posted: Sun Apr 22, 2018 4:11 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25700 Location: The netherlands
|
Posted: Sun Apr 22, 2018 6:07 pm Post subject: |
|
|
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.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
Filipe_Br Master Cheater
Reputation: 3
Joined: 07 Jan 2016 Posts: 272 Location: My house
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25700 Location: The netherlands
|
Posted: Mon Apr 23, 2018 5:29 am Post subject: |
|
|
yes
_________________
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 |
|
 |
|