Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <CheatTable>
- <CheatEntries>
- <CheatEntry>
- <ID>413265</ID>
- <Description>"Manual Mode for x64 1.18+"</Description>
- <Options moHideChildren="1"/>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>[ENABLE]
- {$lua}
- if syntaxcheck then return end
- function setStartStop()
- local memrec = getAddressList().getMemoryRecordByDescription("PSP memory base address")
- if not memrec then return end
- local process = getAddress("PPSSPPWindows64.exe")
- if not process then return end
- local BaseAddress = readQword(process + 0xFBA860)
- if not BaseAddress then return end
- memrec.Address = string.format("%016X", BaseAddress)
- end
- setStartStop()
- {$asm}
- [DISABLE]
- {$lua}
- if syntaxcheck then return end
- local memrec = getAddressList().getMemoryRecordByDescription("PSP memory base address")
- if memrec then
- memrec.Address = "0000000000000000"
- end
- {$asm}
- </AssemblerScript>
- <CheatEntries>
- <CheatEntry>
- <ID>413266</ID>
- <Description>"PSP memory base address"</Description>
- <ShowAsSigned>0</ShowAsSigned>
- <VariableType>4 Bytes</VariableType>
- <Address>0000020F60DC0000</Address>
- </CheatEntry>
- <CheatEntry>
- <ID>413267</ID>
- <Description>"Limit Scan Range"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>{$lua}
- function setStartStop()
- local controlMainForm = getMainForm()
- local addr = getAddressList().getMemoryRecordByDescription("PSP memory in CE(manual) - replace the address in here:").getCurrentAddress()
- local check = cheatEngineIs64Bit()
- local check2 = targetIs64Bit()
- if (check and check2) then
- start = string.format("%016X",addr + 0x8800000)
- st = string.format("%016X",addr + 0x8800000 + 25165824)
- else
- start = string.format("%08X",addr + 0x8800000)
- st = string.format("%08X",addr + 0x8800000 + 25165824)
- end
- controlMainForm.FromAddress.setCaption(start)
- controlMainForm.ToAddress.setCaption(st)
- end
- {$asm}
- [ENABLE]
- luaCall(setStartStop())
- [DISABLE]
- luaCall(setStartStop())
- </AssemblerScript>
- </CheatEntry>
- <CheatEntry>
- <ID>413268</ID>
- <Description>"Limit Scan Range(for HD remasters & some homebrew)"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>{$lua}
- function setStartStop()
- local controlMainForm = getMainForm()
- local addr = getAddressList().getMemoryRecordByDescription("PSP memory in CE(manual) - replace the address in here:").getCurrentAddress()
- local check = cheatEngineIs64Bit()
- local check2 = targetIs64Bit()
- if (check and check2) then
- start = string.format("%016X",addr + 0x8800000)
- st = string.format("%016X",addr + 0x8800000 + 58720256)
- else
- start = string.format("%08X",addr + 0x8800000)
- st = string.format("%08X",addr + 0x8800000 + 58720256)
- end
- controlMainForm.FromAddress.setCaption(start)
- controlMainForm.ToAddress.setCaption(st)
- end
- {$asm}
- [ENABLE]
- luaCall(setStartStop())
- [DISABLE]
- luaCall(setStartStop())
- </AssemblerScript>
- </CheatEntry>
- <CheatEntry>
- <ID>413269</ID>
- <Description>"Select cheat entry and click on the square left from this text to convert address"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>{$lua}
- function PrintCW()
- selected = getAddressList().SelCount
- if (selected > 0) then
- setable = getAddressList().getSelectedRecords().CurrentAddress
- all = getAddressList().Count
- j = 1
- local addrtable = {}
- for i = 0, all-1 do
- local sel = getAddressList().MemoryRecord[i].Selected
- local address = getAddressList().MemoryRecord[i].getCurrentAddress()
- if (sel and address > 0) then
- print("")
- addrtable[j] = adr1
- local desc = getAddressList().MemoryRecord[i].getDescription()
- local val = getAddressList().MemoryRecord[i].Value
- local typ = getAddressList().MemoryRecord[i].Type
- local addr = getAddressList().getMemoryRecordByDescription("PSP memory in CE(manual) - replace the address in here:").getCurrentAddress()
- local disassembly = address - addr
- local cwcheat = disassembly + 0x8800000
- local check = cheatEngineIs64Bit()
- local check2 = targetIs64Bit()
- if (check and check2) then
- print("CE:",string.format("%016X",address)..", CWC:",string.format("%08X",cwcheat)..", Dissassembly:",string.format("%08X",disassembly)..", simple CWCheat:")
- else
- print("CE:",string.format("%08X",address)..", CWC:",string.format("%08X",cwcheat)..", Dissassembly:",string.format("%08X",disassembly)..", simple CWCheat:")
- end
- print("_C0 "..desc)
- local hex = getAddressList().MemoryRecord[i].ShowAsHex
- if (hex==false) then
- if (typ == 0) then
- val = string.format("%08X",val)
- cwcheat = string.format("%08X",cwcheat)
- end
- if (typ == 1) then
- val = string.format("%08X",val)
- cwcheat = string.format("%08X",cwcheat+0x10000000)
- end
- if (typ == 2) then
- val = string.format("%08X",val)
- cwcheat = string.format("%08X",cwcheat+0x20000000)
- end
- if (typ == 4) then
- local s=string.pack("f",val)
- local f=string.unpack("i4",s)
- val = string.format("%08X",f)
- cwcheat = string.format("%08X",cwcheat+0x20000000)
- end
- else
- if (typ == 0) then
- val = string.format("%08X",tonumber(val,16))
- cwcheat = string.format("%08X",cwcheat)
- end
- if (typ == 1) then
- val = string.format("%08X",tonumber(val,16))
- cwcheat = string.format("%08X",cwcheat+0x10000000)
- end
- if (typ == 2) then
- cwcheat = string.format("%08X",cwcheat+0x20000000)
- end
- if (typ == 4) then
- cwcheat = string.format("%08X",cwcheat+0x20000000)
- end
- end
- if (typ == 3 or typ > 4) then
- print("Type unsupported")
- else
- print("_L 0x"..cwcheat,"0x"..val)
- end
- j=j+1
- end
- end
- else
- print("Select cheat entry first!")
- end
- end
- {$asm}
- [ENABLE]
- luaCall(PrintCW())
- [DISABLE]
- luaCall(PrintCW())
- </AssemblerScript>
- </CheatEntry>
- </CheatEntries>
- </CheatEntry>
- <CheatEntry>
- <ID>413270</ID>
- <Description>"Manual Mode for x32 1.18+"</Description>
- <Options moHideChildren="1"/>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>[ENABLE]
- {$lua}
- if syntaxcheck then return end
- function setStartStop()
- local memrec = getAddressList().getMemoryRecordByDescription("PSP memory base address")
- if not memrec then return end
- local process = getAddress("PPSSPPWindows.exe")
- if not process then return end
- local BaseAddress = readInteger(process + 0xCC65DC)
- if not BaseAddress then return end
- memrec.Address = string.format("%016X", BaseAddress)
- end
- setStartStop()
- {$asm}
- [DISABLE]
- {$lua}
- if syntaxcheck then return end
- local memrec = getAddressList().getMemoryRecordByDescription("PSP memory base address")
- if memrec then
- memrec.Address = "0000000000000000"
- end
- {$asm}
- </AssemblerScript>
- <CheatEntries>
- <CheatEntry>
- <ID>413271</ID>
- <Description>"PSP memory base address"</Description>
- <ShowAsSigned>0</ShowAsSigned>
- <VariableType>4 Bytes</VariableType>
- <Address>0000000000000000</Address>
- </CheatEntry>
- <CheatEntry>
- <ID>413272</ID>
- <Description>"Limit Scan Range"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>{$lua}
- function setStartStop()
- local controlMainForm = getMainForm()
- local addr = getAddressList().getMemoryRecordByDescription("PSP memory in CE(manual) - replace the address in here:").getCurrentAddress()
- local check = cheatEngineIs64Bit()
- local check2 = targetIs64Bit()
- if (check and check2) then
- start = string.format("%016X",addr + 0x8800000)
- st = string.format("%016X",addr + 0x8800000 + 25165824)
- else
- start = string.format("%08X",addr + 0x8800000)
- st = string.format("%08X",addr + 0x8800000 + 25165824)
- end
- controlMainForm.FromAddress.setCaption(start)
- controlMainForm.ToAddress.setCaption(st)
- end
- {$asm}
- [ENABLE]
- luaCall(setStartStop())
- [DISABLE]
- luaCall(setStartStop())
- </AssemblerScript>
- </CheatEntry>
- <CheatEntry>
- <ID>413273</ID>
- <Description>"Limit Scan Range(for HD remasters & some homebrew)"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>{$lua}
- function setStartStop()
- local controlMainForm = getMainForm()
- local addr = getAddressList().getMemoryRecordByDescription("PSP memory in CE(manual) - replace the address in here:").getCurrentAddress()
- local check = cheatEngineIs64Bit()
- local check2 = targetIs64Bit()
- if (check and check2) then
- start = string.format("%016X",addr + 0x8800000)
- st = string.format("%016X",addr + 0x8800000 + 58720256)
- else
- start = string.format("%08X",addr + 0x8800000)
- st = string.format("%08X",addr + 0x8800000 + 58720256)
- end
- controlMainForm.FromAddress.setCaption(start)
- controlMainForm.ToAddress.setCaption(st)
- end
- {$asm}
- [ENABLE]
- luaCall(setStartStop())
- [DISABLE]
- luaCall(setStartStop())
- </AssemblerScript>
- </CheatEntry>
- <CheatEntry>
- <ID>413274</ID>
- <Description>"Select cheat entry and click on the square left from this text to convert address"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>{$lua}
- function PrintCW()
- selected = getAddressList().SelCount
- if (selected > 0) then
- setable = getAddressList().getSelectedRecords().CurrentAddress
- all = getAddressList().Count
- j = 1
- local addrtable = {}
- for i = 0, all-1 do
- local sel = getAddressList().MemoryRecord[i].Selected
- local address = getAddressList().MemoryRecord[i].getCurrentAddress()
- if (sel and address > 0) then
- print("")
- addrtable[j] = adr1
- local desc = getAddressList().MemoryRecord[i].getDescription()
- local val = getAddressList().MemoryRecord[i].Value
- local typ = getAddressList().MemoryRecord[i].Type
- local addr = getAddressList().getMemoryRecordByDescription("PSP memory in CE(manual) - replace the address in here:").getCurrentAddress()
- local disassembly = address - addr
- local cwcheat = disassembly + 0x8800000
- local check = cheatEngineIs64Bit()
- local check2 = targetIs64Bit()
- if (check and check2) then
- print("CE:",string.format("%016X",address)..", CWC:",string.format("%08X",cwcheat)..", Dissassembly:",string.format("%08X",disassembly)..", simple CWCheat:")
- else
- print("CE:",string.format("%08X",address)..", CWC:",string.format("%08X",cwcheat)..", Dissassembly:",string.format("%08X",disassembly)..", simple CWCheat:")
- end
- print("_C0 "..desc)
- local hex = getAddressList().MemoryRecord[i].ShowAsHex
- if (hex==false) then
- if (typ == 0) then
- val = string.format("%08X",val)
- cwcheat = string.format("%08X",cwcheat)
- end
- if (typ == 1) then
- val = string.format("%08X",val)
- cwcheat = string.format("%08X",cwcheat+0x10000000)
- end
- if (typ == 2) then
- val = string.format("%08X",val)
- cwcheat = string.format("%08X",cwcheat+0x20000000)
- end
- if (typ == 4) then
- local s=string.pack("f",val)
- local f=string.unpack("i4",s)
- val = string.format("%08X",f)
- cwcheat = string.format("%08X",cwcheat+0x20000000)
- end
- else
- if (typ == 0) then
- val = string.format("%08X",tonumber(val,16))
- cwcheat = string.format("%08X",cwcheat)
- end
- if (typ == 1) then
- val = string.format("%08X",tonumber(val,16))
- cwcheat = string.format("%08X",cwcheat+0x10000000)
- end
- if (typ == 2) then
- cwcheat = string.format("%08X",cwcheat+0x20000000)
- end
- if (typ == 4) then
- cwcheat = string.format("%08X",cwcheat+0x20000000)
- end
- end
- if (typ == 3 or typ > 4) then
- print("Type unsupported")
- else
- print("_L 0x"..cwcheat,"0x"..val)
- end
- j=j+1
- end
- end
- else
- print("Select cheat entry first!")
- end
- end
- {$asm}
- [ENABLE]
- luaCall(PrintCW())
- [DISABLE]
- luaCall(PrintCW())
- </AssemblerScript>
- </CheatEntry>
- </CheatEntries>
- </CheatEntry>
- <CheatEntry>
- <ID>386547</ID>
- <Description>"DARK MODE"</Description>
- <LastState/>
- <VariableType>Auto Assembler Script</VariableType>
- <AssemblerScript>{$lua}
- [ENABLE]
- GetAddressList().Control[0].BackgroundColor=0x545454
- --getMainForm().color=0x545454
- [DISABLE]
- GetAddressList().Control[0].BackgroundColor=0xFFFFFF
- --getMainForm().color=0xf0f0f0
- </AssemblerScript>
- </CheatEntry>
- </CheatEntries>
- </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment