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 


Random free memory addresses for storing specific values

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 173

PostPosted: Thu Jun 11, 2020 3:26 pm    Post subject: Random free memory addresses for storing specific values Reply with quote

I need to write a new value into memory that will be used in a function. Are there any rules that i should follow?

Let me see if i can explain better:

I have a bunch of colors references that i need my game to use in a function depending on the situation. So i need my game to register on random free addresses somewhere in its memory, the references for these colors, so that they can be called from a function.

Should i use a random free address? Those ones that are way below? And hope they will never be used by the game? How do i know that those addresses wont be overwritten or used by the game at some point?

Is this the correct way to do this?
Back to top
View user's profile Send private message
PtitSerpent
How do I cheat?
Reputation: 0

Joined: 17 Jun 2020
Posts: 9
Location: France, Normandy

PostPosted: Fri Jun 19, 2020 8:30 am    Post subject: Reply with quote

Sorry for this false hope, i haven't answers Embarassed
But this subject is interesting so I want to be there Razz
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 173

PostPosted: Sat Jun 20, 2020 11:02 am    Post subject: Reply with quote

Ok i will try to answer my own question. Or at least tell you what i know and what i have been doing, since moderators must be busy all the time with all our questions. And maybe they will confirm or disagree with me. Smile

From what i understood for now, you can use the chunks that are unused in the unexplored area. Just open it in IDA pro and look in the upper bar, the parts that are light green/olive color, that says Unexplored. Thats what i have been using and had no problems. I write the values i need to use or register there. Razz

https://i.ytimg.com/vi/PcRr17tGJfA/maxresdefault.jpg
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3327

PostPosted: Sat Jun 20, 2020 2:40 pm    Post subject: Reply with quote

CE can find code caves. You can use those caves to store vars, too.
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 173

PostPosted: Sun Jun 21, 2020 1:11 am    Post subject: Reply with quote

Smile That sounds more accurate and more "official". However i cant find any Code Caveman command in cheat engine. If there is any?

How do i do 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: Sun Jun 21, 2020 1:59 am    Post subject: Reply with quote

Code:

alloc(name,size, adresstoallocatenearby)
registersymbol(name)

_________________
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
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3327

PostPosted: Sun Jun 21, 2020 3:52 pm    Post subject: Reply with quote

LongBeardedLion wrote:
Smile That sounds more accurate and more "official". However i cant find any Code Caveman command in cheat engine. If there is any?

How do i do it?

It's in the Tools Menu, second from top.
Back to top
View user's profile Send private message
LongBeardedLion
Expert Cheater
Reputation: 0

Joined: 10 Apr 2020
Posts: 173

PostPosted: Mon Jun 22, 2020 6:35 am    Post subject: Reply with quote

Awesome. Found code caveman. Will be using it all the time now Smile
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