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 


Use results of method in Mono as record

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

Joined: 11 Sep 2022
Posts: 3

PostPosted: Sun Sep 11, 2022 4:38 am    Post subject: Use results of method in Mono as record Reply with quote

Hi,
I found some interesting methods in a Unity-based game. Can I use the output of it as record? Or is there anyway to check where's that function writing to?
P/s: The option "Find out where the instruction is writing to" didn't work. It didn't show anything, although it should be something access that function and the instructions.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4291

PostPosted: Sun Sep 11, 2022 11:07 am    Post subject: Reply with quote

If you mean "Find out what addresses this instruction accesses", that only works for a single instruction (not a whole function) and only populates the list when the instruction is actually run (you may need to do something in game for that to happen)

You could do a code injection at the end of the function and use {$luacode} and `synchronize` to add a memory record to the address list.
https://forum.cheatengine.org/viewtopic.php?t=618134

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
vohai2003
How do I cheat?
Reputation: 0

Joined: 11 Sep 2022
Posts: 3

PostPosted: Mon Sep 12, 2022 2:31 am    Post subject: Reply with quote

ParkourPenguin wrote:
If you mean "Find out what addresses this instruction accesses", that only works for a single instruction (not a whole function) and only populates the list when the instruction is actually run (you may need to do something in game for that to happen)

You could do a code injection at the end of the function and use {$luacode} and `synchronize` to add a memory record to the address list.

I think I did sth wrong but I dont know which one.



image_2022-09-12_153045829.png
 Description:
 Filesize:  170.58 KB
 Viewed:  747 Time(s)

image_2022-09-12_153045829.png


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

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

PostPosted: Mon Sep 12, 2022 2:49 am    Post subject: Reply with quote

remove the spaces in front of {$luacode} and {$asm}

and put it under newmem:

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

Joined: 11 Sep 2022
Posts: 3

PostPosted: Mon Sep 12, 2022 4:24 am    Post subject: Reply with quote

Uhhhhhhh what did I miss here...?


image_2022-09-12_172429263.png
 Description:
 Filesize:  201.71 KB
 Viewed:  725 Time(s)

image_2022-09-12_172429263.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4291

PostPosted: Mon Sep 12, 2022 10:14 am    Post subject: Reply with quote

The game needs to run the code for that code to do anything. (e.g. if the original instruction gets executed only when you press a button, you need to press the button to run your code)

Also, make sure the injection point is jumping to newmem and not code.

That aside, you're interested in rsp? The stack pointer? You're almost certainly doing something wrong here.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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