Commit Graph

3546 Commits

Author SHA1 Message Date
Philip Dubé 4c43ef030d Fix crash when loading unversioned oot_save.sav (#7090) 2026-08-17 17:23:08 +00:00
David Racine 6a3c9b7604 Add a Skip Warp Cutscenes enhancement (#7059)
Warp song cutscenes were skipped for randomizer players whether they
wanted it or not: Demo_Kankyo cut the departure animation short from a
hardcoded IS_RANDO branch, and entrance rando cleared respawnFlag so the
arrival never played. There was no way to get the vanilla warp back, and
no way for a vanilla playthrough to skip it.

Drop both and put the behavior behind a Skip Warp Cutscenes toggle,
defaulting on in randomizer so existing rando warps are unchanged. It
kills the departure actor as it spawns and puts the arrival spawn mode
back to IDLE, which covers both halves of the warp.

Entrance rando's destination override moves off Demo_Kankyo's update onto
a new OnWarpSongLeave hook fired from Environment_WarpSongLeave. That is
where every warp path -- the cutscene, the skip toggle, and the spawn
failure fallback -- commits its destination, so the override no longer
depends on the departure actor being alive to see it, and a warp song
shuffled onto a grotto return keeps its grotto respawn.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 17:22:34 +00:00
djevangelia 3a8c68be66 Enemy rando, let enemies air walk over voidout floor in clear rooms (#7005)
Behind a setting

Add timed rooms + Fire Temple modifications
2026-08-17 13:08:13 +00:00
Philip Dubé 0bae4961ab Draw keys on keyring with code, consolidate dungeon key counting code (#7087)
Remove CustomKeyModels option, always enabled
2026-08-16 23:30:38 +00:00
Philip Dubé bdccc868b7 Fix entrance overrides being different between loading spoiler vs starting seed (#7085) 2026-08-16 18:46:15 +00:00
Philip Dubé 17a7fde003 Shuffle Silver: fix gtg room setting room cleared instead of flag (#7084) 2026-08-16 18:38:51 +00:00
Philip Dubé 38acd5a177 Intro Skip: adjust Link's position & camera to match values after watching intro (#7077) 2026-08-16 17:18:01 +00:00
Philip Dubé bc12521718 Silence warnings on Windows for dependencies, bump torch (#7082) 2026-08-16 16:38:36 +00:00
Philip Dubé 940e3c5696 More pragma once (#7081)
libultraship uses pragma once, we were already using it in many headers
2026-08-16 14:49:44 +00:00
djevangelia 05f199e12b Enemy rando, GTG hammer room air spawn fix (#7079) 2026-08-16 13:37:59 +00:00
djevangelia 917a9b78d9 Enemy rando, fix healthy big Guays not dying (#7065) 2026-08-15 20:37:15 +00:00
djevangelia 3a3d93f732 Enemy rando, exclude Withered Deku Babas from clear rooms (#7078) 2026-08-15 19:57:04 +00:00
Philip Dubé ca0a17cfe7 bombchu bowling setting: first item (#7070)
desirable for speedrun settings that want less variance. also use for moving rando logic into hooks
2026-08-14 22:24:03 +00:00
Philip Dubé afcfe4f7bf Format JSON, include CI check (#7071) 2026-08-14 22:03:44 +00:00
Garrett Cox fa5172a58b Add advanced option for teleport trap (#6986) 2026-08-14 16:42:43 -04:00
djevangelia e048afd10a Decomp, three audio functions (#7069) 2026-08-14 20:01:49 +00:00
Malkierian 9782faba44 Torch CMake and Extraction Flow cleanup (#7063)
* Fix yaml-cpp inclusion for VS building.

* Fix double-finds for rom files in the binary directory.

* Fix archive generation targets.

* Port over Proxy's change on 2ship to old ROM deletion to search all applicable subdirectories.
2026-08-14 18:54:09 +00:00
Pepe20129 db147f6a0a Update the "Hell Mode" preset (#7066) 2026-08-14 18:23:39 +00:00
David Racine a35f331189 Keep an unlisted combobox value from killing the menu (#7062)
A stored value with no entry in the combo map threw out of map::at while
drawing, which took the whole menu down as soon as a search matched the widget.
Fall back to the default and log the offender.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 20:22:03 +00:00
David Racine 14d9d4e8bb Pick up newly added source files without a manual re-configure (#7060)
The source globs did not use CONFIGURE_DEPENDS, so adding a file under
soh/ or src/ left it out of the build until cmake was re-run by hand,
silently and with no warning.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 11:26:37 +00:00
David Racine 81784a09e8 Keep the save editor's sword state alive long enough to draw (#7061)
fmt::format returns a std::string by value, so taking c_str() of the temporary
left BeginCombo reading freed memory whenever the melee weapon state fell
outside the known cases. Hold the text in a std::string instead.

Use spdlog::fmt_lib in the save editor

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-13 11:25:05 +00:00
A Green Spoon 08cb0dcf70 Fix graveyard sign checks at night (#7057) 2026-08-12 11:42:16 +00:00
Malkierian 253e672473 Adds native OOTRS archive support to remove need for custom packing. (#7056) 2026-08-12 11:34:25 +00:00
djevangelia 9772a603e8 Enemy rando, remove switch flag setting from Wolfos (#7055) 2026-08-10 13:01:04 +00:00
Philip Dubé 55b52a26a5 replace specialized bean logic with events (#5842) 2026-08-10 01:21:41 +00:00
djevangelia 7e9cf1eb1c Enemy rando, set EnTp EnSkb EnPeehat collider positions on actor init (#7049) 2026-08-10 01:10:40 +00:00
Philip Dubé 0cf2b37013 Apply Enemy Rando Dark Link fixes to Crowd Control & Sail (#7054) 2026-08-09 23:46:51 +00:00
Philip Dubé f35f134c93 Fix grammar (#7053) 2026-08-09 22:54:45 +00:00
Philip Dubé f27ddede59 Fix mirror decal not rendering on some walls (#7052) 2026-08-09 22:01:31 +00:00
Pedro Nascimento 4e39d06acc fix(audio): bound audio-heap cache tables (SIGSEGV with large custom music packs) (#6932)
Root cause of three identical field crashes (audio thread, opcode fetch
through a pointer with its low 32 bits overwritten, seconds after scene
transitions): AudioHeap_AllocPermanent writes permanentCache[index] with
index = permanentPool.count and no bound against the 32-entry array. In
SoH every soundfont sync-load is forced permanent, and custom sequences
whose SEQ.xml says CachePolicy="Temporary" ALSO allocate permanently
(the factory stores the LUS enum where CACHE_TEMPORARY == 0, while
AudioLoad_SyncLoad's switch reads 0 with the ROM convention
'permanent'). A pack with ~60 streamed customs plus vanilla fonts pushes
count past 32 within a session, after which each allocation sprays a
{ptr, size, tableType/id} triplet at 24-byte stride through
gAudioContext - entry[135]'s ptr field lands exactly on
seqPlayers[0].scriptState.pc and entry[156] on seqPlayers[1]'s (both
verified against the crash-dump registers).

- permanentCache raised 32 -> 512 (12 KB) and AllocPermanent refuses
  allocations past the array instead of corrupting memory.
- Same unbounded-index disease fixed in the three sibling writers:
  AllocCached's persistent path (16-entry array; CACHE_EITHER degrades
  to temporary, hard persistent requests fail cleanly),
  AllocPersistentSampleCacheEntry, AllocTemporarySampleCacheEntry.
- seqLoadStatus malloc sized for the full id space (sequenceMapSize +
  0xF) matching sequenceMap; custom ids above sequenceMapSize previously
  overflowed the allocation by up to 15 bytes.

Upstream SoH bugs, not branch-introduced - this branch's many-track
packs merely made the overflow reachable in normal play. Standalone
upstreamable fix.
2026-08-09 18:36:33 +00:00
Philip Dubé 490e13616e fix warnings (#7051) 2026-08-09 18:02:47 +00:00
Philip Dubé 1c856a7be0 Silence cmake warnings (#7050) 2026-08-09 16:14:25 +00:00
Philip Dubé bf7177256a FixFlexDrops (#7047) 2026-08-09 15:46:51 +00:00
Philip Dubé 0254c1f3a4 Allow GI skip for silver gauntlets chest (#7048) 2026-08-09 15:45:43 +00:00
PurpleHato 426b37ddf0 Save editor v2 (#6474) 2026-08-09 02:31:11 +00:00
Philip Dubé af485bf64c Fix bugs in hints (#7046)
1. fix filtering trials hints when only 1-3 required
2. clearing names per iteration won't work with dual hints
2026-08-09 02:07:06 +00:00
Philip Dubé 5ecff16bdb Fix heap corruption due to skybox code using GameState as PlayState (#7045)
Also corrects clearing skybox context before Skybox_Setup
2026-08-09 01:05:15 +00:00
Philip Dubé 404ec05fc5 Fix scrub message having doubled articles, add articles to fake names (#7044) 2026-08-08 22:55:37 +00:00
Pepper0ni 07944d785c Allow buying tunic as either age in rando even without shopsanity. (#7016) 2026-08-08 21:17:10 +00:00
Jameriquiah a4901abdc5 Hookify Skeleton Unregisters (#6988)
Co-authored-by: serprex <159546+serprex@users.noreply.github.com>
2026-08-08 21:16:10 +00:00
djevangelia f2f4413bff Decomp, some camera names (#7043) 2026-08-08 21:12:31 +00:00
djevangelia 982f598e01 Savestates, add sEffectContext (#7042) 2026-08-08 20:39:09 +00:00
djevangelia 5d1a396668 Polish, Twinrova intro cutscene skip with Kotake/Koume appear on climb (#7001) 2026-08-08 19:04:04 +00:00
Philip Dubé 94cebb35bd Fix GF Near Grotto North/East naming (#7041) 2026-08-08 19:02:08 +00:00
Philip Dubé b52c31f85a Get rid of Logic::Hearts, update Logic::EffectiveHealth to be 16/heart (#7026) 2026-08-08 18:56:01 +00:00
Philip Dubé 29668a06d6 Progressive BGS (#7037) 2026-08-08 18:00:23 +00:00
djevangelia 6420c435b1 Enemy rando, fix Dark Link crush etc voidouts (#7038) 2026-08-08 17:59:23 +00:00
Philip Dubé f6f21477b0 fix clang with -lm (#7039) 2026-08-08 05:37:18 +00:00
Philip Dubé 7f9d453fff use spdlog::fmt_lib over fmt, opens up SPDLOG_USE_STD_FORMAT in future (#7030)
requires spdlog 1.10
2026-08-07 06:36:37 +00:00
Philip Dubé 6706b49d1c Shuffle Treasure Chest Game (#7020) 2026-08-07 03:17:10 +00:00