add 59NJ versions of some patches; closes #598

This commit is contained in:
Martin Michelsen
2025-01-29 23:20:42 -08:00
parent 24722f0a27
commit 03fc351a35
2 changed files with 58 additions and 0 deletions
@@ -0,0 +1,32 @@
# This patch disables the logic that causes all unlockable areas to be open by
# default for all players, instead restoring the logic that checks quest flags
# to open areas (as previous PSO versions used).
# This patch is intended to be used in the BBRequiredPatches field in
# config.json if you want the classic behavior, hence the presence of the
# hide_from_patches_menu directive here.
.meta name="Classic main warp behavior"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksBB
.data 0x0064A642 # Episode 1
.data 1
.binary 01
.data 0x0064A4AC # Episode 2
.data 2
.binary 0100
.data 0x0064A58D # Episode 4
.data 1
.binary 01
.data 0x0064A6BC # Non-Normal difficulty check
.data 2
nop
nop
.data 0
.data 0
@@ -0,0 +1,26 @@
# It would be a bad idea to remove `.meta hide_from_patches_menu` to make this
# patch an option for players to be able to select; either all players on the
# server should have this patch, or none should have it.
# This patch clears the list of unreleased items on the client, so the client
# never creates buggy items when the server generates an item that wasn't
# released on the official servers.
.meta name="Clear unreleased item list"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov edx, esp
mov esp, 0x009F61B0
mov ecx, 0x3C
again:
push 0
dec ecx
jnz again
mov esp, edx
ret