1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-11-04 22:39:02 -08:00

OoT "compatibility"

This commit is contained in:
Connor Olding 2015-11-15 08:05:33 -08:00
parent 8ed4aee8ce
commit 42493fd48c
5 changed files with 31 additions and 5 deletions

3
.gitignore vendored
View file

@ -1,4 +1,5 @@
lua chest test
lua movement test
cheat menu.save.lua
* - Copy*
cm oot save.lua
cm mm save.lua

View file

@ -384,7 +384,7 @@ return {
actor_disable = AG(0x18846, 2),
warp_begin = AG(0x18875, 1),
screen_dim = AG(0x18877, 1),
warp_destination = AG(0x1887A, 2),
warp_destination = AG(0x18878, 4),
fade_type = AG(0x1887F, 1),
entrance_entered = AG(0x18B48, 1),

View file

@ -125,6 +125,7 @@ return {
voidout_var = AL(0x1376, 2),
voidout_entrance = AL(0x1378, 2),
voidout_room_number = AL(0x137A, 2),
buttons_enabled = AL(0x13E2, 4), -- lol unaligned access
event_inf = AL(0x13FA, 0x8),
magic_max = AL(0x13F4, 2),
@ -169,11 +170,16 @@ return {
current_scene_flags_1 = AG(0x1D38, 4), -- chest flags
current_scene_flags_3 = AG(0x1D3C, 4), -- room clear flags
current_scene_flags_4 = AG(0x1D44, 4), -- collectible flags
cutscene_pointer = AG(0x1D68, 4),
cutscene_status_2 = AG(0x1D6C, 1), -- needs a rename
-- somewhere around here should be visited room flags?
room_number = AG(0x11CBC, 1),
room_pointer = AG(0x11CC8, 4),
age_modifier_global = AG(0x11DE8, 1),
warp_begin = AG(0x11E15, 1),
warp_destination = AG(0x11E18, 4),
fade_type = AG(0x11E1F, 1), -- TODO: verify
link_actor = setmetatable({
item_in_hand = AA(0x142, 1),

View file

@ -37,8 +37,8 @@ local run_while_paused = true
local alt_input = true
local eat_input = true
local fn = 'cheat menu.save.lua'
local saved = deserialize('cheat menu.save.lua') or {}
local fn = oot and 'cm oot save.lua' or 'cm mm save.lua'
local saved = deserialize(fn) or {}
local function save()
serialize(fn, saved)
end
@ -113,6 +113,7 @@ end
local soft_reset = Callbacks()
function soft_reset:on()
if oot then return end
addrs.warp_begin(0x14)
addrs.warp_destination(0x1C00)
addrs.fade_type(0x0B)
@ -220,7 +221,15 @@ function kill_fades:on()
fades_killed = true
end
local time_menu = Menu{
local time_menu = oot and Menu{
Screen{
Text("Time Menu #1/1"),
Text("Unimplemented for OoT."),
Text("Sorry! Try again later."),
Text(""),
Back(),
},
} or Menu{
Screen{
Text("Day/Time Menu #1/1"),
Oneshot("Set Day to Zeroth", Setter{[addrs.day]=0, [addrs.days_elapsed]=0}),

View file

@ -1,3 +1,13 @@
if oot then return Menu{
Screen{
Text("Progress Menu #1/1"),
Text("Unimplemented for OoT."),
Text("Sorry! Try again later."),
Text(""),
Back(),
},
} end
local first_cycle = Callbacks()
function first_cycle:on()
addrs.warp_begin(0x14)