View previous topic :: View next topic |
Author |
Message |
mben Newbie cheater Reputation: 0
Joined: 20 Jan 2018 Posts: 14
|
Posted: Sun Jan 21, 2018 6:55 pm Post subject: trainer failure to hook the game |
|
|
hello everybody, i am making my first trainer with lua and custom form, everything works fine until i export my trainer like .exe standalone, for some weird reason my trainer dont load and show this message
in pop window
failure loading the trainer. reason this is a not valid cheat table(error executing this table's lua script: undefined lua error)
output window:
error:failure determining what BH6.exe means
it seems the trainer in stand alone cant find and hook the game
this is the function i am using to attach the process
Code: |
function myattach(timer)
if getProcessIDFromProcessName("BH6.exe") ~= nil then
object_destroy(timer)
--print("proceso abierto")
openProcess("BH6.exe")
sleep(2000)
form_show(UDF1)
end
end
t=createTimer(nil);
timer_setInterval(t,6000)
timer_onTimer(t,myattach) |
any idea why is this happening?
thanks in advance
|
|
Back to top |
|
|
sumnice22 How do I cheat? Reputation: 0
Joined: 31 Mar 2021 Posts: 1
|
Posted: Fri Apr 02, 2021 1:16 pm Post subject: |
|
|
I'm having exactly the same issue, I've tried everything but it wont work, the only way is to open cheat engine, hook the game manually and run the script.
|
|
Back to top |
|
|
ByTransient Expert Cheater Reputation: 5
Joined: 05 Sep 2020 Posts: 240
|
Posted: Fri Apr 02, 2021 1:54 pm Post subject: |
|
|
This works for me.
Code: | UDF1.hide()
function myattach(timer)
if getProcessIDFromProcessName("chrome.exe") ~= nil then
openProcess("chrome.exe")
showMessage("proceso abierto");
sleep(2000)
UDF1.show()
object_destroy(timer)
else
showMessage("No se encontró el juego. Primero abre el juego.");
object_destroy(timer)
--closeCE();
--return caFree --Possible options: caHide, caFree, caMinimize, caNone
end
end
t=createTimer(nil);
timer_setInterval(t,6000)
timer_onTimer(t,myattach) |
|
|
Back to top |
|
|
|