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 


Button crashes trainer

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

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Wed Jun 27, 2012 8:54 pm    Post subject: Button crashes trainer Reply with quote

Hi, I'm making a trainer and I have a script for a d3d menu that works fine when I run it in the Lua Engine in CE, but doesn't work if I put it into a button on my trainer. If I create a button and make the script run onclick, when you click the button the trainer crashes. Any help?

Last edited by The0neThe0nly on Thu Jun 28, 2012 8:26 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Jun 27, 2012 9:07 pm    Post subject: Reply with quote

Describe the crash? Just close? Message saying access violation?

Does it crash when you press that button in ce when just launching using the table or .cetrainer, or only when you press the button in the generated exe?

If exe only (gigantic ones), keep in mind that you have to add all used dll's to your trainer (the d3d hook dlls) when generating the .exe part

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

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Wed Jun 27, 2012 9:52 pm    Post subject: Reply with quote

It says the program has stopped working and closes.

I did not include the d3d hook dlls though, how and what should I include?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Jun 28, 2012 7:20 am    Post subject: Reply with quote

just all the d3d*.dll files from the cheat engine folder.
If you know which directx version this games uses you can omit the ones that aren't used

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

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Thu Jun 28, 2012 8:46 am    Post subject: Reply with quote

Thanks Dark, but now when I click the button nothing happens.
It works fine in the Lua Engine, but when I put it in the button on my trainer when I click it nothing happens.


Last edited by The0neThe0nly on Thu Jun 28, 2012 11:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Jun 28, 2012 10:15 am    Post subject: Reply with quote

Does CEButton3Click get called when you click the button ? (use showMessage or print)

Does the button itself work when running the script from the .ct directly ?

and of course, make sure ALL required dll's are added. Not just dxhook.dll, but also ced3dXhook.dll

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

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Thu Jun 28, 2012 11:56 pm    Post subject: Reply with quote

The button is working in the CT when I click Execute script after scripting the buttons. However, after generated it gives me an Access Violation error in Output and the button fails to work. When I was in the generate trainer menu, I clicked Add Files and added ced3d9hook.dll, d3d10hook.dll, d3d11hook.dll, and d3dhook.dll. That is how you include the files, right?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Fri Jun 29, 2012 6:55 am    Post subject: Reply with quote

Add more debug output so you can see where exactly it goes wrong.
Note that your trainer must have attached to the process before you can click the button.
If you forgot to add the attach code, that might explain the crash

_________________
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
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