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 


adding multiple address ?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
bachou
Expert Cheater
Reputation: 0

Joined: 02 Feb 2015
Posts: 136

PostPosted: Mon Sep 14, 2015 1:13 am    Post subject: adding multiple address ? Reply with quote

guys let's say i have this address : 00000004 and i want to add next +4 multiple adress like 00000008, 0000000C or 00000010...

is there a way to make it faster not doing it manual ?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Mon Sep 14, 2015 1:14 am    Post subject: Reply with quote

Probably with LUA.

Wait for someone with lua expertise to post here.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
bachou
Expert Cheater
Reputation: 0

Joined: 02 Feb 2015
Posts: 136

PostPosted: Mon Sep 14, 2015 1:21 am    Post subject: Reply with quote

here is an example screenshot


ex.JPG
 Description:
 Filesize:  20.26 KB
 Viewed:  22922 Time(s)

ex.JPG


Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Mon Sep 14, 2015 6:04 am    Post subject: Reply with quote

Could do a loop.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Mon Sep 14, 2015 2:21 pm    Post subject: Reply with quote

This should do the trick:
Code:
function addMoreAddresses(baseAddress, num, step)
  local al = getAddressList()
  baseAddress = tonumber(baseAddress,16)

  for i=0,num-1 do
    local rec = al.createMemoryRecord()
    rec.setAddress(string.format("%X",baseAddress+step*i))
    rec.setDescription(i)
  end
end

The first parameter is a string of the starting address, the second is how many addresses you want to add (including the starting one), and the third is how much you want to increment each of them by.

For example, if I put addMoreAddresses("0070ACDC",7,4), it would list all the addresses from 0070ACDC to 0070ACF4 (inclusive) with all the addresses being 4 bytes apart from each other.

_________________
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
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Sep 14, 2015 5:33 pm    Post subject: This post has 1 review(s) Reply with quote

Changed it up a bit because I like to be different.
This will create a root address and all its children will derive their address from it.
So if you simply change the first entry's address, all children will update too.
Code:
function addMoreAddresses(baseAddress, num, step)
  local al = getAddressList()

  local base = al.createMemoryRecord()
  base.setAddress(baseAddress)
  base.setDescription("Base Address")
  base.Type = vtString
  base.String.Size = 0

  for i=0, num-1 do
    local rec = al.createMemoryRecord()
    local str = string.format("+%X", i * step)
    rec.setAddress(str)
    rec.setDescription(str)
    rec.appendToEntry(base)
  end
end

addMoreAddresses("002C083C", 10, 4)
Back to top
View user's profile Send private message
bachou
Expert Cheater
Reputation: 0

Joined: 02 Feb 2015
Posts: 136

PostPosted: Fri Sep 18, 2015 9:48 pm    Post subject: Reply with quote

thanks a lot Laughing it works
i wonder how people can learn these script ... it's like alien language to me
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
mdthr
How do I cheat?
Reputation: 13

Joined: 05 Aug 2014
Posts: 0

PostPosted: Thu Sep 24, 2015 1:26 pm    Post subject: Reply with quote

i've definitely seen UCE's where this was possible.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Affly
Cheater
Reputation: 1

Joined: 29 Sep 2013
Posts: 42

PostPosted: Sat Oct 17, 2015 3:26 am    Post subject: Reply with quote

Can the script be adjusted so it changes the offset of a pointer? I have a pointer to the first adress in a series of 50 and want to add them all quickly.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Oct 17, 2015 7:06 am    Post subject: Reply with quote

Change as needed.
Code:
local al = getAddressList()
...
local rec = al.createMemoryRecord()
rec.setAddress("00000000")
rec.setOffsetCount(3)
rec.setOffset(0, 0x10)
rec.setOffset(1, 0x20)
rec.setOffset(2, 0x30)
Back to top
View user's profile Send private message
Affly
Cheater
Reputation: 1

Joined: 29 Sep 2013
Posts: 42

PostPosted: Sat Oct 17, 2015 7:27 am    Post subject: Reply with quote

Thanks, works perfectly.
Back to top
View user's profile Send private message
bachou
Expert Cheater
Reputation: 0

Joined: 02 Feb 2015
Posts: 136

PostPosted: Sun Nov 01, 2015 5:20 am    Post subject: Reply with quote

sorry for bump but i got another question

let's say i have a few addresses like this

00000001 value 0
00000002 value 0
00000003 value 0
00000004 value 0
00000005 value 0
00000006 value 0
....

all the value is 0, i want to change their value by +1 starting from 00000001 so it will become like this

00000001 value 12
00000002 value 13
00000003 value 14
00000004 value 15
00000005 value 16
00000006 value 17


...

is there a quick way to do this ? because doing this manually is tiring...
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Nov 01, 2015 6:46 am    Post subject: Reply with quote

Assuming you want to update every address in your table...
Code:
local al = getAddressList()
for i = 0, al.Count - 1 do
  local mem = al.MemoryRecord[i]
  mem.Value = 12 + i
end
Back to top
View user's profile Send private message
bachou
Expert Cheater
Reputation: 0

Joined: 02 Feb 2015
Posts: 136

PostPosted: Mon Nov 02, 2015 3:23 am    Post subject: Reply with quote

if i use your script it changes everything on my table, i only want to change the value from slot 424 onward

like this

slot 424 value 2101
slot 425 value 2102
slot 426 value 2103
slot 427 value 2104
...

how to do that ?



sllot.JPG
 Description:
 Filesize:  104.52 KB
 Viewed:  21853 Time(s)

sllot.JPG


Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Nov 02, 2015 7:50 am    Post subject: Reply with quote

Code:
local al = getAddressList()
local change = false
for i = 0, al.Count - 1 do
  local mem = al.MemoryRecord[i]
  if mem.Description == "Slot 424" then
    change = true
  end
  if change then
    mem.Value = 12 + i
  end
end
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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