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 


Character issue for Memscan!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1249

PostPosted: Thu Apr 13, 2023 5:09 pm    Post subject: Character issue for Memscan! Reply with quote

This scheme did not work. Zero results.
Probably the problem; "??" it could be.

Code:
bytes = "d0 30 d0 66 ?? ?? ?? 60 ?? ?? aa 48"
-- I took it short for the example, not the whole code.
ms.firstScan(soExactValue, vtByteArray, 0, bytes,"",0,0xffffffffffffffff,'+W*X-C', 0,'', true, false, false, false)

But this is working.
The problem is; There are 3 addresses and I need to repeat this. (11,12,13)
Code:
script10=(([[
[ENABLE]
Aobscan(_code1,d0 30 d0 66 ?? ?? ?? 60 ?? ?? aa 48)

_code1:
db d0 d0 30 25 90 4e 25 90 4e a2 48
[DISABLE]
]]));

autoAssemble(script10);



Memscan also "??" Can undefined character be used?

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Thu Apr 13, 2023 6:32 pm    Post subject: This post has 1 review(s) Reply with quote

"??" works fine.

The only difference is the protectionflags: '+W*X-C'. AA aobscan scans everything.

Maybe you're not waiting until it's done, you're not initializing the foundlist, or anything else you omitted. Or maybe the AoB didn't exist when you tried it (e.g. a script that changed it was already enabled)

Does a simple Lua AOBScan work?
Code:
local results = AOBScan('d0 30 d0 66 ?? ?? ?? 60 ?? ?? aa 48')

assert(results, "No results found")

for i = 0, results.Count do
  print(results[i])
end

results.destroy()

_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1249

PostPosted: Thu Apr 13, 2023 9:20 pm    Post subject: Reply with quote

Thanks @ParkourPenguin the flag you suggested works. +1

I was just testing the faster scan.
I tried various examples for AobScan.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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