I made my own version of the companion perk script since I couldn't get yours to work, maybe you can look at the code and compare for a better code (windows store)
-Spend a perk point and it generates the address for perks for that character
-If doesn't update, click a random perk after
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>4035</ID>
<Description>"Companion Perks (Spend a perk point)"</Description>
<Options moHideChildren="1"/>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
//IndianaWindowsStore-Win64-Shipping.exe+5D5E22 - 89 87 14030000 - mov [rdi+00000314],eax
aobscanmodule(compperks,IndianaWindowsStore-Win64-Shipping.exe,89 87 14 03 00 00 48 8B CF E8 B0) // should be unique
alloc(newmem,$1000,"IndianaWindowsStore-Win64-Shipping.exe"+5D5E22)
label(code)
label(return)
label(CompPerkAddy)
registersymbol(CompPerkAddy)
newmem:
code:
mov [rdi+00000314],eax
mov [CompPerkAddy],rdi
jmp return
CompPerkAddy:
compperks:
jmp newmem
nop
return:
registersymbol(compperks)
[DISABLE]
compperks:
db 89 87 14 03 00 00
unregistersymbol(compperks)
unregistersymbol(CompPerkAddy)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "IndianaWindowsStore-Win64-Shipping.exe"+5D5E22
"IndianaWindowsStore-Win64-Shipping.exe"+5D5DFE: 48 8B CF - mov rcx,rdi
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E01: E8 9A F5 00 00 - call IndianaWindowsStore-Win64-Shipping.exe+5E53A0
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E06: 84 C0 - test al,al
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E08: 75 31 - jne IndianaWindowsStore-Win64-Shipping.exe+5D5E3B
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E0A: 8B 87 14 03 00 00 - mov eax,[rdi+00000314]
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E10: 83 F8 01 - cmp eax,01
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E13: 7C 26 - jl IndianaWindowsStore-Win64-Shipping.exe+5D5E3B
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E15: FF C8 - dec eax
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E17: 4C 8D 87 18 03 00 00 - lea r8,[rdi+00000318]
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E1E: 48 8D 55 67 - lea rdx,[rbp+67]
// ---------- INJECTING HERE ----------
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E22: 89 87 14 03 00 00 - mov [rdi+00000314],eax
// ---------- DONE INJECTING ----------
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E28: 48 8B CF - mov rcx,rdi
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E2B: E8 B0 E0 FF FF - call IndianaWindowsStore-Win64-Shipping.exe+5D3EE0
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E30: 48 8B D3 - mov rdx,rbx
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E33: 48 8B CF - mov rcx,rdi
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E36: E8 D5 FC FF FF - call IndianaWindowsStore-Win64-Shipping.exe+5D5B10
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E3B: 48 8B 16 - mov rdx,[rsi]
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E3E: 48 8B CF - mov rcx,rdi
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E41: E8 CA FC FF FF - call IndianaWindowsStore-Win64-Shipping.exe+5D5B10
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E46: 48 83 C6 08 - add rsi,08
"IndianaWindowsStore-Win64-Shipping.exe"+5D5E4A: 49 3B F6 - cmp rsi,r14
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>4036</ID>
<Description>"Companion Perk Amount"</Description>
<LastState Value="2" RealAddress="27746AFAC74"/>
<VariableType>4 Bytes</VariableType>
<Address>[CompPerkAddy]+314</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>