PCSX2 Script speed up game, Arc the lad
Posted: Thu Jun 04, 2020 3:34 pm
Hi
I'm trying to use a XP multiplier script but the game speeds up every time I get XP. Where would look to find the issue?
[CODE][ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
Pushf
//push flags
Mov eax, [ecx]
// mov old xp to eax
Sub edx, eax
// Get difference in xp ->edx
imul edx, #2
// Difference *= 2
Add edx, eax
// Add original xp to new difference
originalcode:
mov [ecx],edx
mov eax,00000001
exit:
jmp returnhere
30332200:
jmp newmem
nop 2
returnhere:
[DISABLE][/CODE]
[automerge]1591291753[/automerge]
For my own reference, changed the following and worked
[CODE][ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
Pushf
//push flags
Mov eax, [ecx]
// mov old xp to eax
Sub edx, eax
// Get difference in xp ->edx
IMul edx, #5
// Difference *= 5
Add edx, eax
// Add original xp to new difference
originalcode:
Mov [ecx], edx //original
Popf
exit:
jmp returnhere
3040A160:
jmp newmem
nop 2
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
3040A160:
mov [ecx],edx
mov eax,00000001
//Alt: db 89 11 B8 01 00 00 00[/CODE]
I'm trying to use a XP multiplier script but the game speeds up every time I get XP. Where would look to find the issue?
[CODE][ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
Pushf
//push flags
Mov eax, [ecx]
// mov old xp to eax
Sub edx, eax
// Get difference in xp ->edx
imul edx, #2
// Difference *= 2
Add edx, eax
// Add original xp to new difference
originalcode:
mov [ecx],edx
mov eax,00000001
exit:
jmp returnhere
30332200:
jmp newmem
nop 2
returnhere:
[DISABLE][/CODE]
[automerge]1591291753[/automerge]
For my own reference, changed the following and worked
[CODE][ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
Pushf
//push flags
Mov eax, [ecx]
// mov old xp to eax
Sub edx, eax
// Get difference in xp ->edx
IMul edx, #5
// Difference *= 5
Add edx, eax
// Add original xp to new difference
originalcode:
Mov [ecx], edx //original
Popf
exit:
jmp returnhere
3040A160:
jmp newmem
nop 2
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
3040A160:
mov [ecx],edx
mov eax,00000001
//Alt: db 89 11 B8 01 00 00 00[/CODE]