| View previous topic :: View next topic |
| Author |
Message |
moccor How do I cheat?
Reputation: 0
Joined: 20 Feb 2019 Posts: 5
|
Posted: Wed Feb 20, 2019 11:51 pm Post subject: Is it possible to use AOB injection with float and/or double |
|
|
I learn a lot from YouTube and these forums from simple Google searches, but now I have something I don't understand (and yes I am kinda new to Cheat Engine/scripts). To keep it short and sweet, is there some info that can easily explain my title or can someone tell me what I am doing wrong here in my script. I am more of a hands-on learner than I am a book learner.. I don't plan to be the best so my methods may be crappy but still work for basic stuff.
[ENABLE]
aobscanmodule(infFlashlight,MetroExodus.exe,F3 0F 11 99 78 0A 00 00) // should be unique
alloc(newmem,$1000,"MetroExodus.exe"+B9BD28B)
label(code)
label(return)
newmem:
code:
movss [rcx+00000A78],xmm3
jmp return
infFlashlight:
jmp newmem
nop
nop
nop
return:
registersymbol(infFlashlight)
[DISABLE]
infFlashlight:
db F3 0F 11 99 78 0A 00 00
unregistersymbol(infFlashlight)
dealloc(newmem)
Basically I would like to use this to create infinite flashlight. I had the value for 'max', its a double. I can find it again but it is irrelevant atm. Basically my simple methods would be something like this :
[ENABLE]
aobscanmodule(infFlashlight,MetroExodus.exe,F3 0F 11 99 78 0A 00 00) // should be unique
alloc(newmem,$1000,"MetroExodus.exe"+B9BD28B)
label(code)
label(return)
newmem:
code:
movss [rcx+00000A78],(int)999
jmp return
infFlashlight:
jmp newmem
nop
nop
nop
return:
registersymbol(infFlashlight)
[DISABLE]
infFlashlight:
db F3 0F 11 99 78 0A 00 00
unregistersymbol(infFlashlight)
dealloc(newmem)
But I assume instead of '(int)' I can use '(double)' right? Or '(float)'? but that does not work when I try '(double)' so I def am doing something wrong, and (int) also does not work, which simply means there is something I need to learn so I don't have to ask for help for each new cheat I want . I am actually spending time watching videos on tutorials but I haven't read up/watched anything about using float/double in scripts. Maybe I am using the wrong type of script? Idk. I also feel like there is a even quicker and easier method by simply 'nop' the code from ever looking for a value change..
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25812 Location: The netherlands
|
Posted: Thu Feb 21, 2019 12:19 am Post subject: |
|
|
use mov instead of movss is only for registers and xmm
mov dword [rcx+00000A78],(float)xxxx
or
mov rax,(double)xxx
mov [rcx+00000A78],rax
_________________
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 |
|
 |
moccor How do I cheat?
Reputation: 0
Joined: 20 Feb 2019 Posts: 5
|
Posted: Thu Feb 21, 2019 12:54 am Post subject: |
|
|
| I appreciate the response. Is there something specific I can read up on so I understand how you came up with that? I understand from reading guides that a lot of the knowledge just comes from practice or past knowledge of assembly/coding so maybe there isn't a simple way to learn what you've shown me
|
|
| Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4709
|
Posted: Thu Feb 21, 2019 9:51 am Post subject: |
|
|
This beginner's guide from Intel is terse and prepares the reader well enough to start reading the actual documentation; however, it's probably too esoteric for someone new to computer architecture. Search for "x64 tutorial" and start reading. Just take what you're given with a grain of salt: there's a lot of false, misleading, or otherwise bad information out there.
Intel's Software Developer Manual and AMD's Architecture Programmer's Manual both have good information. The instruction set references from both can be found online (e.g. https://www.felixcloutier.com/x86/), but you generally need to read other parts of the manuals to understand the meaning of all the information presented in the instruction set references.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
| Back to top |
|
 |
moccor How do I cheat?
Reputation: 0
Joined: 20 Feb 2019 Posts: 5
|
Posted: Thu Feb 21, 2019 12:12 pm Post subject: |
|
|
| I appreciate the info both of you provided, thanks. Yeah many guides and info use different injection types and I know the way I do scripts is pretty basic, but using the link you ParkourPenguin provided and shown the correct way by Dark Byte, this gives me some stuff to play around with and a new thing to search about for more information. Thanks again
|
|
| Back to top |
|
 |
|