| View previous topic :: View next topic |
| Author |
Message |
The0neThe0nly Expert Cheater
Reputation: 0
Joined: 08 Dec 2009 Posts: 119 Location: In a box
|
Posted: Wed Jun 27, 2012 8:54 pm Post subject: Button crashes trainer |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25810 Location: The netherlands
|
Posted: Wed Jun 27, 2012 9:07 pm Post subject: |
|
|
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 |
|
 |
The0neThe0nly Expert Cheater
Reputation: 0
Joined: 08 Dec 2009 Posts: 119 Location: In a box
|
Posted: Wed Jun 27, 2012 9:52 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25810 Location: The netherlands
|
Posted: Thu Jun 28, 2012 7:20 am Post subject: |
|
|
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 |
|
 |
The0neThe0nly Expert Cheater
Reputation: 0
Joined: 08 Dec 2009 Posts: 119 Location: In a box
|
Posted: Thu Jun 28, 2012 8:46 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25810 Location: The netherlands
|
Posted: Thu Jun 28, 2012 10:15 am Post subject: |
|
|
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 |
|
 |
The0neThe0nly Expert Cheater
Reputation: 0
Joined: 08 Dec 2009 Posts: 119 Location: In a box
|
Posted: Thu Jun 28, 2012 11:56 pm Post subject: |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25810 Location: The netherlands
|
Posted: Fri Jun 29, 2012 6:55 am Post subject: |
|
|
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 |
|
 |
|