| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| bachou Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 02 Feb 2015
 Posts: 136
 
 
 | 
			
				|  Posted: Mon Sep 14, 2015 1:13 am    Post subject: adding multiple address ? |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| STN I post too much
 
  Reputation: 43 
 Joined: 09 Nov 2005
 Posts: 2676
 
 
 | 
			
				|  Posted: Mon Sep 14, 2015 1:14 am    Post subject: |   |  
				| 
 |  
				| Probably with LUA. 
 Wait for someone with lua expertise to post here.
 _________________
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| bachou Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 02 Feb 2015
 Posts: 136
 
 
 | 
			
				|  Posted: Mon Sep 14, 2015 1:21 am    Post subject: |   |  
				| 
 |  
				| here is an example screenshot 
 
 
 
	
		
	 
		| Description: |  |  
		| Filesize: | 20.26 KB |  
		| Viewed: | 26142 Time(s) |  
		| 
  
 
 |  
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| deama1234 Master Cheater
 
 ![]() Reputation: 3 
 Joined: 20 Dec 2014
 Posts: 328
 
 
 | 
			
				|  Posted: Mon Sep 14, 2015 6:04 am    Post subject: |   |  
				| 
 |  
				| Could do a loop. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| ParkourPenguin I post too much
 
  Reputation: 152 
 Joined: 06 Jul 2014
 Posts: 4706
 
 
 | 
			
				|  Posted: Mon Sep 14, 2015 2:21 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Zanzer I post too much
 
 ![]() Reputation: 126 
 Joined: 09 Jun 2013
 Posts: 3278
 
 
 | 
			
				|  Posted: Mon Sep 14, 2015 5:33 pm    Post subject: |     |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| bachou Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 02 Feb 2015
 Posts: 136
 
 
 | 
			
				|  Posted: Fri Sep 18, 2015 9:48 pm    Post subject: |   |  
				| 
 |  
				| thanks a lot  it works i wonder how people can learn these script ... it's like alien language to me
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| finnegan waking up How do I cheat?
 
  Reputation: 13 
 Joined: 05 Aug 2014
 Posts: 0
 
 
 | 
			
				|  Posted: Thu Sep 24, 2015 1:26 pm    Post subject: |   |  
				| 
 |  
				| i've definitely seen UCE's where this was possible. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Affly Cheater
 
 ![]() Reputation: 1 
 Joined: 29 Sep 2013
 Posts: 42
 
 
 | 
			
				|  Posted: Sat Oct 17, 2015 3:26 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Zanzer I post too much
 
 ![]() Reputation: 126 
 Joined: 09 Jun 2013
 Posts: 3278
 
 
 | 
			
				|  Posted: Sat Oct 17, 2015 7:06 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Affly Cheater
 
 ![]() Reputation: 1 
 Joined: 29 Sep 2013
 Posts: 42
 
 
 | 
			
				|  Posted: Sat Oct 17, 2015 7:27 am    Post subject: |   |  
				| 
 |  
				| Thanks, works perfectly. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| bachou Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 02 Feb 2015
 Posts: 136
 
 
 | 
			
				|  Posted: Sun Nov 01, 2015 5:20 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Zanzer I post too much
 
 ![]() Reputation: 126 
 Joined: 09 Jun 2013
 Posts: 3278
 
 
 | 
			
				|  Posted: Sun Nov 01, 2015 6:46 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| bachou Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 02 Feb 2015
 Posts: 136
 
 
 | 
			
				|  Posted: Mon Nov 02, 2015 3:23 am    Post subject: |   |  
				| 
 |  
				| 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 ?
 
 
 
 
	
		
	 
		| Description: |  |  
		| Filesize: | 104.52 KB |  
		| Viewed: | 25073 Time(s) |  
		| 
  
 
 |  
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Zanzer I post too much
 
 ![]() Reputation: 126 
 Joined: 09 Jun 2013
 Posts: 3278
 
 
 | 
			
				|  Posted: Mon Nov 02, 2015 7:50 am    Post subject: |   |  
				| 
 |  
				|  	  | 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 |  | 
	
		|  | 
	
		|  |