Skip to content

Releases

Widerscreen 0.9.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 13:23

First test release, for testing before 1.0. Public API 1.4.

Added

  • Licence: Widerscreen is released into the public domain under the Unlicense (LICENSE, also shipped as
    LICENSE.txt in the release zip).

  • Public API v1.4, additive (the member-by-member list is in docs/api.md): WiderscreenState.IsWide;
    IWiderscreenPolicy.ForcePillarbox; IWiderscreenPatches (Patches, Find, Register) with PatchRequest,
    PatchInfo (with Owner), PatchStatus, PatchKind and WiderscreenPatchIds; IWiderscreenHooks.CurrentUiGroup;
    the UI group facts and the coordinate overloads below.

  • UI group facts (API 1.4): UiGroupCaps and the UI group facts UiGroups.Capabilities(id) (what a placement for a
    group can do: offsets only, everything, or nothing for a reserved id) and UiGroups.NaturalAnchor(id) (where the
    ui.spread setting moves a group); Coordinates.AnchorShiftPx, ToScreen and FromScreen with an anchor on each
    axis and a spread (to place an overlay where widerscreen places a group, tall pictures included; the 1.0 members are
    unchanged). See docs/api.md.

  • Policy requests (API 1.4): IWiderscreenPolicy.ForcePillarbox(predicate, priority) keeps a 3D scene at the stock 16:9
    picture while the predicate is true (the state then says pillarbox with the reason ForcedByConsumer; a scene
    Widerscreen already keeps at 16:9 keeps its own reason, and dependency-only mode changes nothing). Requests combine
    with OR. WiderscreenState.IsWide says whether the view is wide now.

  • Patch registry (API 1.4): IWiderscreenPatches lists every runtime patch (PatchInfo: id, address, the game's bytes,
    what is there now, status, purpose and owner; WiderscreenPatchIds names widerscreen's own), Find(address, length)
    says whose range an address is in, and Register(PatchRequest) writes a patch of your own through the same checks
    widerscreen's go through (PatchKind, PatchStatus; dispose the handle to put the expected bytes back). The six
    imm32 writers and the output aspect slot use one patch helper now and are listed; their sites are reserved, and
    refused to other patches, also while they hold the game's bytes. See docs/api.md.

  • Hooks context (API 1.4): IWiderscreenHooks.CurrentUiGroup says which UI group's quads are being drawn, for a mod
    that hooks a Tk draw function of its own next to Widerscreen (game thread, inside the draw; null outside every
    marked group).

  • docs/api.md: the public API reference, and the sample mod xertrov.widerscreen-sample (sources in samples/, its
    own zip in a release): a consumer of the API and the source of every example in that page. It references
    Widerscreen to compile, ships no copy of it, and starts without it (one log line).

  • Dev tools: dev.aspect_sweep cycles the real window width at fixed height, dev.spread_curve selects a comparison curve without changing the shipped default, and dev.ui_extents logs pre-clip HUD bounds at spread 0.

  • Alt+Enter (fix.altenter, default on) toggles windowed and the last non-windowed mode through the game’s own display-mode path. Defaults to borderless.

  • In Full mode, startup and screen-mode changes use the monitor’s size unless a render override is set. Borderless stays on the game window’s monitor; exclusive fullscreen uses the primary monitor. Returning to Windowed restores the previous position and size. The game’s saved Resolution is unchanged.

  • Battle damage digits draw outside the stock 16:9 band in the extra space shown by wide and tall views.

  • Taller windows show more above and below in real-time 3D scenes without losing horizontal framing. The unstretched HUD can move toward the top and bottom, while pre-rendered rooms, movies, and the Sphere Grid keep their original framing.

  • Public API v1.3, additive: PolicyKind.Tall, PolicyReason.Tall3D, live layout ExtentY, and Box16x9
    reports the band within the output for tall targets, including custom ones. ResolutionSource.Window (added with
    the resizable window): a player-sized window sets the render size for the session.

  • Subtitles over movies are a placed UI group (msg.movie_text; IsPlaced is true for it): a layout callback can
    move, scale or hide them while a movie plays and fix.ui is on, inside the movie's 16:9 picture. They are marked
    where the subtitle is really drawn: the message-window draw while a movie plays. A Tk menu opened over a movie
    pauses the movie and draws its own message windows; those are not subtitles and are left alone.

  • Resizable window (fix.resize, default on; windowed mode, full mode only): drag the window frame, or maximize.
    The game renders at the new size from the next frame after the drag ends; the picture does not follow the drag
    while the mouse button is held. With fix.resize.remember on (the default), the next start remembers the manual window size and maximized state,
    fitted to the current monitor. A Resolution change on the game's Video page clears the remembered size.

  • Any render resolution: settings render.width and render.height (0 = the game's own Resolution setting) set
    the size the game starts at, including sizes the Video page does not list (21:9, 32:9, odd sizes). The swap chain
    and the post-process targets take that size. The picture stays a correct 16:9 pillarbox for now; wide 3D comes
    in a later version. GameSetting.ini is never changed.

  • Settings: mode (full / dependency-only), render.aspect (16:9 / window / custom) with the custom aspect as
    render.aspect_w and render.aspect_h, ui.anchor (edges / centre 16:9), the switch fix.resolution and an
    optional on-screen policy readout (readout.imgui).

  • Policy readout: a log line on every change of size, scene or policy, with the reason. An error names any
    resolution hook that Fahrenheit could not install, and the readout says "override NOT applied" while the window is
    not the size render.width/render.height ask for.

  • Public API v1.0 (Xertrov.Widerscreen.Api): the state (render size, 16:9 box, the game's output viewport, UI
    region, policy and reason, scene kind; records with init-only properties, so later fields are additive), events on change, resize, policy change and scene change, coordinate helpers between the game's UI spaces
    (PS2 512x416, 1280x720, 1920x1080) and screen pixels with anchors, and the 29 UI group ids.

  • Release CI: build and tests on every push; a v* tag publishes a GitHub Release with the packaged mod.

  • Wide 3D (Hor+): with render.aspect = window (or custom) and a window wider than 16:9, real-time 3D scenes
    (fields, battles, event scenes) fill the window with the same vertical view as 16:9. Pre-rendered rooms, movies,
    the sphere grid and loading screens stay pillarboxed 16:9, and the Esc menus stay a centred 16:9 rectangle. The
    switch fix.wide3d (default on) turns it off.

  • Public API v1.1: policy reason Wide3DFixOff.

  • Unstretched UI (fix.ui, default on): in a wide 3D scene the 2D UI keeps its 16:9 size and shape, centred. The
    field minimap's panel, map and markers stay together in the centred box. Target cursors and other UI pinned to 3D
    points (damage numbers, enemy limit bars) follow their actors across the whole wide view, and damage numbers past
    the old 16:9 edges are drawn instead of hidden (enemy limit bars there should be too; not yet seen in a side strip). With fix.ui off the UI is stretched as before
    and the minimap camera keeps the game's 16:9.

  • Full-screen fills (fix.fills, default on; needs fix.ui): the main-menu and message-window dims and the
    flashback/dream filter (sepia, grain, vignette) cover the whole wide window; the menu background art stays
    centred with blurred, darkened sides that fade with it; the Esc menu's backdrop is extended over the side strips.

  • HUD anchored to the screen edges: in a wide 3D scene the battle command window and help band move toward the left
    edge, the party list and turn order toward the right, the field minimap to its own corner, the blitzball player
    plates, TIME/score box and minimap right (from the first frame of a match) and the narration and command lists left, and the autosave icon to the bottom
    right. Each group keeps its pixels (whole-pixel shifts). Everything else (message and choice windows, menus,
    subtitles, Overdrive timers, the Jecht Shot prompt) stays centred. How far they move: ui.spread.auto (default
    on) holds 0.75 through 43:18 (including 2560×1080 and 3440×1440), then uses smoothstep to reach 0.5 at 32:9 (ui.spread.21x9, ui.spread.32x9); with it off, ui.spread (0 =
    everything in the centred 16:9 box, 1 = at the edges). ui.anchor = centre16x9 keeps everything centred. Applies
    at once.

  • The menu background beside the centred menu page is now the art itself, scaled up uniformly to fill the width,
    blurred and darkened (it replaces the stretched edge bands). Developer settings fills.menubg.* (blur, extra scale,
    rotation, offset) apply at once.

  • Public API v1.2, additive: the layout layer IWiderscreenLayout (register a UiLayoutCallback to move, rescale,
    re-anchor or hide a UI group; GetPlacement reports what is applied, IsPlaced which groups are placed),
    UiPlacement (with IsApplied), UiLayoutContext, VerticalAnchor, and seven group ids (battle.info,
    battle.simple_help, system.autosave_icon, blitz.plates, blitz.score, blitz.narration, blitz.choices).
    battle.help's natural anchor is now left (with the command window; it was centre).

  • settings.tiers.json next to the manifest: each setting tagged standard, advanced or dev for settings UIs.

Changed

  • A subscriber of a Widerscreen event (StateChanged, Resized, PolicyChanged, SceneChanged) that throws no
    longer stops that update: each subscriber is logged once and skipped, and the others still run. On the first
    throw, earlier subscribers to that event get the same change again during the fallback dispatch....
Read more