View previous topic :: View next topic |
Author |
Message |
JRagen How do I cheat? Reputation: 0
Joined: 15 Oct 2014 Posts: 8
|
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Wed Oct 15, 2014 3:58 pm Post subject: |
|
|
Try reading the value, to make sure you do have the right pointer
_________________
|
|
Back to top |
|
|
JRagen How do I cheat? Reputation: 0
Joined: 15 Oct 2014 Posts: 8
|
Posted: Wed Oct 15, 2014 4:03 pm Post subject: |
|
|
Thanks, I'll go ahead and try that right now.
EDIT: Now I'm getting an access violation as my script executes. There's probably something simple that I am missing.
|
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Wed Oct 15, 2014 4:20 pm Post subject: |
|
|
JRagen wrote: | Thanks, I'll go ahead and try that right now.
EDIT: Now I'm getting an access violation as my script executes. There's probably something simple that I am missing. |
Don't try your scripts, and restart cheat engine
Your script has a loop which could be the reason for the access violation
Try this for example
Code: | print("Value pCPUSprintSpeed - " .. readInteger(pCPUSprintSpeed)); |
_________________
|
|
Back to top |
|
|
JRagen How do I cheat? Reputation: 0
Joined: 15 Oct 2014 Posts: 8
|
Posted: Wed Oct 15, 2014 4:47 pm Post subject: |
|
|
I've tried and found out that the pointer is referencing a nil value, but when I add the same pointer to the address list, it points to the correct address and value: 50. Screenshot attached.
Description: |
|
Filesize: |
33.93 KB |
Viewed: |
20830 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Wed Oct 15, 2014 4:50 pm Post subject: |
|
|
add a
Code: |
reinitializeSymbolhandler()
|
after openProcess()
_________________
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 |
|
|
JRagen How do I cheat? Reputation: 0
Joined: 15 Oct 2014 Posts: 8
|
Posted: Wed Oct 15, 2014 4:56 pm Post subject: |
|
|
Still getting an error?
Description: |
|
Filesize: |
40.34 KB |
Viewed: |
20814 Time(s) |
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Wed Oct 15, 2014 5:25 pm Post subject: |
|
|
then try:
pCPUSprintSpeed = getAddress('[["fifa15.exe"+02a97ad0]+50]+248')
or
readInteger('[[fifa15.exe+02a97ad0]+50]+248')
or
readInteger(readInteger(readInteger("fifa15.exe"+02a97ad0)+0x50)+0x248)
also change openProcess("fifa15.exe") to
if openProcess("fifa15.exe")==nil then showMessage("This is why") end
_________________
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 |
|
|
JRagen How do I cheat? Reputation: 0
Joined: 15 Oct 2014 Posts: 8
|
Posted: Wed Oct 15, 2014 5:30 pm Post subject: |
|
|
Thanks, DB. I'll try that ASAP and report back.
Results:
The first tip produces:
"Error:Failure determining what [["fifa15.exe"+02a97ad0]+50]+248 means"
The second:
Still produces a nil output.
The third:
" Script Error:[string "--if openProcess("fifa15.exe")==nil then..."]:8: malformed number near '02a97ad0' "
I tried the fourth and openProcess("fifa15.exe") does not result in nil.
Maybe it's my laptop, or the exe has some sort of protection.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Wed Oct 15, 2014 6:55 pm Post subject: |
|
|
sorry, third one should have had a 0x in front
oh yes, make sure to never ever name any of your trainers fifa15.exe
_________________
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 |
|
|
JRagen How do I cheat? Reputation: 0
Joined: 15 Oct 2014 Posts: 8
|
Posted: Thu Oct 16, 2014 11:56 am Post subject: |
|
|
Dark Byte wrote: | sorry, third one should have had a 0x in front
oh yes, make sure to never ever name any of your trainers fifa15.exe |
Thanks again.
None of my trainers are named fifa15.exe.
I'll try this out later today, and if it doesn't work, I'll also try all the methods you've mentioned on my desktop pc.
If all else fails:
Do you think that I should convert my script to auto-assembler or C++? Is there a way to generate random numbers in auto-assembler?
Report:
Nope, still doesn't work. I also cannot attach the debugger, if that makes any difference. Seems like the exe is protected from CE's routines. Even the kernelmode debugger, which attaches without any error messages, crashes when attempting to find out what accesses or points to an address.
Thanks for your help anyways, Dark Byte and DaSpamer.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu Oct 16, 2014 3:52 pm Post subject: |
|
|
according to this image: http://forum.cheatengine.org/files/debug_729.png you can open it and read memory fine
So, do a step by step to see where it goes wrong.
Tip: You can also access memory records with lua and read/write their values as well
Tip2: Try getting rid of that openProcess call and attach CE to it manually beforehand
Also, veh debugger with page exception breakpoints sometimes work where debug registers won't
_________________
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 |
|
|
JRagen How do I cheat? Reputation: 0
Joined: 15 Oct 2014 Posts: 8
|
Posted: Thu Oct 16, 2014 4:13 pm Post subject: |
|
|
Okay, I'll read up on the main.lua and see how changing the memory records goes first. Hopefully this works because the memrecords correctly list the address and its value, and changing that value has an effect in-game.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Thu Oct 16, 2014 4:53 pm Post subject: |
|
|
Perhaps there is a second process named fifa15.exe
openProcess with a processname always open the last one in the list. But that can be a wrong one
Also, if you need to use kernelmode openprocess for normal workings, you need to put that in your trainers as well
_________________
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 |
|
|
JRagen How do I cheat? Reputation: 0
Joined: 15 Oct 2014 Posts: 8
|
|
Back to top |
|
|
|