Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <CheatTable>
- <CheatEntries>
- <CheatEntry>
- <ID>415324</ID>
- <Description>"PCSX2 1.7.0+ Print FULL address"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>[ENABLE]
- {$lua}
- for i = 0, getAddressList().Count - 1 do
- local record = getAddressList().getMemoryRecord(i)
- local address = record.Address
- local trimmed = string.sub(address, 6) -- Ignore 1st to 6th Character
- print(trimmed)
- end
- getMemoryRecordByID(memrec.ID).Active = false
- [DISABLE]
- {$asm}
- </AssemblerScript>
- </CheatEntry>
- <CheatEntry>
- <ID>415321</ID>
- <Description>"PCSX2 all ver. Print RAW address"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>[ENABLE]
- {$lua}
- for i = 0, getAddressList().Count - 1 do
- local record = getAddressList().getMemoryRecord(i)
- local address = record.Address
- print(address)
- end
- getMemoryRecordByID(memrec.ID).Active = false
- [DISABLE]
- {$asm}
- </AssemblerScript>
- </CheatEntry>
- <CheatEntry>
- <ID>415322</ID>
- <Description>"PCSX2 all ver. Print Description's Name"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>[ENABLE]
- {$lua}
- local al = getAddressList()
- for i = 0, al.Count - 1 do
- local record = al.getMemoryRecord(i)
- print(record.Description or "N/A")
- end
- getMemoryRecordByID(memrec.ID).Active = false
- [DISABLE]
- {$lua}
- </AssemblerScript>
- </CheatEntry>
- <CheatEntry>
- <ID>415323</ID>
- <Description>"PCSX2 all ver. Print Value(including string type)"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>[ENABLE]
- {$lua}
- for i = 0, getAddressList().Count - 1 do
- local record = getAddressList().getMemoryRecord(i)
- local address = record.Address
- local description = record.Description or "N/A"
- local value
- if record.Type == vtByte or record.Type == vtWord or record.Type == vtDword or record.Type == vtQword then
- value = readInteger(address) or 0
- value = string.format("%X", value)
- elseif record.Type == vtSingle then
- local fval = readFloat(address)
- value = fval and string.format("%08X", readInteger(address)) or "N/A"
- elseif record.Type == vtDouble then
- local dval = readDouble(address)
- value = dval and string.format("%016X", readQword(address)) or "N/A"
- elseif record.Type == vtString then
- local strLength = record.StringSize or 32 -- default length if not defined
- value = readString(address, strLength, false) or "N/A"
- else
- value = ""
- end
- print(string.format("%s", value))
- end
- getMemoryRecordByID(memrec.ID).Active = false
- [DISABLE]
- {$asm}
- </AssemblerScript>
- </CheatEntry>
- </CheatEntries>
- </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment