Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Not all instructions could be injected

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
grefle
How do I cheat?
Reputation: 0

Joined: 20 Jan 2024
Posts: 3

PostPosted: Sat Jan 20, 2024 5:04 pm    Post subject: Not all instructions could be injected Reply with quote

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! Crying or Very sad

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25835
Location: The netherlands

PostPosted: Sat Jan 20, 2024 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
grefle
How do I cheat?
Reputation: 0

Joined: 20 Jan 2024
Posts: 3

PostPosted: Sat Jan 20, 2024 5:12 pm    Post subject: Reply with quote

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. Crying or Very sad
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



3.png
 Description:
 Filesize:  68.67 KB
 Viewed:  3240 Time(s)

3.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25835
Location: The netherlands

PostPosted: Sun Jan 21, 2024 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
grefle
How do I cheat?
Reputation: 0

Joined: 20 Jan 2024
Posts: 3

PostPosted: Sun Jan 21, 2024 2:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites