|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
DTeCH Newbie cheater Reputation: 0
Joined: 19 Jul 2013 Posts: 23 Location: Cayman Islands
|
Posted: Sun Sep 29, 2013 7:17 pm Post subject: AobSwap, also audio Question |
|
|
Hello dudes!
First question is, I have a bit of code to replace some bytes in a game, but I'm used to replacing the exact amount of bytes searched for... I am being strongly told to do it because it will work, but I have no Idea how the AobSwap function works on the inside, despite how obvious it seems. Can I replace 20 bytes with 5 bytes? If so, then how does AobSwap deal with it? Does it just overwrite the first 5 bytes, then leave the rest, or does it reduce the overall filesize by deleting the 20 bytes, & re-injecting 5 in it's place leaving the overall filesize 15 bytes smaller?
I ask because when I click "Ok" in the lua code editor in the window that pops up when you double-click to edit your cheat table entries from the bottom of cheat engine main window, it says,
Code: | "Not All code is injectable{Erro on line 2{Bla bla bla bla}:Undefined Lua Error} Are you sure you want to edit it to this? |
Code: | [ENABLE]
LuaCall(Aobswap("09 E7 00 ?? ?? ?? 00 00 ?? ?? ?? ?? ?? ?? ?? 00 ?? ?? ?? 00", "?? ?? ?? 01 B0"))
[DISABLE] |
(The above code is just an example)
It also says:
Code: | attempt to call global 'Aobswap' (a nil value) |
I'm hoping the Nil value thing is just because the editor in the main cheatengine window cannot tell what you have written in your Lua code in the Trainer designer section.
Also, Question 2:
Are there any audio functions in Cheat engine's Lua coding that I can use for like button clicks, & mouseover events?
Thanks guys
EDIT:
This is the longest I've ever waited for an answer, & no responses, so I'll take it as no one knows, or whatever.
Thanks all.
ps: You can delete this post if you want.
_________________
Hitler... When all else fails, you'll be in the right state of mind. Jesus Saves. |
|
Back to top |
|
|
Fixxxer How do I cheat? Reputation: 0
Joined: 29 Apr 2013 Posts: 7
|
Posted: Fri Oct 04, 2013 8:16 am Post subject: |
|
|
Why don't you swap the rest with nop bytes?
I am a newbie but I think it is the simplest solution?
|
|
Back to top |
|
|
DTeCH Newbie cheater Reputation: 0
Joined: 19 Jul 2013 Posts: 23 Location: Cayman Islands
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|