summaryrefslogtreecommitdiff
path: root/soh/src/code/z_parameter.c
AgeCommit message (Collapse)Author
5 daysspeedrun mode (#7073)Philip Dubé
prevent Esc menu while speedrun file loaded, instead toggles gameplay stats / time splits render RUN tag on speedrun files don't persist speedrun preset into player's settings
2026-09-14clean up headers (#7194)Philip Dubé
GameInteractor.h does not itself depend on libultraship/bridge/consolevariablebridge.h, instead its dependencies requiring that header should include it themselves This was particularly impactful for SohGui.hpp which included all the windows
2026-09-14[Enhancement] Time Splits v2 (#5839)Caladius
This aims to port over the Time Splits feature from 2Ship as it is cleaner & more robust. New to this is the ability to finally compare splits from a second list. Old Save data will now be converted to the new format automatically. Once it converts the data, the old save file will be renamed with a new ".backup" extension. Co-authored-by: serprex <159546+serprex@users.noreply.github.com>
2026-08-17Hookify masks / timeless equipment (#7088)Philip Dubé
2026-08-14Decomp, three audio functions (#7069)djevangelia
2026-08-05Fix Gold Skulltula tokens overwriting the Bow inventory slot (#7021)David Racine
gItemSlots and sExtraItemBases only cover the item IDs that live in the inventory, but Item_Give and Item_CheckObtainability index them with any item ID. Reading past gItemSlots lands on gUpgradeShifts, so INV_CONTENT(ITEM_SKULL_TOKEN) resolved to the Bow slot and stored the token there, permanently corrupting the save. Route both through a bounds-checked Item_GetSlot that reports SLOT_NONE for items that have no slot, and skip the inventory store in that case. That read is also undefined behaviour, which link-time optimization is free to exploit: with it present clang dropped the ITEM_SKULL_TOKEN branch and the ITEM_MEDALLION_WATER horse fixup from Item_Give entirely, so tokens were never counted either. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-07-22Fix problems with Zelda's Letter & Weird Egg hatching (#6962)Philip Dubé
2026-07-19Shuffle Zelda's Letter (#6938)Philip Dubé
Removes RSK_SKIP_CHILD_ZELDA & RSK_KAK_GATE, these are managed by RSK_SHUFFLE_ZELDAS_LETTER & RSK_STARTING_ZELDAS_LETTER & RSK_SHUFFLE_WEIRD_EGG
2026-07-12Add save state wiring for Barinade, Bongo Bongo, & Morpha (#6914)Philip Dubé
Rename various variables across codebase to match decomp, many had been renamed when exposed for previous save state mechanism
2026-07-12GIM Restoration (#6865)Amber Burton
All edge cases for bottle combinations and replacement/filling mirrors the real game, as well we produce the compass text, and does not render the item exactly as the original game does. (I would have preferred rendering the item since its only cosmetic but I couldn't find a way to do it). This also swaps the table redirect stuff for using the direct item id's which is a lot more clear and does not substitute anything for 'good enough' and covers all the edge case ids that have been documented. This is purely a cosmetic change to present the visual of the item without affecting the cutscene making any tricks for GIM still work and just looks more polished. This supplies effects of ALL game versions (including MZX build) as well as providing text table. To note: we still can crash with GIM even when returning item None EVEN at least with returning Kokiri Tunic (I can't really figure out why) and there are a few items in the table that use extra data that I don't know how to implement here just yet but the info is in the docs under "Variable". In the case of disabling the gim restoration, the game would still crash. This change adds a text id protection to prevent crashing, as well prevents invalid items from crashing directly, and also makes it so the game will no longer crash when having GIM disabled in the menu. Co-authored-by: serprex <159546+serprex@users.noreply.github.com>
2026-07-12Decomp pull, some `z_player` and global changes (#6908)djevangelia
2026-07-09Decomp, update `z_en_holl.c` (#6890)djevangelia
2026-07-07pull decomp changes: actor functions, z_en_horse.c (#6877)Philip Dubé
2026-06-30Hookifying Various Cheats and FixVineFall (#6827)Chris
2026-06-14fix halfmilk RBA (#6670)ph
2026-06-14rando: option to allow swordless epona items (#6727)Philip Dubé
2026-04-19func_$hex renaming from upstream (#6498)Philip Dubé
2026-04-17Horseback archery settings (#6517)Reppan
2026-03-19Fix rendering double digit key count (#6371)Philip Dubé
2026-01-17Shuffle Masks (#5536)Philip Dubé
Future improvements can build on this, giving masks abilities, or adding checks for trading mask to someone
2026-01-10Add Roc's Feather (custom item) to Rando Item Pool (#6035)aMannus
This adds Roc's as a fully implemented item into the randomizer pool. When both Roc's and Nayru's is found, you can swap between them on the pause menu Many people have contributed to this over time, so huge shoutout to: - kentonm, this item is directly inspired by their Roc's Feather from their romhack Indigo. Also provided me with their GI model, icon texture and animation to use. - PurpleHato, for providing the images for the item name shown on the kaleidoscope. - Dana The Elf, providing another custom animation for the item. - Reppan, for helping to tweak the animation and exporting the GI model for me.
2026-01-08Decomp import: rename timer-related functions and variables (#5896)Jordan Longstaff
2025-12-04Add in Progressive Bombchu Bags (#5836)Christopher Leggett
* Adds new Progressive Bombchu Bags option Also changes existing code to account for Bombchu Bags becoming a drop down with 3 values instead of a checkbox * Handle the new lower capacities for ammo refills * Handle what happens when receiving a bombchu bag * Remove the trick name of Progressive Bombchu Bag Since, you know, that's an actual thing now. * Implements Bombchu Bag handling next to Progressive Bombchu Handling * clang-formatting * Add extra bag for plentiful items * Address review comment * Move bombchu upgrade level to gSaveContext and add save/load * Use logic's saveContext for correct logic calculations * Remove RG_PROGRESSIVE_BOMBCHU * Fix Bombchu Refill obtainability * Don't add normal chus to the pool if chu bags are on. * cmake-format * Properly reset bombchuUpgradeLevel on savefile init * Fix error with va_arg on linux * Fixes small error in the Bombchu Bag description * Fix bug with bombchu obtainability * clang-format * Fix infinite bombchu text * fix clang-format
2025-11-24Modularize Hurt Container mode hook (#5874)Jordan Longstaff
* Modularize Hurt Container mode hook * Hook condition was wrong - fixed it * Change type of hurtEnabled for clarity * Change type back to bool * Add VB hook * Don't duplicate health capacity modifier calculation * Add constants, replace magic numbers * Clang format * Publicize more health unit macros * Make mod file self-contained
2025-08-13Boss Rush cleanup (#5652)Pepe20129
* Reduce stuff in the `.h`s & use `COND_HOOK` + variants * Move some boss rush stuff from `z_file_choose.c` * clang * Update BossRush.cpp
2025-06-11Convert actor health bars to use ObjectExtension (#5565)Rozelette
2025-05-16Merge pull request #5497 from HarbourMasters/develop-blairMalkierian
blair -> dev
2025-05-01a11y: read out changes in action button (#5421)Philip Dubé
* a11y: read out changes in action button * remove drop & throw & putaway * down when on horse * typos
2025-04-23Fix C-Down Position with Anchor Left (#5423)Eric Hoey
2025-04-15Implements a rand inf for Ruto's letter to apply to logic to track it ↵Malkierian
separate from the underwater item check. (#5405)
2025-04-11Move processing for RAND_INF_WEIRD_EGG to trade item processing so it ↵Malkierian
happens whenever you get the egg. (#5382) Remove RSK check for garden entrance because access is still handled by `CanUse(RG_WEIRD_EGG)`.
2025-04-01Apply clang-format to files (#5273)Archez
2025-03-31Prevent GameplayStats and TimeDisplay from getting reset on ship json drag ↵Christopher Leggett
and drop (#5269)
2025-03-30Replace old methods with ShipUtils (#5151)Archez
* Replace old methods with ShipUtils * remove PAL naming
2025-03-30NTSC Support (N64) (#4198)inspectredc
* copy n64 pal 10 doing this so i can check diffs i make * transfer german->jp icon item * overlays, message data, icon item jpn, audio, code todo: title_static, gameplay keep * add kanji and fix title cards * title static * spell folder correctly * boss title cards, do action, icon item, item name, map name * headers for jpn stuff * gameplay_keep * Scenes, audio, jp text extraction, rom support, overlay fixes, sheik & darunia todo: test & disable darunia fix cvar for ntsc * msgptr init fix * icon item offsets * comment out title cards until zapd can fix itself (we extract these in a different file anyway) * compile and font implemented to get past title screen * file select * message, kaleido and everything else but rando * uintptr_t * rando and custom messages working! * ntsc-j 1.0 support * n64 logo? * copy ntsc 10 to 11 * ntsc 11 extraction * change title version names * copy ntsc 11 to 12 * ntsc 12 extraction * clean up some todos * re checkout submodules post merge * fix US filename * support cross-version filenames * add new versions to non-mq list * use correct message table init * Fix ntsc nes message table overriding pal nes message table * actual fix, allows extraction * fix file name using wrong font of file being hovered over * Fix barinade crash * re-add pal * better jabu fix and revert LUS * fix gerudo title cards * better better owl select * more owl fixes * build * fix some name decode issues * Switch Language Mid Text * Fix PAL displaying for JP filenames * Fix AskToEquip Crash * Disable Credits Timing Fix on NTSC * Fix JP Text positioning * basic language switching (BIG todo: file select, title screen) * Title Screen Hopefully working * add ntsc to linux appimage stuff, TODO: add .v64/.n64 support * Update OTRExporter * Fix pause to decide offset * Fix bomb item name crash * fix fire arrows and PoH * builds * update asset changes and fix menu language changing * fix name decode * Fix crashes and add rando/boss rush select stuff * Revive debug feature by setting language cvar too * Fix ocarina text speed softlock, and update jp text speed changes * Merge remote-tracking branch 'upstream/develop' into NTSC * Fix options menu and let pal use japanese fully * Resolve some suggestions * match up gTextSpeed changes to english (still broken!) * Fix text speed crash * Set default filename language on save init funcs * bump otrexporter * Display same correct info for n64 ntsc-j and ntsc-u * quicktext more closely aligned with decomp * linux appimage v64/n64 checksums * bump zapd * Credits Fix Tooltip Adjusted * update supported hashes json * update shasums to include JP n64
2025-03-26shipinit (r)ba (#5025)briaguya
* RBA and BA * move rba to shipinit * make the vanilla condition actually a vanilla condition * update should docs * move ba to shipinit * don't pass things * try a different readability strategy * remove option/preset entries --------- Co-authored-by: rozlette <Rozelette@users.noreply.github.com>
2025-03-19Menu - Enhancements and cheats re-organisation (#5142)aMannus
* First pass cheats, extra modes, minigames, difficulty, fixes, graphics * More progress. One tab left * Enhancements & cheats done and fix for item tracker font
2025-02-25Trade cleanup (#4971)Pepe20129
* Move adult trade to flags * Move child trade to flags * Fix vanilla * Address review * Rename `trade_shuffle` to `ShuffleTradeItems` * Fix mac build * Update GIVanillaBehavior.h * Update z_kankyo.c * Update z_en_heishi2.c
2025-02-25Use gamemode enum (#5089)Archez
* Use gamemode enum * update console command for file_select
2025-02-19Use VB hook to fix Deku Nut upgrade bug (#5047)Jordan Longstaff
* Use VB hook to fix Deku Nut upgrade bug * Use constexpr, remove unused extern * Separate IS_RANDO out of value macro * Restore mask check in hook * Call VB hook in SkipMiscInteractions hook * Mask of Truth hook not registered in rando
2025-02-12Created and implemented PosType enum (#5046)Miles Acquaviva
* Created and implemented PosType enum * fixed formatting --------- Co-authored-by: link5669 <acqmiles@gmail.com>
2025-01-15Organize ship specific save context additions (#4597)Pepe20129
* Basic restructure * Undo most randomizerInf changes for now * Small fixes * Fix linux & mac builds? * Fix remnants of randomizerInf changes * Post-merge fix * Post-merge fix
2025-01-03Fix Broken Giant's Knife flag not resetting (#4608)Jordan Longstaff
* Fix Broken Giant's Knife flag not resetting * Force setting on in rando * Fix flag when checkbox is toggled
2024-12-03Add Timer Display Window (#4553)Caladius
* Add new timer window and display options * Fix overflow spacing * Icons for Timers * Swap Labels for Icons. * Additional Timers * Navi Timer Icon * Clean up unused Defines. * Code clean up and double check. Ready for Review * Update from Suggestions * Update magic numbers, correct indentations hopefully * One moooooore thing * Undo z_param change * Updates
2024-11-29Cosmetics cleanup (#4587)Malkierian
* Convert defaultColor from ImVec4 to Color_RGBA8. Convert defaultColor's ints to floats when being applied to currentColor in the macro. * Address previous cleanup comments. Surround `Message` tab in an advanced check. * Resolve warnings and cleanup whitespace/formatting. * Make Color_RGBA8 constructing function because... platform differences... * Function name clarification. * Remove default color conversion, reference default colors directly in CosmeticOption initialization.
2024-11-27Fix some situations where trade items spoiled (#4569)Pepe20129
* Fix some situations where trade items reverted * Update z_game_over.c * Hopefully fix mac
2024-11-26Cosmetics Changes (#4275)Pepe20129
* Clean CosmeticsEditor.h * Add CosmeticsEditor_GetDefaultValue * Add message text cosmetics * Format cleanup * Remove dependency on 3drando random functions * Fix rainbow for every cosmetic * Add "Rainbow All" & "Un-Rainbow All" * Add HookshotChain cosmetic * Add Nayru's cosmetics * Add Farore's cosmetics * Add Din's cosmetics * Add Title card cosmetics * Update CosmeticsEditor.cpp * Add Copyright text cosmetic
2024-11-19OTRGlobals cleanup (#4251)Pepe20129
* Remove unused headers * Move all "ResourceMgr_" functions to a new file * Don't transitively include SaveManager * Move cvar prefixes to a new header * Add missing includes * Update OTRGlobals.cpp * Fix build * Address review * Fix some of the errors * Update gameplaystats.h * Update z_en_in.c * Hopefully fix the linux issues * Fix Linux issues for real this time, I checked * Update ResourceManagerHelpers.cpp * Update z_obj_mure2.c * Post-merge fixes * Fix build (hopefully) * Post-merge fixes * Update z_file_nameset_PAL.c * cleanup some unnecessary headers (#7) --------- Co-authored-by: Archez <Archez@users.noreply.github.com>
2024-11-08Update SFX symbols from decomp (#4531)Jordan Longstaff
2024-11-06Adjustments to change age cheat and time travel enhancement (#4512)Garrett Cox