Using Instant 5 star mod crashes the game when trying to deliver the packages to the respected prepper.
I'm testing on DS2 V. 1.6.72 with Cheat Engine v.76
Game functions properly until attempting to deliver the packages. The game immediately crashes to user desktop.
DS2 Patch 1.6 fix for instant 5 star delivery
Edit*
[ENABLE]
aobscanmodule(ds2_instant_5star,DS2.exe,8B 56 08 44 8B C0 48 8B CF E8 ?? ?? ?? ?? 45 33 E4 44 8B F8 44 3B F0)
alloc(newmem,$1000,ds2_instant_5star)
alloc(ds2_5star_enable,4)
label(code)
label(return)
ds2_5star_enable:
dd 1
newmem:
cmp dword ptr [ds2_5star_enable],01
jne code
// 5-Star Override Logic
mov edx,[rdi+40]
mov [rsi+08],edx
mov r8d,05
mov rcx,rdi
jmp return
code:
// Original untouched logic
mov edx,[rsi+08]
mov r8d,eax
mov rcx,rdi
jmp return
ds2_instant_5star:
jmp newmem
nop 4 // We only overwrite the 9 bytes of 'mov' instructions now
return: // Returns right AT the dynamic 'call' instruction
registersymbol(ds2_instant_5star)
registersymbol(ds2_5star_enable)
[DISABLE]
ds2_instant_5star:
// Restores only the static register moves, avoiding the broken offset
db 8B 56 08 44 8B C0 48 8B CF
unregistersymbol(ds2_instant_5star)
unregistersymbol(ds2_5star_enable)
dealloc(newmem)
dealloc(ds2_5star_enable)