Nirvada

paste assemble for memory scan range (change stuff)

Oct 2nd, 2024
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CheatTable>
  3. <CheatEntries>
  4. <CheatEntry>
  5. <ID>387617</ID>
  6. <Description>"Memory Scan Range"</Description>
  7. <LastState/>
  8. <VariableType>Auto Assembler Script</VariableType>
  9. <AssemblerScript>[ENABLE]
  10. {$lua}
  11. if syntaxcheck then return end
  12.  
  13. -- Get the dynamic base address of pcsx2-qt.exe
  14. local baseAddress = getAddress('"pcsx2-qt.exe"')
  15.  
  16. -- Add the offset to the base address
  17. local fromOffset = 0x1452560
  18. local toOffset = 0xC41B28
  19.  
  20. local fromAddress = baseAddress + fromOffset
  21. local toAddress = baseAddress + toOffset
  22.  
  23. -- Convert the addresses to values rather than using them as addresses
  24. local fromValue = readQword(fromAddress) -- or another type, depending on your need
  25. local toValue = readQword(toAddress) -- or another type, depending on your need
  26.  
  27. -- Set the memory scan range in Cheat Engine's MainForm
  28. MainForm.FromAddress.Text = string.format('%016X', fromValue)
  29. MainForm.ToAddress.Text = string.format('%016X', toValue)
  30.  
  31. {$asm}
  32.  
  33. [DISABLE]
  34.  
  35. </AssemblerScript>
  36. </CheatEntry>
  37. </CheatEntries>
  38. </CheatTable>
  39.  
Advertisement
Add Comment
Please, Sign In to add comment