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 


The d3dhook object has not been created yet

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

Joined: 16 Feb 2015
Posts: 27

PostPosted: Sat Oct 03, 2015 7:50 pm    Post subject: The d3dhook object has not been created yet Reply with quote

hey
im new to lua and tried to add a crosshair to my game with d3d hook but when i run my .ct file in cheat engine i get this error
Code:
Error:The d3dhook object has not been created yet


my code
Code:
addresslist=getAddressList()



getAutoAttachList().add("examplegame.exe")

d3dhook_initializeHook()

bgtexture=d3dhook_createTexture("C:\Users\artic\Desktop\trainerstuff\crosshair.png")

bgsprite=d3dhook_createSprite(bgtexture);
d3dhook_renderobject_setX(bgsprite, -1)
d3dhook_renderobject_setY(bgsprite, -1)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Oct 04, 2015 3:17 am    Post subject: Reply with quote

the d3dhook functions only work after attaching to a process.
adding the processname to the auto attach list won't immediately attach it.

Use the onOpenProcess function and do it in there. (Call reinitializeSymbolhandler(true) first, or start a timer in there that will start when the initialization has finished)

_________________
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
Redogg
Cheater
Reputation: 0

Joined: 16 Feb 2015
Posts: 27

PostPosted: Sun Oct 04, 2015 9:56 am    Post subject: Reply with quote

Dark Byte wrote:
the d3dhook functions only work after attaching to a process.
adding the processname to the auto attach list won't immediately attach it.

Use the onOpenProcess function and do it in there. (Call reinitializeSymbolhandler(true) first, or start a timer in there that will start when the initialization has finished)

thanks i got it
and i completely recoded the crosshair code cuze i got access violation error from that one
thanks again Very Happy
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 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