Skip to content

Releases

MH Stories 2 port v0.0.9

Choose a tag to compare

@github-actions github-actions released this 05 Dec 17:17

PC sound mods converted to the Switch's, .7z mods

SoundPort (new)

  • PC waves (0x724df879, RIFF MS-ADPCM near 48 kHz) decoded, resampled to 48000 (4-point Hermite), encoded as the Switch's DSP-ADPCM waves (0x79c47b59): 0x1C header + 0x60 per channel, frames padded to 0x100
  • Encoder: 8 predictors, per frame the closest predictor/scale (about 39 dB on the footstep sample)
  • Sound banks (SBKR): wave type hash after each path set to the Switch's
  • Requests (SRQR): PC platform word at 0x1C cleared
  • Checked against the Switch game's em0027_0000.arc: banks and requests byte for byte, wave lengths within 1 sample

ArcPort

  • Sounds converted on all cores; a wave it can't read is kept and named in the import message
  • Import message counts converted sounds

SevenZip (new)

  • .7z mods: LZMA, LZMA2, stored, solid blocks, compressed headers; filters (BCJ/delta) and encryption refused with a message

ModFiles / picker / settings

  • Add a mod takes .zip, .rar and .7z
  • Notes mention sound conversion (English, Chinese)

MH Stories 2 port v0.0.8

Choose a tag to compare

@github-actions github-actions released this 05 Dec 06:51

Local Play over the internet: hub servers and direct connections, as the MH Rise port

Local Play (nnsdk/ldn.cpp, ldn_net.h, from the MH Rise port):

  • nn::ldn over IP instead of the stub that never found anyone; all 26 nn::ldn functions the game imports
  • Hub servers (MHGU's server protocol): rooms listed per matchmaking key, joined through the server's splice, no port forwarding; v4 hubs (HUBS4, ERR_VERSION -> link protocol 0x53) and the older link version (0x5301) supported
  • MH Stories 2's own link protocols (0x5302 / 0x5301 / 0x53) and discovery port 39512, apart from MH Rise and MHGU hubs
  • Direct: same Wi-Fi / hotspot discovery by UDP broadcast, search hosts, listen port; game packets by UDP or relayed down the link

socket.cpp: UDP to the network's 169.254.x.x addresses goes to ldn, deliveries from the loopback helper, port mapping for two copies of the game on one phone
nifm.cpp: Local Play requests accepted (SetLocalNetworkMode), SubmitNetworkRequestAndWait kept

App: Multiplayer settings section (matchmaking key, hub servers, direct connections, port), Wi-Fi multicast lock, ACCESS_NETWORK_STATE and CHANGE_WIFI_MULTICAST_STATE permissions

Also: reshadefx float literals with strtof (Android build fix); turbo button and hotkey; ReShade

MH Stories 2 port v0.0.7

Choose a tag to compare

@github-actions github-actions released this 05 Dec 06:51

Fix the Android build of ReShade's FX compiler; turbo; ReShade

  • reshadefx effect_lexer.cpp: float literals read with strtof (Android's libc++ has no floating-point std::from_chars); noted in THIRD_PARTY_NOTICES
  • Turbo: a normal touch button (hide / tap to hold in the layout editor), x1.5-x4 speed, controller hotkey set by the player (nnsdk/game_speed.cpp, android_main.cpp)
  • ReShade presets and shader packs (nvn/reshade, runtime/external/reshadefx)
  • Cheats: docs/cheats/C91D98A546E55D5C.txt

MH Stories 2 port v0.0.5

Choose a tag to compare

@github-actions github-actions released this 05 Dec 05:32

Picture filter without flicker, on generated frames too (from the Rise port)

  • Frame generation's frames go through the picture filter as the real ones do (filters::apply_generated, own image); unfiltered generated frames between filtered real ones flickered at the game's frame rate
  • New filter shader from the Rise port, built for motion: CAS-style sharpening bounded by its 3x3 neighbours, luma local contrast with a soft limit, smooth colour curves, fixed dither; nothing changes from frame to frame
  • Filters: Balanced, Sharpen, Clarity, Vivid, Cinematic, Bright, Warm, Cool, Cartoon (rewritten for the new shader with softer band steps)
  • Setting stored as picture_filter; the old filter = 1..12 maps to the nearest new one
  • Settings: Picture filter list and help updated

MH Stories 2 port v0.0.4

Choose a tag to compare

@github-actions github-actions released this 05 Dec 03:19

Adaptive frame generation like Lossless Scaling's: fractional multiplier

Frame generation:

  • Target mode uses a fractional multiplier (target / real fps, e.g. 25 -> 60 = 2.4x); an accumulator gives each real frame 2 or 3 pictures so the average reaches the target, as Lossless Scaling's adaptive mode does on PC
  • Capped just under the screen refresh rate and at 4x; smoothed so single slow frames don't make it jump
  • With a target set, the window asks for the screen's fastest mode (90/120 Hz), and the default again without one
  • Real frame time: measured at a limit of 30 or lower (like Rise), the limiter period at a 60 limit (no 14 fps spiral)
  • Screen refresh read again every 120 presents, so a mode switch is picked up
  • Stats line shows the multiplier as a fraction
  • Load guard off by default (opt-in lsfg_guarda), like Rise

Settings: Target help rewritten; Mods and Cheats notes shortened to one line each

MH Stories 2 port v0.0.3

Choose a tag to compare

@github-actions github-actions released this 05 Dec 03:00

Mods & cheats: mod layer over the romfs, Atmosphere cheats, cheat editor

  • Mod layer (fs.cpp), as LayeredFS / the MH Rise port: /mods//romfs/
    files take the place of the game's (MH Stories 2's .arc archives under
    nativeNXx64/), for the mount that points at the game's romfs (app: here).
    First mod by folder name wins; '#'/'.' folders are off; read once at start.
  • Atmosphere cheat engine (cheats.cpp, from the MH Rise port):
    mods//cheats/.txt, each cheat switched in mhs2.ini
    (cheat_), re-read when mhs2.ini or the mods change, run 12 times a
    second. host.h gains main_text_size / main_build_id (run.cpp fills them),
    os_memory.cpp heap_range, libc.cpp starts the cheats on attach.
  • Settings -> Mods & cheats: add a mod (.zip: romfs/, nativeNXx64/, or PC
    nativePC/ / nativeDX11x64/ trees put on the Switch paths, cheats/), switch
    or remove mods, restart to apply; add a cheat file (checked against the
    game's build ID), write a cheat (name + codes, validated, saved to the
    "My cheats" mod and turned on), edit a mod's whole cheat file, switch each
    cheat.
  • ModFiles: mods list, on/off by '#', build ID from rutas.txt's exefs, cheat
    parsing, zip import with the path mapping.

MH Stories 2 port v0.0.2

Choose a tag to compare

@github-actions github-actions released this 05 Dec 02:12

Render distance scales the field fade distances, frame generation pace fix, Lossless.dll import fix

  • Render distance now also scales where things appear: sFieldObjectManager's
    fade distances (mAlphaFadeDistMin/Max +0x119b0/+0x119b4 with squares
    +0x119b8/+0x119bc; mNpcAlphaFadeDistMin/Max +0x119c0/+0x119c4 with squares
    +0x119c8/+0x119cc), set once at main+0x2444e0. The field objects' (1080 to
    1200, or 200 to 350 by field mode) go through a stub at main+0x244524 that
    multiplies min/max by the share and their squares by its square; the
    people's (300 to 310, squares 90000 / 96100) are rewritten in their
    movz/movk immediates. Every word checked first; patched apart from the
    LOD sites. The LOD distances alone didn't move the pop-in.
  • Frame generation: the 2x pace check no longer requires present interval 2.
    MH Stories 2 presents with interval 1 and the port's limiter keeps 30 fps,
    so nothing was ever generated (built-in or Lossless Scaling); the check is
    now the limiter's period (>= 32 ms) and the measured frame time.
  • Lossless.dll import: copied to the app's internal storage (NIER_INTERNO,
    where lsfg/dll.cpp looks first) instead of /lsfg/, which can't be
    made in shared storage ("can't make /storage/emulated/0/Download/...").
    /lsfg/ and Download copies are still found.
  • Render distance help text: fade-in distances.

