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 


I have problem with d3dhook features (CE SDK: r1023)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Fri Sep 09, 2011 11:17 am    Post subject: I have problem with d3dhook features (CE SDK: r1023) Reply with quote

Maybe I'm doing something wrong?

Code:
-- MasterGH Beta-Tester, 09.09.2011
-- CE SDK: r1023 : http://code.google.com/p/cheat-engine/updates/list

-- d3dhook features:
-- d3dhook_initializeHook(6220800) return bool
-- d3dhook_createOverlay(picture, 10,10) return overlayID or nil
-- d3dhook_updateOverlayImage(overlayid)
-- d3dhook_updateOverlayPosition(overlayid, x,y)
-- d3dhook_setOverlayVisibility(overlayid, booleanstate)
-- d3dhook_beginUpdate()
-- d3dhook_endUpdate()

fullPath = "D:\\Games\\PC  (x86, 64)\\Portal2\\portal2.exe"

function CEButton1Click(sender)
     createProcess(fullPath)
end


function UpdateOverlay(sender)
  d3dhook_updateOverlayImage(overlayID)
end

function onOpenProcess(processid)
 print("ProcessOpen")

 rezInitializeHook = d3dhook_initializeHook(6220800)
 if rezInitializeHook then
  print("Yes")
 else
  print("No")
 end

 CEImage1 = component_findComponentByName(UDF1, "CEImage1")
 print(CEImage1)

 picture = image_getPicture(CEImage1)
 print(picture)

 overlayID = d3dhook_createOverlay(picture, 10,10)
 print(overlayID)

 if (overlayID ~= nil) then
   d3dhook_updateOverlayImage(overlayID)

   timer1 = createTimer(UDF1)
   timer_setInterval(timer1, 100)
   timer_onTimer(timer1, UpdateOverlay)
 else
   print("Fail d3dhook")
 end
end


Log:
Quote:

ProcessOpen
No
04ADAB90
04A7B8C0

Fail d3dhook


C:\Windows\SysWOW64\d3d9.dll,
"Direct3D 9 Runtime",
Ver. : 6.1.7601.17514



PicD3DHook.png
 Description:
 Filesize:  46.92 KB
 Viewed:  19650 Time(s)

PicD3DHook.png


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

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

PostPosted: Fri Sep 09, 2011 1:17 pm    Post subject: Reply with quote

It's not fully implemented yet. (Especially the dx9 part)
also, could be you didn't compile the dxhookbase and ced3d9hook dlls

and of course as always, don't do hook stuff in onOpenProcess. That is too soon at that point(If it does work when doing single line command manually, then try using a one time run timer. As that will run after the process initialization instead of before)


also, if you do not edit the pixels of the image of an overlay you should not call d3dhook_updateOverlayImage, that is slow

_________________
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
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Fri Sep 09, 2011 1:37 pm    Post subject: Reply with quote

Thanks, DB
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Fri Sep 09, 2011 3:20 pm    Post subject: Reply with quote

Anyhow, just wondering if i'm missing some options you'd like added.
_________________
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
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Fri Sep 09, 2011 9:59 pm    Post subject: Reply with quote

Ok, my suggestion for some GUIDirect3D class features

function GUIDirect3D_GetScreenWidth() : int
function GUIDirect3D_GetScreenHeight() : int


GUIDirect3D_Rect Struct:
x Left coordinate of the rectangle.
y Top coordinate of the rectangle.
width Width of the rectangle.
height Height of the rectangle.


function GUIDirect3D_Box (position : Rect, text : String)

Exemple:
someRect = GUIDirect3D_Rect(10, 10, 80, 25)
GUIDirect3D_Box(someRect, "This is a title")

-----------
And some more features:

GUIDirect3D_Label (position : Rect, text : String)
GUIDirect3D_Button (position : Rect, text : String, function_OnClick)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Sep 10, 2011 12:31 pm    Post subject: Reply with quote

box and label can be done using the canvas (just write a wrapper using the canvas object for the picture)
but I'll add the screenwidth/height and perhaps a realtime mousecursor in fullscreen (so no need to update that manually)

_________________
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
hack0535
Cheater
Reputation: 2

Joined: 16 Oct 2011
Posts: 28

PostPosted: Tue Jan 17, 2012 12:27 am    Post subject: Reply with quote

how to use d3dhook plsss
Back to top
View user's profile Send private message
hack0535
Cheater
Reputation: 2

Joined: 16 Oct 2011
Posts: 28

PostPosted: Wed Jan 18, 2012 1:55 am    Post subject: Reply with quote

Can i have 6.2
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Wed Jan 18, 2012 7:53 am    Post subject: Reply with quote

hack0535 wrote:
Can i have 6.2


It is still being beta tested. If you wish to join the beta you can:
- Click Usergroups at the top of the forum.
- Click and join the Beta Tester group.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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