| View previous topic :: View next topic |
| Author |
Message |
grefle How do I cheat?
Reputation: 0
Joined: 20 Jan 2024 Posts: 3
|
Posted: Sat Jan 20, 2024 5:04 pm Post subject: Not all instructions could be injected |
|
|
Hello everybody!
I have only recently started exploring the possibilities of the cheat engine. I'm trying to get immortality in warhammer vermintide 2 single player right now. The following code i want to inject is giving an error "Not all instructions could be injected" when i press button "Execute", also when i assign current code to a cheat table the button is not active to activate script. I use read/Write process memory in Extra settings (without it CE just dont see any value) and sometimes have blue screen too.
Please help, thanks in advance!
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,7FF77B798661)
label(returnhere)
label(originalcode)
label(exit)
alloc(our_address,4,7FF77B798661)
our_address:
dd (float)1000
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
movss xmm2,[our_address]
originalcode:
movss [r8],xmm2
exit:
jmp returnhere
7FF77B798661:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(our_address)
7FF77B798661:
movss [r8],xmm2
//Alt: db F3 41 0F 11 10 |
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25835 Location: The netherlands
|
Posted: Sat Jan 20, 2024 5:08 pm Post subject: |
|
|
if you have to use kernelmode read/write then very likely memory allocation won't work
Try finding some unused executable code to write the code in
_________________
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 |
|
 |
grefle How do I cheat?
Reputation: 0
Joined: 20 Jan 2024 Posts: 3
|
Posted: Sat Jan 20, 2024 5:12 pm Post subject: |
|
|
| Dark Byte wrote: | if you have to use kernelmode read/write then very likely memory allocation won't work
Try finding some unused executable code to write the code in |
Thank you very much! I'll try it!
[Edited]
Sorry, i dont know if i did right, but i guess this code works, but i am not sure about it.
[Edited]
Even empty inject dosent work, unfortunately.
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,7FF704AA8661)
label(returnhere)
label(originalcode)
label(exit)
alloc(our_address,4,7FF704AA8661)
our_address:
dd (float)70
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
movss xmm2,[our_address]
originalcode:
movss [r8],xmm2
exit:
jmp returnhere
FFFF9587BB709510:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
dealloc(our_address)
7FF704AA8661:
movss [r8],xmm2
//Alt: db F3 41 0F 11 10 |
| Description: |
|
| Filesize: |
68.67 KB |
| Viewed: |
3244 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25835 Location: The netherlands
|
Posted: Sun Jan 21, 2024 3:59 am Post subject: |
|
|
use lua command
| Code: |
dbk_writesIgnoreWriteProtection(true)
|
_________________
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 |
|
 |
grefle How do I cheat?
Reputation: 0
Joined: 20 Jan 2024 Posts: 3
|
Posted: Sun Jan 21, 2024 2:10 pm Post subject: |
|
|
| Dark Byte wrote: | use lua command
| Code: |
dbk_writesIgnoreWriteProtection(true)
|
|
When i execute code the blue screen pops up with IRQL_NOT_LESS_OR_EQUAL error.
I also tried this one:
| Code: |
dbk_initialize()
dbk_useKernelmodeOpenProcess()
dbk_useKernelmodeProcessMemoryAccess()
if getOpenedProcessID() then openProcess(getOpenedProcessID()) end |
But i couldn't see difference. And if i use this code:
| Code: |
dbk_initialize()
dbk_useKernelmodeOpenProcess()
dbk_useKernelmodeProcessMemoryAccess()
if getOpenedProcessID() then openProcess(getOpenedProcessID()) end
dbk_writesIgnoreWriteProtection(true) |
I have blue screen too.
|
|
| Back to top |
|
 |
|