MH Stories 2 port v0.0.1

Choose a tag to compare

@github-actions github-actions released this 05 Dec 01:34

Built-in frame generation, adaptive target, render distance, shadow options, picture filters

Frame generation (from the MH Rise port)

  • Built-in generator (lsfg/motion.cpp, shaders fg_luma / fg_down / fg_patch /
    fg_densify / fg_warp): no DLL, plain Vulkan 1.1 compute. Chosen in the menu
    (fg_builtin) or used when Lossless.dll is missing or can't run here.
  • Adaptive frame generation (fg_target_60 / 90 / 120): as many pictures
    between a pair as reach the target, up to 3, never above the screen's
    refresh; each picture timed with display timing (lsfg::spacing_ns, used by
    window.cpp for the real frame).
  • Lossless Scaling keeps its Performance mode (lsfg_media, chain at 3/4); the
    built-in generator always runs at full size.
  • Kept from this port: the load guard (now scaled to the frame pace), the
    window crop (lsfg_textura_entera), the aspect-ratio picture rectangle and
    FSR on generated frames, UNORM output for sRGB windows (both generators).
  • Swapchain of 6 images when frame generation is possible.
  • Menu: Generator, Target, Motion quality, Performance mode (Lossless only),
    Load guard, Lossless Scaling import.

Graphics

  • Render distance (Graphics -> Detail; 25 / 50 / 75 / 100 / 150 / 200 %,
    next start): uModel's LOD choice (mLODLowDist +0x198, mLODMidDist +0x19c)
    divides the camera distance by the share at its 9 sites and the
    integer-distance helper main+0x10fa590; every site checked first.
  • Shadow distance (Full / 2 bands / nearest only, live): far cascades lose
    their casters, their reset strips kept so they read lit.
  • Far shadows at half rate (live): the far cascade drawn every other frame,
    kept in between; tracked per atlas.
  • Shadow quality: 25 % added. Low/Medium fixed: the scissor follows the
    smaller atlas (the far cascades were cut away and came out dark).
  • Dynamic shadows (live): skinned casters skipped in the shadow atlas;
    Shadows (all) stays its own switch.
  • Skip depth pre-pass also skips the shadow atlas and reads shadow maps as
    lit (the game builds its screen shadow mask from that depth).
  • Texture quality (High / Medium / Low): the largest 1-2 levels of
    compressed textures are not uploaded, unpacked or ASTC-encoded.
  • Picture filter from the MH Rise port (12 presets with the new Cartoon) and
    Filter strength; before FSR / the blit.

Menu

  • Shaders and Driver workarounds under Debug, after Bug report (as the MH
    Rise port's).

Release

  • release.yml: the GitHub release's notes are the tag's message.