View previous topic :: View next topic |
Author |
Message |
Matherz Newbie cheater Reputation: 0
Joined: 25 Aug 2012 Posts: 15
|
Posted: Sat Aug 25, 2012 3:53 pm Post subject: Lua D3D - Draw some text to game |
|
|
Hi,
can anyone pleas give me example of source code how draw to D3D app with Cheat Engine some simple text or is it posible?
I can lil' bit C++ but in it requires advanced skill.
thx for reply.
Sorry for my English
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Sat Aug 25, 2012 9:25 pm Post subject: |
|
|
Code: |
d3dhook_initializeHook()
font=createFont() --Default initialized to the mainform font. (black and small)
--You can change the font properties like size, type, bold, color, etc.. (Don't do italic as it can break the fontmap)
fontmap=d3dhook_createFontmap(font) --create a fontmap from the defined font. After this font can be destroyed. If you wish different colors and types, create a new fontmap each time
DisplayedTextObject=d3dhook_createTextContainer(fontmap,100,100,'Initial text or empty string')
--The DisplayedTextObject is a TextContainer class. It inherits from the D3DHook_RenderObject, so d3dhook_renderobject_* methods work on this object
--example to change the y position to 300 you'd do
d3dhook_renderobject_setY(DisplayedTextObject, 300)
--The textcontainer also has it's own methods, like d3dhook_textcontainer_setText
d3dhook_textcontainer_setText(DisplayedTextObject, "Updated Text")
|
I recommend reading main.lua for more related functions and class methods (or the helpfile where it's also copied to)
_________________
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 |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sun Aug 26, 2012 3:27 am Post subject: |
|
|
Can this be done with flash games?
Cheat Engine can't inject here chrome.exe processor (flashplayer).
I've tried on pinball, but didn't saw any text.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Sun Aug 26, 2012 5:05 am Post subject: |
|
|
It only works on direct3d 9, 10 and 11 games
_________________
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 |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sun Sep 16, 2012 9:15 pm Post subject: |
|
|
Dark Byte wrote: | It only works on direct3d 9, 10 and 11 games |
Sorry for the bump..
But can you make/try make it for flash in the next verisons?
It'll be awesome if you will...
|
|
Back to top |
|
|
|