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 


Force unity code generation

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

Joined: 21 Apr 2020
Posts: 7

PostPosted: Tue Aug 13, 2024 10:47 pm    Post subject: Force unity code generation Reply with quote

Hi there, i was browsing the forum and come across a thread with someone replying there's a method to force unity code generation. So the aob scan could scan it without waiting for the value to change.

Could someone explain to me how to do it? Its quite tedious to get hit and then start ur code
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Aug 14, 2024 2:26 am    Post subject: Reply with quote

add
Code:

usemono()


to your script and then you can just use the classname.methodname: notation to refer to the mono code. It will compile it for you

_________________
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


Last edited by Dark Byte on Wed Aug 14, 2024 2:17 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3327

PostPosted: Wed Aug 14, 2024 1:38 pm    Post subject: This post has 1 review(s) Reply with quote

Try
Code:
mono_compile_method(mono_getJitInfo(getAddress('Class:Method')).method)

This should generate the code.
Back to top
View user's profile Send private message
Endog4
How do I cheat?
Reputation: 0

Joined: 21 Apr 2020
Posts: 7

PostPosted: Wed Aug 14, 2024 9:00 pm    Post subject: Reply with quote

Sorry, could you explain it more where i should insert it?

Code:

[ENABLE]
aobscan(EXP,F3 0F 11 28 33 C0 44) // should be unique
alloc(newmem,$1000,EXP)

label(code)
label(return)

newmem:
  cmp [rax],0
  jle code
  comiss xmm5,[rax]
  jle code
  subss xmm5,[rax]
  mulss xmm5,[kaliZ]
  addss xmm5,[rax]
code:
  movss [rax],xmm5
  xor eax,eax
  jmp return
kaliZ:
  dd (float)4.0
EXP:
  jmp newmem
  nop
return:
registersymbol(EXP)

[DISABLE]

EXP:
  db F3 0F 11 28 33 C0

unregistersymbol(EXP)
dealloc(newmem)


this is my code, i try to cheat Sun Haven btw. this code is use to multiply it exp gain. it works but i need to gain exp first then active it.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Thu Aug 15, 2024 12:40 am    Post subject: Reply with quote

activate mono features and then go to the address. Look at the name there and use that instead of EXP

at the start (after [enable]) have usemono() so it makes sure mono features are enabled

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

Joined: 21 Apr 2020
Posts: 7

PostPosted: Thu Aug 15, 2024 8:31 pm    Post subject: Reply with quote

Thanks a lot dark byte i figure it out, basically i just rewrite the code with mono enabled and it auto scan itself
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