| View previous topic :: View next topic |
| Author |
Message |
kazuryo How do I cheat?
Reputation: 0
Joined: 07 Oct 2023 Posts: 4
|
Posted: Sat Oct 07, 2023 8:18 am Post subject: aobScan Not working in Trainer EXE but works in Cheat Engine |
|
|
Hello, so i have this specific piece of code :
| Code: |
autoAssemble([[
aobScan(adr1,80 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?0 00 00 00 00 00 00 00 ?? 00 00 00 00 00 00 0? 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0? 00 ?? 0? F? 00 00 00 00 00 00 00 00 00 ?? ?? 00 00 00 00 00 00 ?0 00 ?? 0? ?? 0?,"")
registersymbol(adr1)
]]
)
addr11=getAddressSafe('adr1')
print(addr11)
|
When i ran it inside the Cheat Engine, it worked perfectly and printed the specific address, but when i tried it in the EXE Trainer and .CETrainer, it returns nil instead.
I have tried 32-bit,64-bit, and renaming the exe file and it still cant work, anyone can help? thanks
|
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Sat Oct 07, 2023 10:08 am Post subject: |
|
|
Your parameters for aobscan are wrong. In Auto Assembler the function is defined as:
| Code: |
aobScan(SymbolName, AOBString)
|
So this should be:
| Code: |
autoAssemble([[
aobScan(adr1,80 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?0 00 00 00 00 00 00 00 ?? 00 00 00 00 00 00 0? 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0? 00 ?? 0? F? 00 00 00 00 00 00 00 00 00 ?? ?? 00 00 00 00 00 00 ?0 00 ?? 0? ?? 0?)
registersymbol(adr1)
]]
)
addr11=getAddressSafe('adr1')
print(addr11)
|
EDIT: Corrected my mistake as pointed out by parkourpenguin (Thank you).
Last edited by LeFiXER on Sat Oct 07, 2023 12:48 pm; edited 1 time in total |
|
| Back to top |
|
 |
kazuryo How do I cheat?
Reputation: 0
Joined: 07 Oct 2023 Posts: 4
|
Posted: Sat Oct 07, 2023 10:16 am Post subject: |
|
|
| LeFiXER wrote: | Your parameters for aobscan are wrong. In Auto Assembler the function is defined as:
| Code: |
aobScan(SymbolName, AOBString)
|
So this should be:
| Code: |
autoAssemble([[
aobScan(adr1,"80 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ?0 00 00 00 00 00 00 00 ?? 00 00 00 00 00 00 0? 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0? 00 ?? 0? F? 00 00 00 00 00 00 00 00 00 ?? ?? 00 00 00 00 00 00 ?0 00 ?? 0? ?? 0?")
registersymbol(adr1)
]]
)
addr11=getAddressSafe('adr1')
print(addr11)
|
|
Doesnt work, unfotunately
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4715
|
Posted: Sat Oct 07, 2023 10:21 am Post subject: |
|
|
The string passed to the call to autoAssemble is an AA script. You don't need quotes around the bytes in an AA script. See the aobscan template in an AA window.
There's too many things that could be wrong here. Maybe you're not attaching to the process- e.g. the trainer is named the same as the game. Maybe the pattern is bad. Maybe that autoAssemble isn't being run for whatever reason.
Regardless, you should be doing error handling with any call to autoAssemble. Or just do it in Lua w/ `AOBScan` and `registerSymbol` functions.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
kazuryo How do I cheat?
Reputation: 0
Joined: 07 Oct 2023 Posts: 4
|
Posted: Sat Oct 07, 2023 10:25 am Post subject: |
|
|
| ParkourPenguin wrote: | The string passed to the call to autoAssemble is an AA script. You don't need quotes around the bytes in an AA script. See the aobscan template in an AA window.
There's too many things that could be wrong here. Maybe you're not attaching to the process- e.g. the trainer is named the same as the game. Maybe the pattern is bad. Maybe that autoAssemble isn't being run for whatever reason.
Regardless, you should be doing error handling with any call to autoAssemble. Or just do it in Lua w/ `AOBScan` and `registerSymbol` functions. |
I am doing this inside the LUA engine inside CE, my original code worked inside CE but then when i make a trainer EXE from it, the code suddenly returned nil.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25827 Location: The netherlands
|
Posted: Sat Oct 07, 2023 11:28 am Post subject: |
|
|
Are you sure that code runs after the process has been properly attached to, and not before
and is it attached to the correct process? e.g there might be another process with the same name
_________________
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 |
|
 |
kazuryo How do I cheat?
Reputation: 0
Joined: 07 Oct 2023 Posts: 4
|
Posted: Sat Oct 07, 2023 3:00 pm Post subject: |
|
|
| Dark Byte wrote: | Are you sure that code runs after the process has been properly attached to, and not before
and is it attached to the correct process? e.g there might be another process with the same name |
I tried printing the processID and prints the correct one, everything else works correctly except for the aobScan
|
|
| Back to top |
|
 |
|