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 


aobscan Is there a way to read all address values?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
sss932
Newbie cheater
Reputation: 0

Joined: 18 Jul 2024
Posts: 16

PostPosted: Wed Jul 24, 2024 4:40 am    Post subject: Reply with quote

The code you provided doesn't return any values.
Is it possible to read all values ​​1 to 5 with Lua?
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1533

PostPosted: Wed Jul 24, 2024 5:02 am    Post subject: Reply with quote

Ahh, this probably should have been done with your scanning code that found 5 results.
I should look at the code you first scanned.

The code below scans the given aob code and saves the results in a table and prints them.

Code:
function multiAOB(from)
resultAddr = {}
  local aob = AOBScan(tostring(from))
  if (aob == nil) then
    showMessage("Code not found!")
  else
    for i=0,aob.Count-1 do
       local address=stringlist_getString(aob,i)
          resultAddr[#resultAddr + 1] = address
    end
    aob.Destroy()
  end
  return resultAddr
end

local search = "00 00 80 41 00 00 00 00" -- your search code
local addrTbl = multiAOB(search)

  for n,addr in pairs(addrTbl) do
    print("Addres: "..addr.." --> Value: "..readFloat(addr))
  end

_________________
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
sss932
Newbie cheater
Reputation: 0

Joined: 18 Jul 2024
Posts: 16

PostPosted: Wed Jul 24, 2024 5:33 am    Post subject: Reply with quote

If I use all the codes you gave me, how can I fix it?

What I want to do is, when I click on the script that was written, all 5 codes are used, so that the values ​​are automatically filled in without having to check "PositionBase" or "포지션" that is marked in red...



324523454532.png
 Description:
 Filesize:  76.3 KB
 Viewed:  1997 Time(s)

324523454532.png




Last edited by sss932 on Wed Jul 24, 2024 5:48 am; edited 2 times in total
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1533

PostPosted: Wed Jul 24, 2024 5:46 am    Post subject: Reply with quote

You wanted to read the results of 5 scan codes.
I've provided you with lua code that reads the results, prints them.
Put your own scan code in the > local search = "" < section and run the code.

Maybe you want to read a specific byte of these results.

I'm having trouble understanding exactly what you want. Smile

Maybe you can watch the CE "PointerScan" videos and create a unique code and use it in the aa script.

_________________
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
sss932
Newbie cheater
Reputation: 0

Joined: 18 Jul 2024
Posts: 16

PostPosted: Wed Jul 24, 2024 5:55 am    Post subject: Reply with quote

Sorry for the lack of communication...

What I want to do is, when I click on the script that was written, all 5 codes are used, so that the values ​​are automatically filled in without having to check "PositionBase" or "포지션" that is marked in red...
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1533

PostPosted: Wed Jul 24, 2024 6:39 am    Post subject: Reply with quote

For this reason, I wanted you to have a unique aob code.
This would allow you to continue with the correct and single result.

What is your scan code that produces 5 results?
Please send it.

_________________
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
sss932
Newbie cheater
Reputation: 0

Joined: 18 Jul 2024
Posts: 16

PostPosted: Wed Jul 24, 2024 6:41 am    Post subject: Reply with quote

9A 19 47 43 9A 19 47 43 00 00 00 00 00 00 00 00 00 00 00


This is the aob code that generated 5 results.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1533

PostPosted: Wed Jul 24, 2024 7:54 am    Post subject: Reply with quote

Code:
function crtScrpt(addr,name)
local mr = getAddressList().createMemoryRecord()
mr.Type = vtAutoAssembler
scrpt = ([==[[ENABLE] ]==]..[==[


define(]==]..name..[==[, ]==]..addr..[==[)]==]..[==[

registersymbol(]==]..name..[==[)]==]..[==[


[DISABLE]]==]..[==[

unregistersymbol(]==]..name..[==[)]==])
mr.Script = scrpt
mr.Description = name
end

function multiAOB(from)
resultAddr = {}
  local aob = AOBScan(tostring(from))
  if (aob == nil) then
    showMessage("Code not found!")
  else
    for i=0,aob.Count-1 do
       local address=stringlist_getString(aob,i)
          resultAddr[#resultAddr + 1] = address
    end
    aob.Destroy()
  end
  return resultAddr
end

local search = "9A 19 47 43 9A 19 47 43 00 00 00 00 00 00 00 00 00 00 00"
local addrTbl = multiAOB(search)

  for n,addr in pairs(addrTbl) do
    --print("Addres: "..addr.." --> Value: "..readFloat(addr))
    name = "PositionBase"..n
    crtScrpt(addr,name)
  end


This code will take all the scan results and give you a script output for each result that looks like this;

Code:
[ENABLE]

define(PositionBase1, 23411E80860)
registersymbol(PositionBase1)

[DISABLE]
unregistersymbol(PositionBase1)

_________________
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
sss932
Newbie cheater
Reputation: 0

Joined: 18 Jul 2024
Posts: 16

PostPosted: Wed Jul 24, 2024 12:34 pm    Post subject: Reply with quote

Is there a way to change PositionBase for multiple addresses at once?


13241242.png
 Description:
 Filesize:  14.53 KB
 Viewed:  1915 Time(s)

13241242.png


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
Goto page Previous  1, 2
Page 2 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