Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <CheatTable>
- <CheatEntries>
- <CheatEntry>
- <ID>387617</ID>
- <Description>"Memory Scan Range"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>[ENABLE]
- {$lua}
- if syntaxcheck then return end
- -- Get the dynamic base address of pcsx2-qt.exe
- local baseAddress = getAddress('"pcsx2-qt.exe"')
- -- Add the offset to the base address
- local fromOffset = 0x1452560
- local toOffset = 0xC41B28
- local fromAddress = baseAddress + fromOffset
- local toAddress = baseAddress + toOffset
- -- Convert the addresses to values rather than using them as addresses
- local fromValue = readQword(fromAddress) -- or another type, depending on your need
- local toValue = readQword(toAddress) -- or another type, depending on your need
- -- Set the memory scan range in Cheat Engine's MainForm
- MainForm.FromAddress.Text = string.format('%016X', fromValue)
- MainForm.ToAddress.Text = string.format('%016X', toValue)
- {$asm}
- [DISABLE]
- </AssemblerScript>
- </CheatEntry>
- </CheatEntries>
- </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment