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 


[Question] Transfer Value (Pointer 1 to Pointer 2)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
dny4pvp
Newbie cheater
Reputation: 0

Joined: 01 Aug 2022
Posts: 10

PostPosted: Fri Aug 16, 2024 5:58 am    Post subject: [Question] Transfer Value (Pointer 1 to Pointer 2) Reply with quote

Hello, today I am faced with a small problem that I absolutely cannot handle alone, and I want your help because I am sure that most of you are competent and understand my frustration of several hours of torment.
In the first phase, let me briefly explain, I want to auto-transfer the value of pointer 1 to pointer 2 through a LUA or Auto-Assembly script.

This is the picture with the cheat table showing POINTER 1 and POINTER 2
I specify that after each restart of the application the values ​​are different from those in (Value)

This picture is from the first pointer, including offsets, I specify that the values ​​on the right side change the same after every restart of the application

And the last picture is from pointer 2

I want to link to something from the pictures, I don't want a debugger or other complications. Do you think there is something that can help me?
You are definitely wonderful people to understand everything.

Thank you very much, I am waiting for some advice from you.

P.S : Do you understand the order of the pictures, because I saw that [img] with the link does not work.



pointer2.jpg
 Description:
 Filesize:  57.1 KB
 Viewed:  2212 Time(s)

pointer2.jpg



pointer1.jpg
 Description:
 Filesize:  62.87 KB
 Viewed:  2212 Time(s)

pointer1.jpg



cheattable.jpg
 Description:
 Filesize:  21.99 KB
 Viewed:  2212 Time(s)

cheattable.jpg


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

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

PostPosted: Fri Aug 16, 2024 6:23 am    Post subject: Reply with quote

freeze "Copy Here" and then change it's value to
Code:

(Base Address)


in lua it'd be something like:
Code:

AddressList['Copy Here'].Active=true
AddressList['Copy Here'].Value='(Base Address)'

_________________
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
Emya
Newbie cheater
Reputation: 0

Joined: 28 Jul 2024
Posts: 14

PostPosted: Fri Aug 16, 2024 9:35 am    Post subject: asm Reply with quote

push eax
push esi
mov eax,[Pegasus2.exe+01384C8C]
mov esi,eax
mov eax,[eax+B0]
mov eax,[eax+08]
mov eax,[eax+04]
mov eax,[eax+00]
mov eax,[eax+14]
mov eax,[eax+08]

mov esi,[esi+9C]
mov esi,[esi+08]
mov esi,[esi+04]
mov esi,[esi+08]
mov esi,[esi+00]
mov esi,[esi+14]
mov [esi+08],eax
pop esi
pop eax
Code:
Back to top
View user's profile Send private message Send e-mail
dny4pvp
Newbie cheater
Reputation: 0

Joined: 01 Aug 2022
Posts: 10

PostPosted: Fri Aug 16, 2024 12:34 pm    Post subject: Reply with quote

So instead of the base address, I put the address from the pointer with the offsets?

Dark Byte wrote:
freeze "Copy Here" and then change it's value to
Code:

(Base Address)


in lua it'd be something like:
Code:

AddressList['Copy Here'].Active=true
AddressList['Copy Here'].Value='(Base Address)'
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Fri Aug 16, 2024 12:40 pm    Post subject: Reply with quote

dny4pvp wrote:
So instead of the base address, I put the address from the pointer with the offsets?
No, Base Address is the description of the other memory record
_________________
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
dny4pvp
Newbie cheater
Reputation: 0

Joined: 01 Aug 2022
Posts: 10

PostPosted: Fri Aug 16, 2024 8:07 pm    Post subject: Reply with quote

The only version that works is that of DarkByte with LUA, do you think I still have a chance to hope for auto-assembly? Thank you very much for your help and sorry for the trouble!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Fri Aug 16, 2024 9:19 pm    Post subject: Reply with quote

If you want a script you can toggle on/off, you can use Lua in AA:
Code:
{$lua}
if syntaxcheck then return end

local m = AddressList["Pointer 2"]

[ENABLE]
m.Active = true
m.Value = "(Pointer 1)"

[DISABLE]
m.Active = false


If you don't want to use Lua, why? You could create a thread in the target process, but that seems like more work than it's worth
Here's a basic template of how to use createthread in AA:
https://forum.cheatengine.org/viewtopic.php?t=619046

_________________
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