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 


This instruction can't be compiled[error]

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

Joined: 27 Jun 2018
Posts: 2
Location: Moldova

PostPosted: Wed Jun 27, 2018 11:49 pm    Post subject: This instruction can't be compiled[error] Reply with quote

All right I was trying to make a simple script That will dupe my items while selling them but seems like Cheat engine can't process the game's instruction
Code:
dec [eax*8+recettear.exe+6F1F59C]

I don't know if it is a bug or just the game addresses more complex than usual, so I wanted to ask if there is any way to do what I want with this code.
Code:
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
dec [eax*8+recettear.exe+6F1F59C]

exit:
jmp returnhere

"recettear.exe"+69077:
jmp newmem
nop
nop
returnhere:


Hope I described my problem properly.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Thu Jun 28, 2018 12:55 am    Post subject: Reply with quote

seems to be incorrect disassembly.
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Jun 28, 2018 2:14 am    Post subject: Reply with quote

Is it a 64-bit target ?
If so, you may have to do alloc(newmem,2048,recettear.exe)

_________________
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
CuriousOne
How do I cheat?
Reputation: 0

Joined: 27 Jun 2018
Posts: 2
Location: Moldova

PostPosted: Thu Jun 28, 2018 1:26 pm    Post subject: Reply with quote

Oh yes it is a 64-bit target, so I solved it but I had to do the alloc(newmem,2048,recettear.exe) part
and also put the recettear.exe between "" like this
dec [eax*8+"recettear.exe"+6F1F59C]

So, thank you for help.

_________________
Teach me how to cheat properly
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