View previous topic :: View next topic |
Author |
Message |
GH*master Expert Cheater Reputation: 8
Joined: 10 Jan 2008 Posts: 159
|
Posted: Fri Sep 09, 2011 11:17 am Post subject: I have problem with d3dhook features (CE SDK: r1023) |
|
|
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
Description: |
|
Filesize: |
46.92 KB |
Viewed: |
19662 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Fri Sep 09, 2011 1:17 pm Post subject: |
|
|
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 |
|
|
GH*master Expert Cheater Reputation: 8
Joined: 10 Jan 2008 Posts: 159
|
Posted: Fri Sep 09, 2011 1:37 pm Post subject: |
|
|
Thanks, DB
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Fri Sep 09, 2011 3:20 pm Post subject: |
|
|
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 |
|
|
GH*master Expert Cheater Reputation: 8
Joined: 10 Jan 2008 Posts: 159
|
Posted: Fri Sep 09, 2011 9:59 pm Post subject: |
|
|
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 |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Sat Sep 10, 2011 12:31 pm Post subject: |
|
|
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 |
|
|
hack0535 Cheater Reputation: 2
Joined: 16 Oct 2011 Posts: 28
|
Posted: Tue Jan 17, 2012 12:27 am Post subject: |
|
|
how to use d3dhook plsss
|
|
Back to top |
|
|
hack0535 Cheater Reputation: 2
Joined: 16 Oct 2011 Posts: 28
|
Posted: Wed Jan 18, 2012 1:55 am Post subject: |
|
|
Can i have 6.2
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
|
Posted: Wed Jan 18, 2012 7:53 am Post subject: |
|
|
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 |
|
|
|