From 1568e4bee2b5f1a1ca540ce381521ccf1204e5b3 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Fri, 15 Apr 2016 12:27:00 -0700 Subject: [PATCH] forgot to add build script, fix ROM address --- patch/oot-spawner | 26 ++++++++++++++++++++++++++ patch/spawn O EUDB MQ.asm | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100755 patch/oot-spawner diff --git a/patch/oot-spawner b/patch/oot-spawner new file mode 100755 index 0000000..480a6ed --- /dev/null +++ b/patch/oot-spawner @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +set -e + +inject=../Lua/inject +rom=../roms/everything/"Legend of Zelda, The - Ocarina of Time - Master Quest (E) (Debug) [f1].z64" +lips=../Lua/lib/lips +out=oot-spawner.z64 + +mkdir -p build +cp *.lua build/ +cd build + +cp ../../"$rom" "$out" + +# don't copy entire dir; avoid copying dotfiles (.git) +mkdir -p lips +cp ../"$lips"/* lips + +cp ../"$inject/"*.asm . +cp ../*.asm . + +luajit patch.lua -o 0 \ + --extra-rom 0x035D0000 --extra-ram 0x80700000 \ + 'spawn O EUDB MQ.asm' "$out" + +(cd ../../; ./z64dump.py -f patch/build/"$out") diff --git a/patch/spawn O EUDB MQ.asm b/patch/spawn O EUDB MQ.asm index e3dd766..aea3aaf 100644 --- a/patch/spawn O EUDB MQ.asm +++ b/patch/spawn O EUDB MQ.asm @@ -25,7 +25,7 @@ [actor_spawn]: 0x80031F50 [object_spawn]: 0x80097C00 -[object_index]: 0xAF246C ; 0x8009812C +[object_index]: 0xB0F2CC ; 0x8009812C [max_actor_no]: 0x1D6