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 


Lua D3D - Draw some text to game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Matherz
Newbie cheater
Reputation: 0

Joined: 25 Aug 2012
Posts: 15

PostPosted: Sat Aug 25, 2012 3:53 pm    Post subject: Lua D3D - Draw some text to game Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Aug 25, 2012 9:25 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Sun Aug 26, 2012 3:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Aug 26, 2012 5:05 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Sun Sep 16, 2012 9:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
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