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 


ask a question about directx9 hook.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Mon Feb 25, 2013 7:32 am    Post subject: ask a question about directx9 hook. Reply with quote

i have not test cheatengine source with direct9 hook
but i have test hook it with c++ builder program.
just hook dxdiag.exe(this is directx9 information tool)
hook Direct3DCreate9 it have no effect.
but in my own program it can work well.i do not know why.could you help me?
Back to top
View user's profile Send private message
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Thu Mar 14, 2013 3:22 am    Post subject: Reply with quote

no one knows?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Mar 14, 2013 4:06 am    Post subject: Reply with quote

That's probably because no one understands your question

I'll assume you use Cheat Engine 6.1+

The direct3d 9 hook does not modify Direct3DCreate9 , which is why you do not see a modification
That is has no effect in the game might be because you haven't given proper render commands

_________________
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
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Mar 15, 2013 3:23 pm    Post subject: Reply with quote

Keep in mind depending on your OS version as well, dxdiag does not use Direct3D9 to determine information. It will use the most recent version of Direct3D on your system for that.

Such as for Windows 7, you probably have Direct3D10 or 11, it will use those instead. So your hook for DX9 will do nothing.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Fri Mar 15, 2013 11:27 pm    Post subject: Reply with quote

Wiccaan wrote:
Keep in mind depending on your OS version as well, dxdiag does not use Direct3D9 to determine information. It will use the most recent version of Direct3D on your system for that.

Such as for Windows 7, you probably have Direct3D10 or 11, it will use those instead. So your hook for DX9 will do nothing.


i am sure my xp use the directx 9 version.
this problem is very strangely.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Mar 15, 2013 11:49 pm    Post subject: Reply with quote

hlzy wrote:
Wiccaan wrote:
Keep in mind depending on your OS version as well, dxdiag does not use Direct3D9 to determine information. It will use the most recent version of Direct3D on your system for that.

Such as for Windows 7, you probably have Direct3D10 or 11, it will use those instead. So your hook for DX9 will do nothing.


i am sure my xp use the directx 9 version.
this problem is very strangely.


I just looked at dxdiag on my Windows XP VM and it never loads d3d9.dll so it does not look like they ever create an actual device in the app to poll for data. If you need a Direct3D9 test application to work with, download one of the older Direct3D SDKs. There are a handful of example apps included with it.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Sat Mar 16, 2013 9:35 pm    Post subject: Reply with quote

Wiccaan wrote:
hlzy wrote:
Wiccaan wrote:
Keep in mind depending on your OS version as well, dxdiag does not use Direct3D9 to determine information. It will use the most recent version of Direct3D on your system for that.

Such as for Windows 7, you probably have Direct3D10 or 11, it will use those instead. So your hook for DX9 will do nothing.


i am sure my xp use the directx 9 version.
this problem is very strangely.


I just looked at dxdiag on my Windows XP VM and it never loads d3d9.dll so it does not look like they ever create an actual device in the app to poll for data. If you need a Direct3D9 test application to work with, download one of the older Direct3D SDKs. There are a handful of example apps included with it.




em,i think you are right.
but i have test some games which says it need directx 9 have the same problem.
is that like you said?or it use the directx 8?
or it never use Direct3DCreate9,Direct3DCreate8 anymore?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Mar 17, 2013 2:12 am    Post subject: Reply with quote

From the look of it dxdiag on Windows XP doesn't load either d3d8 or d3d9. It polls all the data other ways instead.

As for testing on games that use DirectX 9, it is possibly your hook failing then. Or you are injecting it too late.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
hlzy
Advanced Cheater
Reputation: 0

Joined: 13 Jun 2011
Posts: 56

PostPosted: Sun Mar 17, 2013 3:11 am    Post subject: Reply with quote

Wiccaan wrote:
From the look of it dxdiag on Windows XP doesn't load either d3d8 or d3d9. It polls all the data other ways instead.

As for testing on games that use DirectX 9, it is possibly your hook failing then. Or you are injecting it too late.



oh,it is bad to hear that.
but thank you very much.
if not use d3d8(d3d9) ,what dose it use?
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 programming 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