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 


Copy Thread.. What am i doing wrong

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

Joined: 04 Aug 2021
Posts: 2

PostPosted: Wed Aug 04, 2021 2:26 pm    Post subject: Copy Thread.. What am i doing wrong Reply with quote

So i have 4 pointers..
p_playerbase offset 2148 <--- Copy 1 Value
p_playerbaseP2 offset 2148 <-- Paste 1 Value
p_playerbase offset 2150 <---Copy 2 Value
p_playerbaseP2 offset 2150 <--Paste 2 Value

Here is my thread code.. It copies just fine.. the issue is the game crash's 2 seconds after the copy? Ive tried everything i can think of to fix this. Hoping someone can work this out.

[ENABLE]
globalalloc(copycos,4096)
createthread(copycos)
label(Ccosmetics)
label(Pcosmetics)
label(Cvalue)
label(Pvalue)
registersymbol(Ccosmetics)
registersymbol(Pcosmetics)
registersymbol(Cvalue)
registersymbol(Pvalue)
[p_playerbase]+2148:
Ccosmetics:
[p_playerbaseP2]+2148:
Pcosmetics:
[p_playerbase]+2150:
Cvalue:
[p_playerbaseP2]+2150:
Pvalue:

copycos:
push eax
mov eax,[Ccosmetics]
mov [Pcosmetics],eax
mov eax,[Cvalue]
mov [Pvalue],eax
pop eax
ret
[DISABLE]

unregistersymbol(Ccosmetics)
unregistersymbol(Pcosmetics)
unregistersymbol(Cvalue)
unregistersymbol(Pvalue)


If you have a better way to auto copy a value to another value im all ears as well.. Just know im fairly new to all this and still learning. So please try to keep it simple Smile
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: Wed Aug 04, 2021 2:33 pm    Post subject: Reply with quote

just use cheat engine to copy either using lua, or using memory records and freeze record1 to the value of record2
_________________
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
kraqur1
How do I cheat?
Reputation: 0

Joined: 04 Aug 2021
Posts: 2

PostPosted: Wed Aug 04, 2021 2:39 pm    Post subject: Reply with quote

Dark Byte wrote:
just use cheat engine to copy either using lua, or using memory records and freeze record1 to the value of record2


So i can copy and paste the values manually with no issue.. but im trying to find a way to have cheat engine auto copy the values once checked. I have a bunch of them i need them to copy and it will have to be done every time the game is booted. So i was hoping to make a script to copy all the values with one click.

I dont know anything about LUA yet.. im still working on learning assembly. any chance you have a copy paste script example i can work off of?

Also thank you for the quick response.. Its an honor to have you of all people reply to my poste Smile
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Wed Aug 04, 2021 4:09 pm    Post subject: Reply with quote

Code:
writeInteger(address1, readInteger(address2))

_________________
Back to top
View user's profile Send private message Visit poster's website
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