View previous topic :: View next topic |
Author |
Message |
bknight2602 Grandmaster Cheater Reputation: 0
Joined: 08 Oct 2012 Posts: 577
|
Posted: Sat Apr 09, 2022 12:00 pm Post subject: finding/printing addresslist |
|
|
I've got a bug in one of my codes setting an address to some 0(probably). I'm looking at the CE LUA descriptions and I find
getAddress() : integer - (integer, table)
I attempted many variations of this using the debug window
Code: |
al = getAddressList()
for i = 1,al.Count-1 do
x=getAddress(al,i)
print(al.Count .. " " .. x)
end
|
All these attempts have failed with either a nil value for x or :Failure determining what means.
What the proper code for listing the addresses?
|
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Sat Apr 09, 2022 12:23 pm Post subject: |
|
|
Code: |
for i = 0, AddressList.Count - 1 do
print('The value of address [' .. AddressList.getMemoryRecord(i).Address .. '] is '.. AddressList.getMemoryRecord(i).Value)
end
|
|
|
Back to top |
|
|
bknight2602 Grandmaster Cheater Reputation: 0
Joined: 08 Oct 2012 Posts: 577
|
Posted: Sat Apr 09, 2022 1:22 pm Post subject: |
|
|
I wasn't necessarily looking for the values, but thanks for both.
|
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Sat Apr 09, 2022 1:38 pm Post subject: |
|
|
bknight2602 wrote: | I wasn't necessarily looking for the values, but thanks for both. |
You can delete what isn't required. I included it for brevity.
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1253
|
Posted: Sat Apr 09, 2022 2:23 pm Post subject: |
|
|
bknight2602 wrote: | I wasn't necessarily looking for the values, but thanks for both. |
This is just a suggestion.
Sometimes appreciating help is like a thank you.
Simply click the thumbs up under the helpful person's profile picture and leave a reputation comment.
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
|
Back to top |
|
|
|