From 0aa1e20393ba7dfbc58855507dd614a5dc265242 Mon Sep 17 00:00:00 2001 From: Quorthon13 <44161862+Quorthon13@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:15:45 -0300 Subject: [PATCH 1/2] Cheats: Improved horse controls One option for the ridden horse, in Cheats, off by default. It replaces Sure-footed horse and adds to it: - The horse answers the stick at once. The game squares the stick's x, eases the steering in slowly (rate 0.06 per 30 fps frame) and cuts it to a half at the gallop; with the option on the stick goes in as it is, the steering follows it about three times as fast, and the canter and gallop keep more of it (0.93 and 0.7). - The horse keeps its speed through a turn. A turn blends the gallop into a turning run that covers less ground (a fifth less at a sharp turn); the option raises the horse's play rate by what that run loses. - A running horse no longer stops dead and rears at an obstacle or a cliff edge (Sure-footed horse, unchanged). The option's ini key is improved_horse. The old sure_footed key is no longer read: anyone who had Sure-footed horse on turns the new option on. --- docs/cheats-and-assists.md | 2 +- runtime/control_settings.c | 2 +- runtime/improved_horse.c | 59 +++++++++++++++++++++++++++++++++++++ runtime/settings.c | 4 +-- runtime/settings.h | 3 +- runtime/sure_footed.c | 9 +++--- runtime/ui/i18n/de.inc | 4 +-- runtime/ui/i18n/es.inc | 4 +-- runtime/ui/i18n/fr.inc | 4 +-- runtime/ui/i18n/he.inc | 4 +-- runtime/ui/i18n/it.inc | 4 +-- runtime/ui/i18n/ja.inc | 4 +-- runtime/ui/i18n/ko.inc | 4 +-- runtime/ui/i18n/nl.inc | 4 +-- runtime/ui/i18n/pt.inc | 4 +-- runtime/ui/i18n/ru.inc | 4 +-- runtime/ui/i18n/th.inc | 4 +-- runtime/ui/i18n/zh-Hans.inc | 4 +-- runtime/ui/i18n/zh-Hant.inc | 4 +-- runtime/ui/menu.mm | 9 +++--- tools/game_sites.py | 16 ++++++++-- tools/patches.py | 52 ++++++++++++++++++++++++++------ 22 files changed, 158 insertions(+), 50 deletions(-) create mode 100644 runtime/improved_horse.c diff --git a/docs/cheats-and-assists.md b/docs/cheats-and-assists.md index 13cedc695..15908e425 100644 --- a/docs/cheats-and-assists.md +++ b/docs/cheats-and-assists.md @@ -84,7 +84,7 @@ game is shipped with Savage Wind. | Weather | Holds the weather you pick (clear, cloudy, rain, heavy rain, snow, heavy snow, thunderstorm, thunder rain, rain in sunshine), or keeps out rain or thunderstorms. Automatic is the game's own. Cutscenes keep their weather. | | Free sprint out of combat | Sprinting on the ground takes no stamina while no enemy is fighting you. Once enemies start the battle music, sprinting costs stamina again until the music fades. Climbing, swimming, gliding and attacks cost stamina as usual. | | Item pickup multiplier | Multiplies the stackable items you pick up (materials, monster parts, arrows) by 2, 4 or 8, up to 999. | -| Sure-footed horse | A running horse no longer stops dead and rears when it runs into something, even a small rock. It no longer stops at cliff edges either: mind where you ride. | +| Improved horse controls | The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed in the turn. A running horse no longer stops dead and rears when it runs into something, even a small rock. It no longer stops at cliff edges either: mind where you ride. | | Show shrines and towers | Shows every shrine, tower, stable and ancient lab on the map, and makes the shrines, towers and labs travel destinations (a stable is shown but never travelled to). Nothing is saved and no tower is activated, so the map fog stays as it is. | ### Collectible hints on the map diff --git a/runtime/control_settings.c b/runtime/control_settings.c index 5d6b7e80d..456b52269 100644 --- a/runtime/control_settings.c +++ b/runtime/control_settings.c @@ -63,7 +63,7 @@ static const Setting settings[] = { {"color_lut", g_settings.color_lut, TEXT, 0, 0, NULL}, I(color_lut_strength, 0, 100, NULL), B(color_lut_set), B(no_weapon_wear), I(weapon_wear, WEAPON_WEAR_MIN, WEAPON_WEAR_MAX, NULL), B(infinite_arrows), - B(infinite_stamina), B(infinite_rupees), I(item_multiplier, 1, 8, NULL), B(free_sprint), B(sure_footed), B(collectibles_map), B(show_all_places), I(weather, 0, WEATHER_COUNT - 1, + B(infinite_stamina), B(infinite_rupees), I(item_multiplier, 1, 8, NULL), B(free_sprint), B(improved_horse), B(collectibles_map), B(show_all_places), I(weather, 0, WEATHER_COUNT - 1, "game|no_rain|no_storms|clear|cloudy|rain|heavy_rain|snow|heavy_snow|thunderstorm|thunder_rain|sun_shower"), B(god_mode), B(one_hit_kill), B(silent_link), B(hero_soul_wind), B(hero_soul_electric), B(hero_soul_fire), B(hero_soul_water), I(damage_taken, 25, 400, NULL), I(damage_dealt, 25, 400, NULL), diff --git a/runtime/improved_horse.c b/runtime/improved_horse.c new file mode 100644 index 000000000..66904b127 --- /dev/null +++ b/runtime/improved_horse.c @@ -0,0 +1,59 @@ +// Cheats > Improved horse controls (settings.h improved_horse): its steering (runtime/sure_footed.c: its stops). +// The ridden horse's update (tools/patches.py _horse_ride, _horse_stick_scale, _horse_play_rate) steers from the +// stick's x as the rider hands it over: already squared (0.3 sideways arrives as 0.09, less still with the stick +// pushed forward), then scaled per gear (1, 1, 1, .8 at the canter, .5 at the gallop), then smoothed into the +// steering (action +0x268: rate 0.06 into a turn, 0.1 back out, per 30 fps frame, with the frame's delta: the same on +// a Switch). The horse turns only past a steering of about 0.1 (measured: ~170 deg/s per unit above it), so at a +// gallop the stick has to be two-thirds of the way out before anything happens. With the option on the stick's x goes +// in as it is, the steering follows it about three times as fast, and the canter and gallop keep more of it. The +// horse's own steering (roads, obstacles: the turn smoother at +0x278) is left as the game has it. +// +// A turn also slows the horse: it blends the gear's run toward a turning run (the gear's AS, from a steering of 0.1, +// all of it at 0.9) that covers about a third less ground (0.66 of the speed) at the full blend (measured at the +// gallop: 5% lost at 0.25 steering, 20% at 0.57). The steering stores the horse's play rate in its unit (+0x154), and +// the run and the turn both go with it (1.3 gallops and turns ~1.3 times as fast): with the option on it is raised by +// what the turning run loses, so the horse keeps its speed through a turn (measured flat at the gallop and the canter). +#include +#include +#include +#include + +#include "settings.h" + +#define STEER_IN 0.2f // the steering smoother's rates +#define STEER_OUT 0.3f +#define GAME_STEER_IN 0.06f // the game's, set once by the action's constructor (1.9.0 0x70006af738) +#define GAME_STEER_OUT 0.1f +static const float k_stick[5] = {1, 1, 1, .93f, .7f}; // the stick's share per gear (game 1, 1, 1, .8, .5) +#define TURN_RUN_LOSS 0.34f // the speed the turning run loses at the full blend +#define TURN_BLEND_FROM 0.1f // the steering where the turning run starts to blend in (the gear's AS) +#define TURN_BLEND_FULL 0.9f // and where it is all of the run + +static void put32(uint64_t a, float v) { memcpy((void *)(uintptr_t)a, &v, 4); } +static float get32(uint64_t a) { float v; memcpy(&v, (const void *)(uintptr_t)a, 4); return v; } + +// action: the riding action, one per horse, whose steering rates stay as last written +void rt_horse_ride(uint64_t action) { + if (g_settings.improved_horse) { + put32(action + 0x268, STEER_IN); + put32(action + 0x26c, STEER_OUT); + } else if (get32(action + 0x268) == STEER_IN && get32(action + 0x26c) == STEER_OUT) { + put32(action + 0x268, GAME_STEER_IN); // (a horse ridden while the option was on) + put32(action + 0x26c, GAME_STEER_OUT); + } +} + +// stick: the stick's x the steering is about to scale (the caller uses what this leaves there) +float rt_horse_stick_scale(int64_t gear, float game, float *stick) { + if (!g_settings.improved_horse) return game; + *stick = copysignf(sqrtf(fabsf(*stick)), *stick); + return gear >= 0 && gear <= 4 ? k_stick[gear] : game; +} + +// The play rate the steering stores in the horse's unit every update while it steers. +float rt_horse_play_rate(uint64_t action, float game) { + if (!g_settings.improved_horse) return game; + float blend = (fabsf(get32(action + 0x270)) - TURN_BLEND_FROM) / (TURN_BLEND_FULL - TURN_BLEND_FROM); + blend = blend < 0 ? 0 : blend > 1 ? 1 : blend; + return game / (1 - TURN_RUN_LOSS * blend); +} diff --git a/runtime/settings.c b/runtime/settings.c index 9bd4feaa0..718615e61 100644 --- a/runtime/settings.c +++ b/runtime/settings.c @@ -658,7 +658,7 @@ void settings_load(void) { else if (!strcmp(key, "item_multiplier")) g_settings.item_multiplier = atoi(val); else if (!strcmp(key, "free_sprint")) g_settings.free_sprint = atoi(val) != 0; else if (!strcmp(key, "show_all_places")) g_settings.show_all_places = atoi(val) != 0; - else if (!strcmp(key, "sure_footed")) g_settings.sure_footed = atoi(val) != 0; + else if (!strcmp(key, "improved_horse")) g_settings.improved_horse = atoi(val) != 0; else if (!strcmp(key, "collectibles_map")) g_settings.collectibles_map = atoi(val) != 0; else if (!strcmp(key, "weather")) { g_settings.weather = 0; @@ -974,7 +974,7 @@ bool settings_save_to(const char *path) { fprintf(f, "item_multiplier = %d\n", g_settings.item_multiplier); fprintf(f, "free_sprint = %d\n", g_settings.free_sprint); fprintf(f, "show_all_places = %d\n", g_settings.show_all_places); - fprintf(f, "sure_footed = %d\n", g_settings.sure_footed); + fprintf(f, "improved_horse = %d\n", g_settings.improved_horse); fprintf(f, "collectibles_map = %d\n", g_settings.collectibles_map); int wx = g_settings.weather; fprintf(f, "weather = %s\n", g_weather_keys[wx >= 0 && wx < WEATHER_COUNT ? wx : 0]); diff --git a/runtime/settings.h b/runtime/settings.h index 1b5fcd289..2fc1843c8 100644 --- a/runtime/settings.h +++ b/runtime/settings.h @@ -250,7 +250,8 @@ typedef struct { bool infinite_rupees; // the wallet is kept at 9999 rupees (runtime/rupees.c) int item_multiplier; // 1, 2, 4 or 8: multiply stackable item pickups (runtime/items.c) bool free_sprint; // sprinting takes no stamina while no enemy is fighting Link (runtime/free_sprint.c) - bool sure_footed; // a running horse doesn't stop dead and rear when it hits something (runtime/sure_footed.c) + bool improved_horse; // the horse steers at once, keeps its speed through a turn, and doesn't stop dead and rear + // when it hits something (runtime/improved_horse.c, runtime/sure_footed.c) bool collectibles_map; // the Korok seeds and shrines not found yet on the game's map (runtime/collectibles_map.c) bool show_all_places; // every shrine, tower, lab and stable on the map (runtime/place_display.c) int weather; // WEATHER_COUNT: the game's, rain or thunderstorms kept out, or one weather held (weather.c) diff --git a/runtime/sure_footed.c b/runtime/sure_footed.c index e1fb94e34..44a31a938 100644 --- a/runtime/sure_footed.c +++ b/runtime/sure_footed.c @@ -1,6 +1,7 @@ -// Cheats > Sure-footed horse (settings.h sure_footed): a running horse no longer stops dead and rears (Crash or -// Courbette) when it runs into something. The patches at the horse's crash check and at its stop check's look-ahead -// ask here (tools/patches.py _horse_crash, _horse_look_ahead); with the option on no obstacle stops the horse. +// Cheats > Improved horse controls (settings.h improved_horse), with runtime/improved_horse.c: a running horse no +// longer stops dead and rears (Crash or Courbette) when it runs into something. The patches at the horse's crash +// check and at its stop check's look-ahead ask here (tools/patches.py _horse_crash, _horse_look_ahead); with the option +// on no obstacle stops the horse. #include "settings.h" -int rt_sure_footed(void) { return g_settings.sure_footed; } +int rt_sure_footed(void) { return g_settings.improved_horse; } diff --git a/runtime/ui/i18n/de.inc b/runtime/ui/i18n/de.inc index 98b8c277e..20defcd50 100644 --- a/runtime/ui/i18n/de.inc +++ b/runtime/ui/i18n/de.inc @@ -544,8 +544,8 @@ T("Weather", "Wetter") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "Hält das gewählte Wetter oder hält Regen oder Gewitter fern. Zwischensequenzen behalten ihr eigenes.") T("Free sprint out of combat", "Freier Sprint außerhalb von Kämpfen") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "Sprinten kostet keine Ausdauer, solange dich kein Gegner bekämpft. Sobald die Kampfmusik einsetzt, kostet Sprinten wieder Ausdauer.") -T("Sure-footed horse", "Trittsicheres Pferd") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "Ein laufendes Pferd bleibt nicht mehr abrupt stehen und bäumt sich auf, wenn es gegen etwas läuft. Auch an Klippenrändern bleibt es nicht mehr stehen.") +T("Improved horse controls", "Bessere Pferdesteuerung") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "Das Pferd reagiert sofort auf den Stick, auch auf kleine Bewegungen, und lenkt im Kanter und Galopp schärfer, ohne Tempo zu verlieren. Es bleibt nicht mehr abrupt stehen und bäumt sich auf, wenn es gegen etwas läuft, auch nicht an Klippenrändern.") T("Collectible hints on the map", "Sammelobjekt-Hinweise auf der Karte") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Halte auf der Karte des Spiels Steuerkreuz unten gedrückt, um blasse Kreise um die Krog-Samen und Schreine zu sehen, die du noch nicht gefunden hast, und wie viele die Region unter dem Cursor hat. Nur in Regionen, deren Turm du aktiviert hast.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Halte auf der Karte des Spiels Steuerkreuz unten oder %s gedrückt, um blasse Kreise um die Krog-Samen und Schreine zu sehen, die du noch nicht gefunden hast, und wie viele die Region unter dem Cursor hat. Nur in Regionen, deren Turm du aktiviert hast.") diff --git a/runtime/ui/i18n/es.inc b/runtime/ui/i18n/es.inc index 60b050041..e8e0c28ab 100644 --- a/runtime/ui/i18n/es.inc +++ b/runtime/ui/i18n/es.inc @@ -535,8 +535,8 @@ T("Weather", "Clima") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "Mantiene el clima que elijas, o evita la lluvia o las tormentas. Las cinemáticas mantienen el suyo.") T("Free sprint out of combat", "Correr gratis fuera de combate") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "Correr no gasta vigor mientras ningún enemigo te esté atacando. En cuanto empieza la música de combate, correr vuelve a gastar vigor.") -T("Sure-footed horse", "Caballo de paso firme") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "Un caballo en marcha ya no se detiene en seco ni se encabrita al chocar con algo. Tampoco se detiene ya al borde de los precipicios.") +T("Improved horse controls", "Mejor control del caballo") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "El caballo responde al instante al stick, incluso a toques pequeños, y gira más cerrado al medio galope y al galope sin perder velocidad. Ya no se detiene en seco ni se encabrita al chocar con algo, ni al borde de los precipicios.") T("Collectible hints on the map", "Pistas de coleccionables en el mapa") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Mantén pulsada la cruceta abajo en el mapa del juego para ver círculos tenues alrededor de las semillas kolog y los santuarios que aún no has encontrado, y cuántos tiene la región bajo el cursor. Solo en las regiones cuya torre has activado.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Mantén pulsada la cruceta abajo o %s en el mapa del juego para ver círculos tenues alrededor de las semillas kolog y los santuarios que aún no has encontrado, y cuántos tiene la región bajo el cursor. Solo en las regiones cuya torre has activado.") diff --git a/runtime/ui/i18n/fr.inc b/runtime/ui/i18n/fr.inc index 692350e4c..80c977640 100644 --- a/runtime/ui/i18n/fr.inc +++ b/runtime/ui/i18n/fr.inc @@ -544,8 +544,8 @@ T("Weather", "Météo") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "Garde la météo choisie, ou écarte la pluie ou les orages. Les cinématiques gardent la leur.") T("Free sprint out of combat", "Sprint gratuit hors combat") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "Sprinter ne consomme pas d'endurance tant qu'aucun ennemi ne vous combat. Dès que la musique de combat commence, sprinter consomme à nouveau de l'endurance.") -T("Sure-footed horse", "Cheval au pied sûr") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "Un cheval lancé ne s'arrête plus net en se cabrant quand il heurte quelque chose. Il ne s'arrête plus non plus au bord des falaises.") +T("Improved horse controls", "Meilleur contrôle du cheval") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "Le cheval répond tout de suite au stick, même aux petites touches, et tourne plus serré au petit et au grand galop sans perdre de vitesse. Il ne s'arrête plus net en se cabrant quand il heurte quelque chose, ni au bord des falaises.") T("Collectible hints on the map", "Indices de collection sur la carte") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Maintenez la croix bas sur la carte du jeu pour voir des cercles discrets autour des noix korogu et des sanctuaires que vous n'avez pas encore trouvés, et combien en compte la région sous le curseur. Seulement dans les régions dont vous avez activé la tour.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Maintenez la croix bas ou %s sur la carte du jeu pour voir des cercles discrets autour des noix korogu et des sanctuaires que vous n'avez pas encore trouvés, et combien en compte la région sous le curseur. Seulement dans les régions dont vous avez activé la tour.") diff --git a/runtime/ui/i18n/he.inc b/runtime/ui/i18n/he.inc index 9939b5ca8..b8b96b32c 100644 --- a/runtime/ui/i18n/he.inc +++ b/runtime/ui/i18n/he.inc @@ -703,8 +703,8 @@ T("Weather", "מזג אוויר") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "שומר על מזג האוויר שבחרת, או מונע גשם או סופות רעמים. סצנות קולנועיות שומרות על שלהן.") T("Free sprint out of combat", "ריצה חופשית מחוץ לקרב") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "ריצה לא צורכת סיבולת כל עוד אף אויב לא נלחם בך. ברגע שמוזיקת הקרב מתחילה, הריצה שוב צורכת סיבולת.") -T("Sure-footed horse", "סוס יציב") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "סוס בריצה כבר לא נעצר בבת אחת ומתרומם על רגליו האחוריות כשהוא נתקל במשהו. הוא גם כבר לא נעצר בקצה צוקים.") +T("Improved horse controls", "שליטה משופרת בסוס") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "הסוס מגיב מיד לסטיק, גם לתנועות קטנות, ופונה חד יותר בקנטר ובדהירה בלי לאבד מהירות. הוא כבר לא נעצר בבת אחת ומתרומם על רגליו האחוריות כשהוא נתקל במשהו, וגם לא בשולי צוקים.") T("Collectible hints on the map", "רמזים לפריטי אספנות במפה") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "החזק את לחצן הכיוון למטה במפת המשחק כדי לראות עיגולים עמומים סביב זרעי הקורוק והמקדשים שעוד לא מצאת, וכמה יש באזור שמתחת לסמן. רק באזורים שאת המגדל שלהם הפעלת.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "החזק את לחצן הכיוון למטה או %s במפת המשחק כדי לראות עיגולים עמומים סביב זרעי הקורוק והמקדשים שעוד לא מצאת, וכמה יש באזור שמתחת לסמן. רק באזורים שאת המגדל שלהם הפעלת.") diff --git a/runtime/ui/i18n/it.inc b/runtime/ui/i18n/it.inc index 38b4bfabb..397c00a85 100644 --- a/runtime/ui/i18n/it.inc +++ b/runtime/ui/i18n/it.inc @@ -544,8 +544,8 @@ T("Weather", "Meteo") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "Mantiene il meteo scelto, o tiene lontani pioggia o temporali. Le scene d'intermezzo mantengono il loro.") T("Free sprint out of combat", "Scatto libero fuori dal combattimento") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "Scattare non consuma vigore finché nessun nemico ti sta combattendo. Appena parte la musica di battaglia, scattare consuma di nuovo vigore.") -T("Sure-footed horse", "Cavallo dal passo sicuro") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "Un cavallo in corsa non si ferma più di colpo impennandosi quando urta qualcosa. Non si ferma più nemmeno sul ciglio dei dirupi.") +T("Improved horse controls", "Controllo del cavallo migliorato") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "Il cavallo risponde subito allo stick, anche ai piccoli tocchi, e curva più stretto al piccolo e al grande galoppo senza perdere velocità. Non si ferma più di colpo impennandosi quando urta qualcosa, né sul ciglio dei dirupi.") T("Collectible hints on the map", "Indizi sui collezionabili nella mappa") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Tieni premuto croce giù sulla mappa del gioco per vedere dei cerchi tenui attorno ai semi Korogu e ai sacrari che non hai ancora trovato, e quanti ne ha la regione sotto il cursore. Solo nelle regioni di cui hai attivato la torre.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Tieni premuto croce giù o %s sulla mappa del gioco per vedere dei cerchi tenui attorno ai semi Korogu e ai sacrari che non hai ancora trovato, e quanti ne ha la regione sotto il cursore. Solo nelle regioni di cui hai attivato la torre.") diff --git a/runtime/ui/i18n/ja.inc b/runtime/ui/i18n/ja.inc index 4175a9400..dbbc0c687 100644 --- a/runtime/ui/i18n/ja.inc +++ b/runtime/ui/i18n/ja.inc @@ -544,8 +544,8 @@ T("Weather", "天気") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "選んだ天気を保つか、雨や雷雨を起こさないようにします。ムービーは元の天気のままです。") T("Free sprint out of combat", "戦闘外ダッシュでがんばり消費なし") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "敵と戦っていない間は、ダッシュでがんばりが減りません。戦闘の音楽が始まると、ダッシュで再びがんばりが減ります。") -T("Sure-footed horse", "つまずかない馬") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "走っている馬が何かにぶつかっても、急に止まって前足を上げなくなります。崖のふちでも止まらなくなります。") +T("Improved horse controls", "馬の操作を改善") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "馬がスティックにすぐ反応し、小さな入力にも応えます。キャンターとギャロップでより鋭く曲がり、速度も落ちません。何かにぶつかっても急に止まって前足を上げず、崖のふちでも止まりません。") T("Collectible hints on the map", "マップに収集物のヒントを表示") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "ゲームのマップで十字ボタン下を押し続けると、まだ見つけていないコログのミと祠のまわりに淡い円が表示され、カーソルの下の地方に残りがいくつあるかもわかります。塔を起動した地方だけです。") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "ゲームのマップで十字ボタン下または%sを押し続けると、まだ見つけていないコログのミと祠のまわりに淡い円が表示され、カーソルの下の地方に残りがいくつあるかもわかります。塔を起動した地方だけです。") diff --git a/runtime/ui/i18n/ko.inc b/runtime/ui/i18n/ko.inc index 83e7fdacc..13d737e4b 100644 --- a/runtime/ui/i18n/ko.inc +++ b/runtime/ui/i18n/ko.inc @@ -544,8 +544,8 @@ T("Weather", "날씨") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "선택한 날씨를 유지하거나 비나 뇌우를 막습니다. 컷신은 원래 날씨를 유지합니다.") T("Free sprint out of combat", "전투 외 달리기 기력 소모 없음") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "적과 싸우고 있지 않을 때는 달리기에 기력이 들지 않습니다. 전투 음악이 시작되면 달리기에 다시 기력이 듭니다.") -T("Sure-footed horse", "흔들림 없는 말") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "달리는 말이 무언가에 부딪혀도 갑자기 멈춰 서서 앞발을 들지 않습니다. 절벽 끝에서도 더 이상 멈추지 않습니다.") +T("Improved horse controls", "향상된 말 조작") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "말이 스틱에 즉시 반응하며 작은 입력에도 반응합니다. 구보와 습보에서 더 날카롭게 돌고 속도를 잃지 않습니다. 무언가에 부딪혀도 갑자기 멈춰 서서 앞발을 들지 않으며, 절벽 끝에서도 멈추지 않습니다.") T("Collectible hints on the map", "지도에 수집품 힌트 표시") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "게임 지도에서 방향 버튼 아래를 누르고 있으면 아직 찾지 못한 코로그의 열매와 사당 주위에 희미한 원이 보이고, 커서 아래 지방에 몇 개가 있는지도 보입니다. 탑을 기동한 지방에서만 보입니다.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "게임 지도에서 방향 버튼 아래 또는 %s을(를) 누르고 있으면 아직 찾지 못한 코로그의 열매와 사당 주위에 희미한 원이 보이고, 커서 아래 지방에 몇 개가 있는지도 보입니다. 탑을 기동한 지방에서만 보입니다.") diff --git a/runtime/ui/i18n/nl.inc b/runtime/ui/i18n/nl.inc index dc0c934dc..a94d5b639 100644 --- a/runtime/ui/i18n/nl.inc +++ b/runtime/ui/i18n/nl.inc @@ -544,8 +544,8 @@ T("Weather", "Weer") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "Houdt het gekozen weer vast, of houdt regen of onweer buiten. Tussenfilmpjes houden hun eigen weer.") T("Free sprint out of combat", "Gratis sprinten buiten gevechten") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "Sprinten kost geen uithoudingsvermogen zolang geen vijand tegen je vecht. Zodra de gevechtsmuziek begint, kost sprinten weer uithoudingsvermogen.") -T("Sure-footed horse", "Trefzeker paard") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "Een rennend paard stopt niet meer abrupt en steigert niet meer als het ergens tegenaan loopt. Het stopt ook niet meer aan de rand van een klif.") +T("Improved horse controls", "Betere paardbesturing") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "Het paard reageert direct op de stick, ook op kleine bewegingen, en draait scherper in handgalop en galop zonder snelheid te verliezen. Het stopt niet meer abrupt en steigert niet meer als het ergens tegenaan loopt, ook niet aan de rand van kliffen.") T("Collectible hints on the map", "Hints voor verzamelobjecten op de kaart") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Houd D-pad omlaag ingedrukt op de kaart van het spel om vage cirkels te zien rond de Korok-zaadjes en tempels die je nog niet hebt gevonden, en hoeveel de regio onder de cursor er heeft. Alleen in regio's waarvan je de toren hebt geactiveerd.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Houd D-pad omlaag of %s ingedrukt op de kaart van het spel om vage cirkels te zien rond de Korok-zaadjes en tempels die je nog niet hebt gevonden, en hoeveel de regio onder de cursor er heeft. Alleen in regio's waarvan je de toren hebt geactiveerd.") diff --git a/runtime/ui/i18n/pt.inc b/runtime/ui/i18n/pt.inc index 0b7dc092c..1978ca00c 100644 --- a/runtime/ui/i18n/pt.inc +++ b/runtime/ui/i18n/pt.inc @@ -544,8 +544,8 @@ T("Weather", "Clima") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "Mantém o clima escolhido, ou evita chuva ou tempestades. As cenas mantêm o seu.") T("Free sprint out of combat", "Correr de graça fora de combate") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "Correr não gasta vigor enquanto nenhum inimigo estiver lutando com você. Assim que a música de combate começa, correr volta a gastar vigor.") -T("Sure-footed horse", "Cavalo de passo firme") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "Um cavalo em movimento não para mais de repente nem empina ao bater em algo. Também não para mais na beira de penhascos.") +T("Improved horse controls", "Controle do cavalo aprimorado") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "O cavalo responde na hora ao analógico, até a toques pequenos, e faz curvas mais fechadas no meio-galope e no galope sem perder velocidade. Não para mais de repente nem empina ao bater em algo, nem na beira de penhascos.") T("Collectible hints on the map", "Dicas de colecionáveis no mapa") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Segure o direcional para baixo no mapa do jogo para ver círculos suaves ao redor das sementes Korok e dos santuários que você ainda não encontrou, e quantos a região sob o cursor tem. Só nas regiões cuja torre você ativou.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Segure o direcional para baixo ou %s no mapa do jogo para ver círculos suaves ao redor das sementes Korok e dos santuários que você ainda não encontrou, e quantos a região sob o cursor tem. Só nas regiões cuja torre você ativou.") diff --git a/runtime/ui/i18n/ru.inc b/runtime/ui/i18n/ru.inc index da69aecb0..aec144bf6 100644 --- a/runtime/ui/i18n/ru.inc +++ b/runtime/ui/i18n/ru.inc @@ -544,8 +544,8 @@ T("Weather", "Погода") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "Удерживает выбранную погоду или не допускает дождя или гроз. В роликах погода своя.") T("Free sprint out of combat", "Бесплатный бег вне боя") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "Бег не тратит выносливость, пока с вами не сражается ни один враг. Как только начинается боевая музыка, бег снова тратит выносливость.") -T("Sure-footed horse", "Устойчивый конь") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "Бегущая лошадь больше не останавливается как вкопанная и не встаёт на дыбы, налетев на что-то. У края обрыва она тоже больше не останавливается.") +T("Improved horse controls", "Улучшенное управление конём") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "Конь сразу слушается стика, даже лёгких движений, и круче поворачивает на кентере и галопе, не теряя скорости. Он больше не останавливается как вкопанный и не встаёт на дыбы, наткнувшись на что-то, и не замирает у края обрыва.") T("Collectible hints on the map", "Подсказки о коллекционных предметах на карте") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Удерживайте крестовину вниз на карте игры, чтобы увидеть бледные круги вокруг ещё не найденных семян короков и святилищ и сколько их в регионе под курсором. Только в регионах, где вы активировали башню.") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "Удерживайте крестовину вниз или %s на карте игры, чтобы увидеть бледные круги вокруг ещё не найденных семян короков и святилищ и сколько их в регионе под курсором. Только в регионах, где вы активировали башню.") diff --git a/runtime/ui/i18n/th.inc b/runtime/ui/i18n/th.inc index 3f5faf9d0..7ac75e6fe 100644 --- a/runtime/ui/i18n/th.inc +++ b/runtime/ui/i18n/th.inc @@ -255,8 +255,8 @@ T("Weather", "สภาพอากาศ") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "คงสภาพอากาศที่คุณเลือก หรือกันฝนหรือพายุฝนฟ้าคะนองออกไป คัตซีนยังคงสภาพอากาศของตัวเอง") T("Free sprint out of combat", "วิ่งเร็วฟรีนอกการต่อสู้") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "การวิ่งเร็วไม่ใช้พลังกายขณะที่ไม่มีศัตรูต่อสู้กับคุณ เมื่อเพลงต่อสู้เริ่มขึ้น การวิ่งเร็วจะใช้พลังกายอีกครั้ง") -T("Sure-footed horse", "ม้าเท้ามั่นคง") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "ม้าที่กำลังวิ่งจะไม่หยุดกะทันหันและยกขาหน้าขึ้นอีกเมื่อชนสิ่งใด และจะไม่หยุดที่ขอบหน้าผาอีกด้วย") +T("Improved horse controls", "การควบคุมม้าที่ดีขึ้น") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "ม้าตอบสนองต่อสติ๊กทันที แม้ขยับเพียงเล็กน้อย และเลี้ยวได้แคบขึ้นขณะควบและวิ่งเต็มฝีเท้าโดยไม่เสียความเร็ว ม้าจะไม่หยุดกะทันหันและยกขาหน้าขึ้นเมื่อชนสิ่งใด และไม่หยุดที่ขอบหน้าผาอีกต่อไป") T("Collectible hints on the map", "คำใบ้ของสะสมบนแผนที่") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "กดปุ่มทิศทางลงค้างไว้บนแผนที่ของเกม เพื่อดูวงกลมจาง ๆ รอบเมล็ดโคร็อกและเทวสถานที่คุณยังไม่พบ และจำนวนที่เหลือในภูมิภาคใต้เคอร์เซอร์ เฉพาะภูมิภาคที่คุณเปิดใช้งานหอคอยแล้ว") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "กดปุ่มทิศทางลงหรือ %s ค้างไว้บนแผนที่ของเกม เพื่อดูวงกลมจาง ๆ รอบเมล็ดโคร็อกและเทวสถานที่คุณยังไม่พบ และจำนวนที่เหลือในภูมิภาคใต้เคอร์เซอร์ เฉพาะภูมิภาคที่คุณเปิดใช้งานหอคอยแล้ว") diff --git a/runtime/ui/i18n/zh-Hans.inc b/runtime/ui/i18n/zh-Hans.inc index 01fa0d680..713f9e3e0 100644 --- a/runtime/ui/i18n/zh-Hans.inc +++ b/runtime/ui/i18n/zh-Hans.inc @@ -544,8 +544,8 @@ T("Weather", "天气") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "保持你选择的天气,或避免下雨或雷雨。过场动画保持原有天气。") T("Free sprint out of combat", "非战斗时冲刺不耗精力") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "没有敌人与你战斗时,冲刺不消耗精力。战斗音乐一响起,冲刺就会再次消耗精力。") -T("Sure-footed horse", "稳健的马") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "奔跑的马撞到东西时不再突然停下扬起前蹄。在悬崖边也不再停下。") +T("Improved horse controls", "改进的骑马操控") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "马会立即响应摇杆,轻微推动也有反应;跑步和全速奔跑时转弯更急,也不掉速。撞到东西时不再突然停下扬起前蹄,在悬崖边也不再停下。") T("Collectible hints on the map", "在地图上显示收集品提示") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "在游戏地图上按住十字键下,可以看到尚未找到的克洛格果实和神庙周围的淡淡圆圈,以及光标所在地区还有多少。仅限已启动高塔的地区。") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "在游戏地图上按住十字键下或 %s,可以看到尚未找到的克洛格果实和神庙周围的淡淡圆圈,以及光标所在地区还有多少。仅限已启动高塔的地区。") diff --git a/runtime/ui/i18n/zh-Hant.inc b/runtime/ui/i18n/zh-Hant.inc index cd6907c68..27fca38fa 100644 --- a/runtime/ui/i18n/zh-Hant.inc +++ b/runtime/ui/i18n/zh-Hant.inc @@ -544,8 +544,8 @@ T("Weather", "天氣") T("Holds the weather you pick, or keeps out rain or thunderstorms. Cutscenes keep theirs.", "保持你選擇的天氣,或避免下雨或雷雨。過場動畫保持原有天氣。") T("Free sprint out of combat", "非戰鬥時衝刺不耗精力") T("Sprinting takes no stamina while no enemy is fighting you. Once the battle music starts, sprinting costs stamina again.", "沒有敵人與你戰鬥時,衝刺不消耗精力。戰鬥音樂一響起,衝刺就會再次消耗精力。") -T("Sure-footed horse", "穩健的馬") -T("A running horse no longer stops dead and rears when it runs into something. It no longer stops at cliff edges either.", "奔跑的馬撞到東西時不再突然停下揚起前蹄。在懸崖邊也不再停下。") +T("Improved horse controls", "改良的騎馬操控") +T("The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges.", "馬會立即回應搖桿,輕微推動也有反應;跑步和全速奔跑時轉彎更急,也不掉速。撞到東西時不再突然停下揚起前蹄,在懸崖邊也不再停下。") T("Collectible hints on the map", "在地圖上顯示收集品提示") T("Hold D-pad Down on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "在遊戲地圖上按住十字鍵下,可以看到尚未找到的克洛格果實和神廟周圍的淡淡圓圈,以及游標所在地區還有多少。僅限已啟動高塔的地區。") T("Hold D-pad Down or %s on the game's map to see faint circles around the Korok seeds and shrines you haven't found yet, and how many the region under the cursor has. Only in regions whose tower you have activated.", "在遊戲地圖上按住十字鍵下或 %s,可以看到尚未找到的克洛格果實和神廟周圍的淡淡圓圈,以及游標所在地區還有多少。僅限已啟動高塔的地區。") diff --git a/runtime/ui/menu.mm b/runtime/ui/menu.mm index bdcf2a63a..4988ff6be 100644 --- a/runtime/ui/menu.mm +++ b/runtime/ui/menu.mm @@ -1644,7 +1644,8 @@ static void tab_audio(void) { // Cheats: what hands the player things or changes the world (the game's own menus keep to options and assists, so // these are only here). The same as the developer console commands next to them (rupees: runtime/rupees.c; -// weather: runtime/weather.c). Free sprint: runtime/free_sprint.c. Sure-footed horse, menu only: runtime/sure_footed.c. +// weather: runtime/weather.c). Free sprint: runtime/free_sprint.c. Improved horse controls, menu only: +// runtime/improved_horse.c and runtime/sure_footed.c. // The assists below are Options > Accessibility's own settings (runtime/assists.c), the same rows here; the hour is the // console's `time` (runtime/services/test_warp.c), the blood moon its `bloodmoon` (runtime/blood_moon.c). extern "C" bool rupees_set(int32_t count); @@ -1801,9 +1802,9 @@ static void cheats_options(void) { } opt_section("Travel"); - opt_toggle("Sure-footed horse", &g_settings.sure_footed, false, - "A running horse no longer stops dead and rears when it runs into something." - " It no longer stops at cliff edges either."); + opt_toggle("Improved horse controls", &g_settings.improved_horse, false, + "The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop" + " without losing speed. It no longer stops dead and rears when it runs into something, or at cliff edges."); } // Case-insensitive: does s contain needle (an empty needle matches) diff --git a/tools/game_sites.py b/tools/game_sites.py index a3a935c32..11286e9e3 100644 --- a/tools/game_sites.py +++ b/tools/game_sites.py @@ -384,7 +384,7 @@ 'b941dc08', 0), Site('battle_info_c', 'code', 'b9400028 b901d008 d65f03c0', 0), # the horse's crash check loading its gear, and the entry of its stop check's look-ahead (tools/patches.py - # _horse_crash, _horse_look_ahead; Cheats > Sure-footed horse) + # _horse_crash, _horse_look_ahead; Cheats > Improved horse controls) Site('horse_crash', 'code', 'b9403428 7100111f 54000001/ff00001f d10303ff 6d072beb f90053f5 6d0823e9 a9097bfd', 0), Site('horse_look_ahead', 'code', 'd105c3ff fd00a3e8 f900affc a914fbfd a9164ff4 910523fd aa0103f4 aa0003f3', 0), # Gameplay > Keep crouch after camera (tools/patches.py _camera_*; runtime/camera_stealth.c): crouch idle @@ -405,6 +405,14 @@ Site('camera_leave', 'code', '94000000/fc000000 14000000/fc000000 90000008/9f00001f 91000108/ffc003ff f9400100 14000000/fc000000 ' 'a9be7bfd f9000bf3 910003fd aa0003f3 f9400400 94000000/fc000000 37000000/fff8001f 94000000/fc000000', 4), + # the ridden horse's update after its prologue (x0: the riding action), its steering loading the gear's stick + # scale, and its steering storing the horse's play rate (tools/patches.py _horse_ride, _horse_stick_scale, + # _horse_play_rate; runtime/improved_horse.c; Cheats > Improved horse controls) + Site('horse_ride', 'code', 'd10a03ff aa0003f3 52804702 910123e0 2a1f03e1 910123f6 94000000/fc000000 f9400660', 0), + Site('horse_stick_scale', 'code', 'bc697901 1e210800 bc1b43a0 94000000/fc000000 d10153a1 aa1403e0 aa1303e2 ' + '94000000/fc000000', 0), + Site('horse_play_rate', 'code', 'bd015500 14000000/fc000000 3948b669 1e2e2140 3948ba68 54000004/ff00001f ' + '35000009/ff00001f 34000008/ff00001f', 0), # the pouch taking arrows off for the player's bow (tools/patches.py _remove_arrows; Accessibility > Infinite arrows) Site('pouch_remove_arrows', 'code', 'd101c3ff a9017bfd a9026ffc a90367fa a9045ff8 a90557f6 a9064ff4 910043fd ' '90000008/9f00001f aa0003f3 f9400108/ffc003ff aa0103e0', 0), @@ -641,8 +649,9 @@ ('link_life_store', 'link_life_tick'), ('stamina_store',), ('sprint_cost', 'sprint_press_cost', 'battle_info_field', 'battle_info_b', 'battle_info_c'), # (Cheats > Free sprint: without them it does nothing) - ('horse_crash', 'horse_look_ahead'), # (Cheats > Sure-footed horse: without them it does nothing) ('camera_squat_idle', 'camera_enter_start', 'camera_exit_finished', 'camera_exit_active', 'camera_leave'), + ('horse_crash', 'horse_look_ahead'), # (Cheats > Improved horse controls' stops: without them it does nothing) + ('horse_ride', 'horse_stick_scale', 'horse_play_rate'), # (Cheats > Improved horse controls' steering: without them it does nothing) ('tp_gate',), # (a far teleport of the control endpoint: without it a long jump freezes the world) ('title_version_text_a', 'title_version_text_b'), # (the title's version line in full: without them it stops at 15 letters) ('item_tick', 'pouch_item_get', 'pouch_mgr'), @@ -904,6 +913,9 @@ 'camera_exit_finished': 0x7000cabfb4, 'camera_exit_active': 0x7000cacfac, 'camera_leave': 0x7000ca3734, + 'horse_ride': 0x70006afe60, + 'horse_stick_scale': 0x70006b1cf4, + 'horse_play_rate': 0x70006b218c, 'item_tick': 0x7000cc4c3c, 'pouch_item_get': 0x7000d921bc, 'pouch_mgr': 0x7001e18570, diff --git a/tools/patches.py b/tools/patches.py index cf3c9c0eb..f3a17838f 100644 --- a/tools/patches.py +++ b/tools/patches.py @@ -1248,15 +1248,15 @@ def patch(gen, a): return (f'{{ extern void rt_battle_info(int, int32_t); {load} rt_battle_info({which}, (int32_t)c->x[8]); }}' f' /* {a:#x}: the battle info\'s count (enemies in battle: Cheats) */') return patch -# Cheats > Sure-footed horse (runtime/sure_footed.c): every frame the horse's update (1.9.0 0x70006afe4c; x1 of its -# checks is its state: the gear at +0x34) asks two checks whether to stop the horse (new gear 0). The crash check -# (0x70006b16c4), only at the top gear (4), looks at what the horse's Body touches: a steep face ahead, higher than the -# horse can step, is a crash, flagged (+0x3ac bit 15) for the animation picker (0x70006b26bc) to play Crash. Without a -# crash, the stop check (0x70006b19c8) stops a horse at the top gear when its look-ahead (0x70006b4218, as far as the -# gear and speed carry it) finds the way blocked: a tree, a rock, a cliff edge; at lower gears it stops only a horse -# nothing drives. The picker plays Courbette for a stop from gear 3 or 4. Both rears are the long stop at an obstacle; -# with the option on, the crash check reads gear 0 and the look-ahead finds the way clear, so no obstacle stops a -# horse, and the stop check's other stop stays the game's. +# Cheats > Improved horse controls, its stops (runtime/sure_footed.c): every frame the horse's update (1.9.0 +# 0x70006afe4c; x1 of its checks is its state: the gear at +0x34) asks two checks whether to stop the horse (new gear +# 0). The crash check (0x70006b16c4), only at the top gear (4), looks at what the horse's Body touches: a steep face +# ahead, higher than the horse can step, is a crash, flagged (+0x3ac bit 15) for the animation picker (0x70006b26bc) to +# play Crash. Without a crash, the stop check (0x70006b19c8) stops a horse at the top gear when its look-ahead +# (0x70006b4218, as far as the gear and speed carry it) finds the way blocked: a tree, a rock, a cliff edge; at lower +# gears it stops only a horse nothing drives. The picker plays Courbette for a stop from gear 3 or 4. Both rears are +# the long stop at an obstacle; with the option on, the crash check reads gear 0 and the look-ahead finds the way +# clear, so no obstacle stops a horse, and the stop check's other stop stays the game's. def _horse_crash(gen, a): assert _word(gen, a) == 0xb9403428, hex(_word(gen, a)) # ldr w8, [x1, #0x34] @@ -1270,6 +1270,37 @@ def _horse_look_ahead(gen, a): f' /* {a:#x}: sub sp, sp, #0x170 (the horse\'s look-ahead: the way clear with Cheats) */') +# Cheats > Improved horse controls, its steering (runtime/improved_horse.c). The ridden horse's update (1.9.0 +# 0x70006afe4c, x0 the riding action) runs its stick through smoothers that take the frame's delta: the lean +# (+0x268) is the rider's steering (the turn at +0x278 and the term at +0x290 are the horse's own: roads, obstacles). +# Its steering scales the stick by a per-gear table first (0x70006b1cf4: half at the top gear). The runtime sets the +# lean's rates in the action at the update's entry and answers the table load. The steering then stores the horse's +# play rate in its unit (0x70006b218c, +0x154): the runtime raises it while the horse turns, so the turning run keeps +# the straight run's speed. + +def _horse_ride(gen, a): + assert _word(gen, a) == _sub_sp(0x280), hex(_word(gen, a)) + return ('{ extern void rt_horse_ride(uint64_t); rt_horse_ride(c->x[0]); c->sp -= 0x280; }' + f' /* {a:#x}: sub sp, sp, #0x280 (the ridden horse\'s update: its steering rates) */') + + +def _horse_stick_scale(gen, a): + # s0 holds the stick's x (loaded from [x19, #0x18] just before), multiplied by s1 next + assert _word(gen, a) == 0xbc697901, hex(_word(gen, a)) # ldr s1, [x8, x9, lsl #2] + return ('{ extern float rt_horse_stick_scale(int64_t, float, float *); union { uint32_t u; float f; } r = ' + '{ .u = LD32(c->x[8] + (c->x[9] << 2)) }, s = { .u = (uint32_t)c->v[0] }; ' + 'r.f = rt_horse_stick_scale((int64_t)c->x[9], r.f, &s.f); c->v[0] = s.u; c->v[1] = r.u; }' + f' /* {a:#x}: ldr s1, [x8, x9, lsl #2] (the stick\'s share of the horse\'s steering for its gear) */') + + +def _horse_play_rate(gen, a): + # x8: the horse's unit (the steering's [x19]), x20: the riding action; s0 the value stored + assert _word(gen, a) == 0xbd015500, hex(_word(gen, a)) # str s0, [x8, #0x154] + return ('{ extern float rt_horse_play_rate(uint64_t, float); union { uint32_t u; float f; } r = ' + '{ .u = (uint32_t)c->v[0] }; r.f = rt_horse_play_rate(c->x[20], r.f); ST32(c->x[8] + 0x154, r.u); }' + f' /* {a:#x}: str s0, [x8, #0x154] (the ridden horse\'s rate while it steers) */') + + # Adding items (runtime/items.c rt_item_tick): at the entry of Link's damage handling (every frame in play, on the game # thread, as picking an item up is) the runtime calls the pause menu data's item get for what was asked for. The item # get takes the item's name as a sead::SafeString; its vtable is the one the item get itself loads (`adrp x26` / @@ -1622,6 +1653,9 @@ def _camera_leave(gen, a): 'camera_exit_finished': _camera_exit_finished, 'camera_exit_active': _camera_exit_active, 'camera_leave': _camera_leave, + 'horse_ride': _horse_ride, + 'horse_stick_scale': _horse_stick_scale, + 'horse_play_rate': _horse_play_rate, 'item_tick': _item_tick, 'place_count_read': _place_count_read, 'place_travel': _place_travel, From 83a6eb8febd1a1a0fa5480de49e95e95155108c3 Mon Sep 17 00:00:00 2001 From: Quorthon13 <44161862+Quorthon13@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:16:07 -0300 Subject: [PATCH 2/2] Improved horse controls: no stop at an obstacle at any gear With Improved horse controls on, a horse at a walk, trot or canter still stopped at a big obstacle (a root too high to step on), with a short rear (Dislike) when the stop came right after a spur. The horse's stop check stops it at gears 1 to 3 whenever one of its probe rays finds nothing ahead, and only the top gear's look-ahead was patched. With the option on the whole stop check now answers "keep going", so no obstacle stops the horse at any gear; it gallops on and slides along what it can't climb. Stopping by pulling back is untouched: that stop comes from the gear the update picks. It also no longer holds a walking or standing horse back at a cliff edge: the option already said it doesn't stop at cliff edges, and its description now says so for every pace. The patch site moves from the look-ahead to the stop check's entry. --- docs/cheats-and-assists.md | 2 +- runtime/sure_footed.c | 8 ++++---- tools/game_sites.py | 11 ++++++----- tools/patches.py | 31 ++++++++++++++++++------------- 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/docs/cheats-and-assists.md b/docs/cheats-and-assists.md index 15908e425..a9f864eb1 100644 --- a/docs/cheats-and-assists.md +++ b/docs/cheats-and-assists.md @@ -84,7 +84,7 @@ game is shipped with Savage Wind. | Weather | Holds the weather you pick (clear, cloudy, rain, heavy rain, snow, heavy snow, thunderstorm, thunder rain, rain in sunshine), or keeps out rain or thunderstorms. Automatic is the game's own. Cutscenes keep their weather. | | Free sprint out of combat | Sprinting on the ground takes no stamina while no enemy is fighting you. Once enemies start the battle music, sprinting costs stamina again until the music fades. Climbing, swimming, gliding and attacks cost stamina as usual. | | Item pickup multiplier | Multiplies the stackable items you pick up (materials, monster parts, arrows) by 2, 4 or 8, up to 999. | -| Improved horse controls | The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed in the turn. A running horse no longer stops dead and rears when it runs into something, even a small rock. It no longer stops at cliff edges either: mind where you ride. | +| Improved horse controls | The horse answers the stick at once, small nudges included, and turns sharper at a canter and gallop without losing speed in the turn. The horse no longer stops dead and rears when it runs into something, even a small rock, at any pace. It doesn't stop at cliff edges either, even at a walk: mind where you ride. | | Show shrines and towers | Shows every shrine, tower, stable and ancient lab on the map, and makes the shrines, towers and labs travel destinations (a stable is shown but never travelled to). Nothing is saved and no tower is activated, so the map fog stays as it is. | ### Collectible hints on the map diff --git a/runtime/sure_footed.c b/runtime/sure_footed.c index 44a31a938..638a45947 100644 --- a/runtime/sure_footed.c +++ b/runtime/sure_footed.c @@ -1,7 +1,7 @@ -// Cheats > Improved horse controls (settings.h improved_horse), with runtime/improved_horse.c: a running horse no -// longer stops dead and rears (Crash or Courbette) when it runs into something. The patches at the horse's crash -// check and at its stop check's look-ahead ask here (tools/patches.py _horse_crash, _horse_look_ahead); with the option -// on no obstacle stops the horse. +// Cheats > Improved horse controls (settings.h improved_horse), with runtime/improved_horse.c: a moving horse no +// longer stops dead and rears (Crash, Courbette or the short Dislike) when it runs into something, at any gear. The +// patches at the horse's crash check and at its stop check ask here (tools/patches.py _horse_crash, +// _horse_stop_check); with the option on no obstacle stops the horse. #include "settings.h" int rt_sure_footed(void) { return g_settings.improved_horse; } diff --git a/tools/game_sites.py b/tools/game_sites.py index 11286e9e3..fd5d4ba74 100644 --- a/tools/game_sites.py +++ b/tools/game_sites.py @@ -383,10 +383,11 @@ Site('battle_info_b', 'code', 'a9402428 a91da408 d3609d28 34000008/ff00001f 52800048 b901e808 d65f03c0 ' 'b941dc08', 0), Site('battle_info_c', 'code', 'b9400028 b901d008 d65f03c0', 0), - # the horse's crash check loading its gear, and the entry of its stop check's look-ahead (tools/patches.py - # _horse_crash, _horse_look_ahead; Cheats > Improved horse controls) + # the horse's crash check loading its gear, and the entry of its stop check (tools/patches.py _horse_crash, + # _horse_stop_check; Cheats > Improved horse controls) Site('horse_crash', 'code', 'b9403428 7100111f 54000001/ff00001f d10303ff 6d072beb f90053f5 6d0823e9 a9097bfd', 0), - Site('horse_look_ahead', 'code', 'd105c3ff fd00a3e8 f900affc a914fbfd a9164ff4 910523fd aa0103f4 aa0003f3', 0), + Site('horse_stop_check', 'code', 'b940382a 3400000a/ff00001f f9400029 b9400928 37100008/fff8001f 3947102b ' + '2a1f03e8 3500000b/ff00001f', 0), # Gameplay > Keep crouch after camera (tools/patches.py _camera_*; runtime/camera_stealth.c): crouch idle # target in the Player AI selector, Camera entry, the two Camera -> Wait exit branches, and Camera::leave(). Site('camera_squat_idle', 'code', @@ -650,7 +651,7 @@ ('stamina_store',), ('sprint_cost', 'sprint_press_cost', 'battle_info_field', 'battle_info_b', 'battle_info_c'), # (Cheats > Free sprint: without them it does nothing) ('camera_squat_idle', 'camera_enter_start', 'camera_exit_finished', 'camera_exit_active', 'camera_leave'), - ('horse_crash', 'horse_look_ahead'), # (Cheats > Improved horse controls' stops: without them it does nothing) + ('horse_crash', 'horse_stop_check'), # (Cheats > Improved horse controls' stops: without them it does nothing) ('horse_ride', 'horse_stick_scale', 'horse_play_rate'), # (Cheats > Improved horse controls' steering: without them it does nothing) ('tp_gate',), # (a far teleport of the control endpoint: without it a long jump freezes the world) ('title_version_text_a', 'title_version_text_b'), # (the title's version line in full: without them it stops at 15 letters) @@ -907,7 +908,7 @@ 'battle_info_b': 0x700133dcac, 'battle_info_c': 0x7001349648, 'horse_crash': 0x70006b16c4, - 'horse_look_ahead': 0x70006b4218, + 'horse_stop_check': 0x70006b19c8, 'camera_squat_idle': 0x7000ca9ef0, 'camera_enter_start': 0x7000caa6f4, 'camera_exit_finished': 0x7000cabfb4, diff --git a/tools/patches.py b/tools/patches.py index f3a17838f..96fbef8f7 100644 --- a/tools/patches.py +++ b/tools/patches.py @@ -1249,14 +1249,18 @@ def patch(gen, a): f' /* {a:#x}: the battle info\'s count (enemies in battle: Cheats) */') return patch # Cheats > Improved horse controls, its stops (runtime/sure_footed.c): every frame the horse's update (1.9.0 -# 0x70006afe4c; x1 of its checks is its state: the gear at +0x34) asks two checks whether to stop the horse (new gear -# 0). The crash check (0x70006b16c4), only at the top gear (4), looks at what the horse's Body touches: a steep face -# ahead, higher than the horse can step, is a crash, flagged (+0x3ac bit 15) for the animation picker (0x70006b26bc) to -# play Crash. Without a crash, the stop check (0x70006b19c8) stops a horse at the top gear when its look-ahead -# (0x70006b4218, as far as the gear and speed carry it) finds the way blocked: a tree, a rock, a cliff edge; at lower -# gears it stops only a horse nothing drives. The picker plays Courbette for a stop from gear 3 or 4. Both rears are -# the long stop at an obstacle; with the option on, the crash check reads gear 0 and the look-ahead finds the way -# clear, so no obstacle stops a horse, and the stop check's other stop stays the game's. +# 0x70006afe4c; x1 of its checks is its state: the gear at +0x34, the gear it just picked at +0x38) asks two checks +# whether to stop the horse (new gear 0). The crash check (0x70006b16c4), only at the top gear (4), looks at what the +# horse's Body touches: a steep face ahead, higher than the horse can step, is a crash, flagged (+0x3ac bit 15) for +# the animation picker (0x70006b26bc) to play Crash. Without a crash, the stop check (0x70006b19c8) overrules a picked +# gear above 0 for what lies ahead, stopping a horse or keeping a standing one still. The horse's probe rays +# (0x70006b0eac) end in the state's hit flags, and when the one at +0x1c4 finds nothing (the step ahead too high for +# it, as at a big root, or no ground: a cliff edge) the check stops (or holds) the horse at any gear but the top one; +# at the top gear it stops it only when its look-ahead (0x70006b4218, as far as the gear and speed carry it) also +# finds the way blocked. The picker plays Courbette for a stop from gear 3 or 4, and Dislike (a short rear) for a stop +# within half a second of a spur. A stop the rider asks for (pulling back) comes from the gear the update picks, not +# from these checks. With the option on, the crash check reads gear 0 and the stop check answers "keep going", so no +# obstacle stops a horse at any gear. def _horse_crash(gen, a): assert _word(gen, a) == 0xb9403428, hex(_word(gen, a)) # ldr w8, [x1, #0x34] @@ -1264,10 +1268,11 @@ def _horse_crash(gen, a): f' /* {a:#x}: ldr w8, [x1, #0x34] (the horse\'s gear at its crash check: Cheats) */') -def _horse_look_ahead(gen, a): - assert _word(gen, a) == _sub_sp(0x170), hex(_word(gen, a)) - return ('{ extern int rt_sure_footed(void); if (rt_sure_footed()) { c->x[0] = 1; return; } c->sp -= 0x170; }' - f' /* {a:#x}: sub sp, sp, #0x170 (the horse\'s look-ahead: the way clear with Cheats) */') +def _horse_stop_check(gen, a): + assert _word(gen, a) == 0xb940382a, hex(_word(gen, a)) # ldr w10, [x1, #0x38] + return ('{ extern int rt_sure_footed(void); if (rt_sure_footed()) { c->x[0] = 0; return; }' + ' c->x[10] = LD32(c->x[1] + 0x38); }' + f' /* {a:#x}: ldr w10, [x1, #0x38] (the horse\'s stop check: no stop with Cheats) */') # Cheats > Improved horse controls, its steering (runtime/improved_horse.c). The ridden horse's update (1.9.0 @@ -1648,7 +1653,7 @@ def _camera_leave(gen, a): 'battle_info_b': _battle_info(1), 'battle_info_c': _battle_info(2), 'horse_crash': _horse_crash, - 'horse_look_ahead': _horse_look_ahead, + 'horse_stop_check': _horse_stop_check, 'camera_enter_start': _camera_enter_start, 'camera_exit_finished': _camera_exit_finished, 'camera_exit_active': _camera_exit_active,