Skip to content

About

Monster Hunter: World plugin for Stracker's Loader: plays menu animations, fades and scripted camera moves 100 times faster, so they give control back at once.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

AnimationSkip

Static Badge

A Monster Hunter: World plugin for Stracker's Loader that plays menu animations and the fades to and from black 100 times faster, so they finish at once and give you control back.

Warning

Offline and solo use is fine. The plugin only changes how fast screens animate on your side, but like any code plugin it's at your own risk online.

What it changes

Changed Not changed
Opening and closing animations of every game screen: Start menu, item box, smithy, quest board, canteen, dialogs, notices, HUD panels, title and logo screens Looping animations inside an open screen that play while it waits for you, such as the cursor
Animations inside an open screen that run to an end on their own: tab and page changes, result tallies, the loading screen's own animations
Animations the game waits for before it takes input, such as the title screen's intro at start-up
Menu lists such as the item box commands and the Start menu tabs: all rows appear and disappear together instead of one after another Animations inside the HUD and the pickup logs, so timed messages stay readable (configurable)
Fades to and from black: between areas, when departing on a quest, when returning from one
Scripted camera moves, such as the zoom into the quest board and other facilities The loading itself, which takes as long as your disk needs
The waits of the camera at the quest board and the quest counter before their menu takes input The countdown after a quest ends, and other timers
NPC dialogue subtitles, and cutscenes
Anything while you're out on a quest, from departure until you're back in the hub

Each part has its own switch and speed, and screens you'd rather keep at normal speed can be excluded by name, see Configuration.

Requirements

  • MonsterHunterWorld.exe version 15.23.00 (PE timestamp 0x66D13CB6). On any other version the plugin logs the mismatch and changes nothing.
  • Stracker's Loader.
  • A CRC bypass plugin, such as !CRCBypass.dll. The plugin changes 85 bytes of the game's code in five functions, which the game's integrity check would otherwise catch.

Install

  1. Download AnimationSkip-<version>.zip from Releases and unpack it into the Monster Hunter World folder, or copy AnimationSkip.dll and AnimationSkip.toml to Monster Hunter World/nativePC/plugins/ yourself, or run make install.
  2. Remove MenuTransitionSpeed.dll from that folder if you have it. Both plugins hook the same screen function, so only the one that loads first works, and AnimationSkip covers every screen and fade that it covers. Leave the countdown to the game, or keep another mod for it.
  3. Start the game. The plugin writes AnimationSkip.log next to the DLL.

A working start looks like this:

AnimationSkip 0.0.1
game ready after 0.4s
fades: hooked, they play 100x faster
camera: hooked, camera moves play 100x faster
menu lists: hooked, rows appear together
screens: hooked, opening and closing 100x, inner animations 100x faster
screens seen so far:
uGUITitle: opening and closing and inner animations sped up
uGUIStartMenu: opening and closing and inner animations sped up
uGUIHudRadar: opening and closing sped up, inner animations excluded

Each screen class is listed once, the first time it updates.

Configuration

The file is AnimationSkip.toml, next to the DLL. The plugin creates it with the defaults if it's missing, and reads it once at game start.

Section Key Default Description
Transitions Enabled true Speeds up opening and closing animations
Transitions Speed 100.0 How many times faster they play, from 1 to 1000. Use about 4 to keep them visible but short
Transitions Exclude ["uGUICommonTimer"] Screens whose opening and closing stay at normal speed, e.g. ["uGUIStaffRoll"]. The default is the timer after a quest, so its hourglass flips at normal speed
InMenu Enabled true Speeds up animations inside an open screen that end on their own, and shows all rows of a menu list at once
InMenu Speed 100.0 As above
InMenu Exclude ["uGUIHud*", "uGUIItemLog", "uGUIEnemyLog", "uGUISwopLog", "uGUISteam::ItemLog", "uGUICommonTimer"] Screens whose inner animations stay at normal speed
Fades Enabled true Speeds up the full-screen fades to and from black
Fades Speed 100.0 As above. The time the screen stays black between two fades is shortened by the same amount
Camera Enabled true Speeds up scripted camera moves, such as the zoom into the quest board
Camera Speed 100.0 As above
Debug LogStates false Logs every change of an open screen's phase and flow state, to find out what a screen that still makes you wait is doing
Debug LogCamera false Logs the quest board's camera and fixed camera switches with their times, without changing them

Exclude lists take class names as the log lists them. A name ending in * matches every class that starts with the rest, so "uGUIHud*" covers the whole HUD.

How it works

Every screen in the game is a uGUI, and the engine advances each one once a frame through uGUI::update(this, delta) (RVA 0x2354370). The game's own screens derive from uMhGUI, which keeps its phase at offset 0x1D04: 0 closed, 1 opening, 2 open, 3 closing. A screen ignores input until it reaches phase 2, and the game waits for phase 3 to end before it moves on.

The function only advances time: the screen's clock, its flow and its tree of parts. It draws nothing. The plugin hooks it and, for screens derived from uMhGUI in phase 1 or 3, calls it Speed times in the frame with the frame's own delta, up to 120 times; a higher Speed makes each step longer instead. Every part then gets the same small steps as in the unmodded game and ends in the same look. After each step the plugin looks at the screen again and stops once there's nothing left to speed up. It finds the class through the object's MtDTI type info, so screens added by other mods are covered too.

An earlier build made one call with delta times Speed. A step of 200 frames could jump over keys in a part's sequence or run past its end. On the quest board that left a second, smoky background layer half-faded over the paper, drifting across it and washing out its colour.

While a screen is open (phase 2), what plays is decided by its flow, a small state machine from the screen's GUI file. The current flow step is at +0x2E0, and each state's definition says how it ends: after a set time, when one of its parts finishes animating, or only when the game moves it on, which is how a screen waits for input. The plugin repeats the update while the current state ends on its own and, if it's timed, lasts 300 frames or less. Longer timed states are treated as deliberate waits and keep their speed.

A state the game moves on still has a length, and screens such as the title check it (RVA 0x2353C00) before they take input, so the title intro holds you until it has played through. The plugin also speeds these states up until their flow time reaches that length, if it's 1200 frames or less, and leaves them at normal speed after, so looping animations like the cursor or a blinking prompt only rush through their first loop.

Menu lists are cGUIInstButtonList parts. When one opens or closes with a row delay above zero (4 frames by default), the game freezes every row and its update (RVA 0xB755C0) starts one row each time a countdown runs out. That countdown runs on the screen's own frame step, so speeding up the screen doesn't shorten it, and rows still closing stay drawn over the next window. The plugin sets the delay to 0 before the update runs, which is the game's own path for lists without a stagger, and starts any rows a stagger already froze.

A fade starts with a request (RVA 0xFCC550) that stores how long it fades in, holds and fades out. Some sequences time themselves from those values too, so the plugin divides all three by Speed there. Zero and negative values, which mean "skip this part" or "hold until told", are left alone.

Facilities such as the quest board switch to a fixed camera with a blend, which sMhArea's uInterpolationCamera flies (update at RVA 0x1F7E1F0). The update advances the blend by the frame step times a play speed at +0x268, which is always 1. The plugin raises it to Speed for the update and puts it back after. In the unmodded game the fade hides this move, so with fast fades and a slow camera you'd see the board flying past behind the menu.

Fades go through one function (RVA 0xFCC650) that moves a fade layer on by a frame. A layer is fading in, holding black or fading out, and counts down the time left in that state. After the game's own step, the plugin takes the time left down by Speed - 1 more steps, so each state ends Speed times sooner. The countdown after a quest ends lives in the quest code and isn't touched.

At the quest board and the quest counter, the player camera action nPlCamAct::cQuestBoard starts (RVA 0x1273990) with a wait at +0xB8 (0.4 s at the board, 1.8 s at the counter) and then a step lasting +0xBC (0.6 s, 0.5 s). The quest menu takes no input until both are over. The plugin divides both by [Camera] Speed once the action has started.

Every hook first reads the quest state of sQuest, the game's quest manager (pointer at RVA 0x500ED30, state at +0x54). It is 0 with no quest and 1 for a quest posted or joined in the hub, and higher from departure until the game unsets the quest after the return. Above 1, every hook passes the game's call on unchanged.

Known issues

  • At the quest counter, the NPC opening her book after you pick an option still takes about 3.5 s. That is her animation, which the game waits for, not a screen or the camera.
  • If a screen still looks wrong (a doubled or washed-out background, a part in the wrong place), add its class to both Exclude lists and tell me which one it was; [Debug] LogStates names the screens as they open.
  • Doesn't run alongside MenuTransitionSpeed.dll. The log says so if that plugin hooked the screen function first; fades still work then.
  • With Fades sped up, the black screen between two fades can end before the game has finished drawing the new scene, so you may see objects pop in. Lower [Fades] Speed to about 4 if that bothers you.
  • Loading screens still wait for the game to load. Only their animations and the fades around them are faster. The same goes for the title screen at start-up: the intro is skipped, but it can't take input before the game has finished loading.
  • A looping animation inside a screen plays its first loop fast before it settles to normal speed.
  • A screen that is opening is updated up to 120 times in a frame, which costs a little CPU for the few frames that it lasts.
  • The "Progress saved" notice before returning to the title still stays up for about 2 seconds. Where that wait comes from isn't known yet; [Debug] LogStates shows what the screens are doing during it.

Building

The Makefile uses the Rust and MinGW toolchain in ~/workdir/elden/ERBetterLod/.toolchain. Run make toolchain there first if it's missing, or point TOOLCHAIN at another copy.

make                # builds target/x86_64-pc-windows-gnu/release/AnimationSkip.dll
make install        # copies the DLL and config to the game's nativePC/plugins
make install PLUGINS_DIR=/path/to/nativePC/plugins
make uninstall

make install keeps a config you already have.

About

Monster Hunter: World plugin for Stracker's Loader: plays menu animations, fades and scripted camera moves 100 times faster, so they give control back at once.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages