View previous topic :: View next topic |
Author |
Message |
stalker12555 How do I cheat? Reputation: 0
Joined: 13 Jul 2013 Posts: 2 Location: Russian
|
Posted: Sat Jul 13, 2013 3:16 am Post subject: Help! Error executing Trainer |
|
|
Help!
Error executing Trainer:
Error:[string "function CEButton1Click(sender)..."]:3: attempt to call global 'getProcessIDFormProcessName' (a nil value)
Here's the code:
function CEButton1Click(sender)
if (getProcessIDFromProcessName("GAME.exe")==nil) then
beep()
ShowMessage("NOT GAME!!!")
return end
showMessage("OK?")
game='GAME.exe'
openProcess(game)
results=AOBScan("?? 00 00 03 0E 00 E0 ?? 00 01","+W-C-X")
Count=stringlist_getCount(results)
for i=0, (Count-1), 1 do
adress=stringlist_getString(results,i)
writeInteger(adress,99999)
end
end
and error -
[ error ]access
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat Jul 13, 2013 4:32 am Post subject: |
|
|
Weird, getProcessIDFormProcessName is working in 6.3
Are you sure you didn't override that function yourself ?
Some tips about the rest of the code:
Code: |
ShowMessage("NOT GAME!!!")
|
should be
Code: |
showMessage("NOT GAME!!!")
|
AOBScan does not take a second parameter for protection, it scans everything (use a memscan object to be able tp specify specific stuff)
so instead of
Code: |
results=AOBScan("?? 00 00 03 0E 00 E0 ?? 00 01","+W-C-X")
|
do
Code: |
results=AOBScan("?? 00 00 03 0E 00 E0 ?? 00 01")
|
(and it returns nil if nothing found, so check that
Also a tip, do not generate trainers until the trainer is working. It saves a lot of time. So just execute the lua script in ce, (as a normal ct, not cetrainer or .exe) and then each time an error pops up, edit the lua script and press execute so the changes get applied
and another tip,
_________________
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 |
|
|
stalker12555 How do I cheat? Reputation: 0
Joined: 13 Jul 2013 Posts: 2 Location: Russian
|
Posted: Sat Jul 13, 2013 8:41 am Post subject: Help! Error executing Trainer |
|
|
[quote="Dark Byte"]
Thanks but there was one error:
Error:Access violation
[/quote]
_________________
My skype : stalker12555 |
|
Back to top |
|
|
|