Nirvada

PCSX2 Printing stuff script

Feb 22nd, 2026
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable>
  3. <CheatEntries>
  4. <CheatEntry>
  5. <ID>415324</ID>
  6. <Description>"PCSX2 1.7.0+ Print FULL address"</Description>
  7. <LastState/>
  8. <VariableType>Auto Assembler Script</VariableType>
  9. <AssemblerScript>[ENABLE]
  10. {$lua}
  11.  
  12. for i = 0, getAddressList().Count - 1 do
  13. local record = getAddressList().getMemoryRecord(i)
  14. local address = record.Address
  15.  
  16. local trimmed = string.sub(address, 6) -- Ignore 1st to 6th Character
  17. print(trimmed)
  18. end
  19. getMemoryRecordByID(memrec.ID).Active = false
  20. [DISABLE]
  21. {$asm}
  22.  
  23. </AssemblerScript>
  24. </CheatEntry>
  25. <CheatEntry>
  26. <ID>415321</ID>
  27. <Description>"PCSX2 all ver. Print RAW address"</Description>
  28. <LastState/>
  29. <VariableType>Auto Assembler Script</VariableType>
  30. <AssemblerScript>[ENABLE]
  31. {$lua}
  32.  
  33. for i = 0, getAddressList().Count - 1 do
  34. local record = getAddressList().getMemoryRecord(i)
  35. local address = record.Address
  36.  
  37. print(address)
  38. end
  39. getMemoryRecordByID(memrec.ID).Active = false
  40. [DISABLE]
  41. {$asm}
  42. </AssemblerScript>
  43. </CheatEntry>
  44. <CheatEntry>
  45. <ID>415322</ID>
  46. <Description>"PCSX2 all ver. Print Description's Name"</Description>
  47. <LastState/>
  48. <VariableType>Auto Assembler Script</VariableType>
  49. <AssemblerScript>[ENABLE]
  50. {$lua}
  51.  
  52. local al = getAddressList()
  53. for i = 0, al.Count - 1 do
  54. local record = al.getMemoryRecord(i)
  55. print(record.Description or "N/A")
  56. end
  57. getMemoryRecordByID(memrec.ID).Active = false
  58. [DISABLE]
  59. {$lua}
  60. </AssemblerScript>
  61. </CheatEntry>
  62. <CheatEntry>
  63. <ID>415323</ID>
  64. <Description>"PCSX2 all ver. Print Value(including string type)"</Description>
  65. <LastState/>
  66. <VariableType>Auto Assembler Script</VariableType>
  67. <AssemblerScript>[ENABLE]
  68. {$lua}
  69.  
  70. for i = 0, getAddressList().Count - 1 do
  71. local record = getAddressList().getMemoryRecord(i)
  72. local address = record.Address
  73. local description = record.Description or "N/A"
  74.  
  75. local value
  76. if record.Type == vtByte or record.Type == vtWord or record.Type == vtDword or record.Type == vtQword then
  77. value = readInteger(address) or 0
  78. value = string.format("%X", value)
  79.  
  80. elseif record.Type == vtSingle then
  81. local fval = readFloat(address)
  82. value = fval and string.format("%08X", readInteger(address)) or "N/A"
  83.  
  84. elseif record.Type == vtDouble then
  85. local dval = readDouble(address)
  86. value = dval and string.format("%016X", readQword(address)) or "N/A"
  87.  
  88. elseif record.Type == vtString then
  89. local strLength = record.StringSize or 32 -- default length if not defined
  90. value = readString(address, strLength, false) or "N/A"
  91.  
  92. else
  93. value = ""
  94. end
  95.  
  96. print(string.format("%s", value))
  97. end
  98. getMemoryRecordByID(memrec.ID).Active = false
  99. [DISABLE]
  100. {$asm}
  101. </AssemblerScript>
  102. </CheatEntry>
  103. </CheatEntries>
  104. </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment