| 
			
				|  | Cheat Engine The Official Site of Cheat Engine
 
 
 |  
 
	
		| View previous topic :: View next topic |  
		| Author | Message |  
		| Frouk Grandmaster Cheater
 
 ![]() Reputation: 5 
 Joined: 22 Jun 2021
 Posts: 512
 
 
 | 
			
				|  Posted: Thu Jul 03, 2025 1:17 pm    Post subject: Memory Scan doesn't return when it's vtByteArray? |   |  
				| 
 |  
				|  	  | Code: |  	  | ms.firstScan(soExactValue, vtByteArray, nil, AOB, '', startAddress, endAddress, "", fsmNotAligned, "1", true, false, false, false) | 
 
 I've checked the docs, but it still doesn't find any result, searching the AOB manually finds it
 Yes, I've created foundlist for memscan
 Yes, I'm using 'waitTillDone' method for waiting for the results
 |  |  
		| Back to top |  |  
		|  |  
		| ParkourPenguin I post too much
 
  Reputation: 152 
 Joined: 06 Jul 2014
 Posts: 4706
 
 
 | 
			
				|  Posted: Thu Jul 03, 2025 1:54 pm    Post subject: |   |  
				| 
 |  
				| Rounding type should be something (e.g. rtRounded), not nil. It doesn't matter if it's not relevant for a vtByteArray scan- argument parsing by CE might not expect a nil value. 
 protection flags is an empty string. I don't know what the default is, but it should be explicitly specified.
 
 Could always be something else not included in what you posted. A complete example is always appreciated.
 _________________
 
 I don't know where I'm going, but I'll figure it out when I get there. |  |  
		| Back to top |  |  
		|  |  
		| Frouk Grandmaster Cheater
 
 ![]() Reputation: 5 
 Joined: 22 Jun 2021
 Posts: 512
 
 
 | 
			
				|  Posted: Fri Jul 04, 2025 4:46 am    Post subject: |   |  
				| 
 |  
				| it still cannot find anything even after putting rtRounded, the start address and end address are valid, as they indicate the module start and end addresses 
 Leaving protection flags indicates that it will search anything, as documented in celua.txt:
  	  | Code: |  	  | protectionflags is a string. X=Executable W=Writable memory C=Copy On Write. Add a + to indicate that flag MUST be set and a - to indicate that that flag MUST NOT be set. (* sets it to don't care)
 Examples:
 +W-C = Writable memory exluding copy on write and doesn't care about the Executable flag
 +X-C-W = Find readonly executable memory
 +W = Finds all writable memory and don't care about copy on write or execute
 "" = Find everything (is the same as "*X*C*W" )
 | 
 |  |  
		| Back to top |  |  
		|  |  
		| AylinCE Grandmaster Cheater Supreme
 
  Reputation: 37 
 Joined: 16 Feb 2017
 Posts: 1527
 
 
 | 
			
				|  Posted: Fri Jul 04, 2025 5:59 am    Post subject: |   |  
				| 
 |  
				|  	  | Code: |  	  | straddr = "299F0164E90" --3E 83 04 10 27 00 00 1A 59 83 04 01 00 00 00 21 18 endaddr = "299F0164EA0" --18
 aob     = "10 27 00 00 1A 59 83 04 01 00 00 00 21"
 
 dh=createMemScan()
 dh.firstScan(soExactValue,vtByteArray,rtTruncated, aob, "", straddr, endaddr, "", fsmNotAligned, "", true, false, false, false)
 dh.waitTillDone()
 fl=createFoundList(dh)
 fl.initialize()
 local count=foundlist_getCount(fl)
 if (count>0) then
 for i=0, count -1 do
 local newaddr=fl.Address[i]
 print(newaddr)
 end
 end
 fl.destroy()
 dh.destroy()
 
 -- result count: 1
 -- result addr : 299F0164E93
 | 
 _________________
 
 |  |  
		| Back to top |  |  
		|  |  
		| Frouk Grandmaster Cheater
 
 ![]() Reputation: 5 
 Joined: 22 Jun 2021
 Posts: 512
 
 
 | 
			
				|  Posted: Fri Jul 04, 2025 7:22 am    Post subject: |   |  
				| 
 |  
				|  	  | AylinCE wrote: |  	  |  	  | Code: |  	  | straddr = "299F0164E90" --3E 83 04 10 27 00 00 1A 59 83 04 01 00 00 00 21 18 endaddr = "299F0164EA0" --18
 aob     = "10 27 00 00 1A 59 83 04 01 00 00 00 21"
 
 dh=createMemScan()
 dh.firstScan(soExactValue,vtByteArray,rtTruncated, aob, "", straddr, endaddr, "", fsmNotAligned, "", true, false, false, false)
 dh.waitTillDone()
 fl=createFoundList(dh)
 fl.initialize()
 local count=foundlist_getCount(fl)
 if (count>0) then
 for i=0, count -1 do
 local newaddr=fl.Address[i]
 print(newaddr)
 end
 end
 fl.destroy()
 dh.destroy()
 
 -- result count: 1
 -- result addr : 299F0164E93
 | 
 | 
 
 creating a found list after searching fixed the issue, I'm grateful for that
 |  |  
		| Back to top |  |  
		|  |  
		|  |  
  
	| 
 
 | 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
 
 |  |