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 


Make an Address for Every nth Offset

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

Joined: 18 Dec 2018
Posts: 1

PostPosted: Tue Dec 18, 2018 11:02 am    Post subject: Make an Address for Every nth Offset Reply with quote

Well, I've done this already in JavaScript by copying all the addresses out and then making more using the XMLish-looking code, <CheatEntry> and so forth but anyhow, it took way too long.

I have two questions: Using 'Add Offset' on the 'Change address' window ruins everything, why? You hit Add Offset, you put in, you know, D50, and, why will the entire address be ruined?

So, I've got a lot of pointerscan results, OK? Well, for the game I'm using, I want to create a lot more values, for each monster's HP value. In memory, each monster's HP is stored 0xD50 after the previous one. I want to add 0xD50 (Hex D50, decimal 3408). I would have around a hundred values with each one being D50 bigger than the last one.
Can anybody share a possible way of getting this sort of thing done?


If you had an array of 100 addresses, you could use this in C#:
for (i = 0; i < 100; i++;) {
addr[i] = addr[(i-1)] + 0xD50;
}
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Tue Dec 18, 2018 12:38 pm    Post subject: Reply with quote

in a simple form:
what is your problem, what things you tried to do?

you asked a question and answered it as well, so what are you trying to say?
also what do you mean with "ruined"

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4697

PostPosted: Tue Dec 18, 2018 3:32 pm    Post subject: Reply with quote

Sim wrote:
I have two questions: Using 'Add Offset' on the 'Change address' window ruins everything, why?
That's because it's for pointers. Try the tutorial before you start using CE.

TLDR: use Lua. There's plenty of examples on these forums.
Code:
for i = 1, 10 do
  local mr = AddressList.createMemoryRecord()
  mr.Description = ('whatever %02d'):format(i)
  mr.Type = vtDword
  mr.Address = 'game.exe+1234'
  mr.OffsetCount = 3
  mr.Offset[2] = 0x124
  mr.Offset[1] = 0x3c
  mr.Offset[0] = i * 0xd50
end

_________________
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
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Tue Dec 18, 2018 4:12 pm    Post subject: Reply with quote

Smart Edit Address
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