Skip to content

Releases

UE4SS Lua Extensions v1.4.0

Choose a tag to compare

@jrpereira jrpereira released this 22 Nov 04:59

Changes

UE4SSLuaEXtensions 1.4.0 packages these extensions together for Nexus. Each is released separately on GitHub.

UE4SSLuaEXtensions 1.4.0

  • The package includes UE4SSLuaLogBridge 1.0.0, alongside UE4SSLuaEventBridge
    1.4.0, UE4SSLuaFileBridge 1.2.0 and UE4SSLuaSoundBridge 1.2.0.
  • The extensions' settings are the Extensions tab of the ModCore Settings
    page, between Templates and Developer Tools: the installed count, then a
    section for each extension. ModCore Lua Extensions' entry in the mod list
    opens the tab. A ModCore Settings without the tab lists the page on its own.
  • Each extension's settings are stored in its own config.ini under
    [UE4SSLuaEXtensions.<Slot>], keyed by the setting's id. settings.ini is
    no longer read, so switches set there return to their defaults until set
    again. An extension without a mod_settings.ini keeps its load-time
    verification switch there as EnableVerifications.
  • The Logs section of the Extensions tab lists, under the global level, one row
    per mod that logs through the Log Bridge, setting its main level, and an
    extra row only for each category the mod registers. Each is set to Inherit
    or a level from Trace to Off and applies at once.
  • The Log Bridge re-reads its config.ini when ModCore Settings applies the
    Logs page or reloads config (its Reload Config button, or the game window
    regaining focus).

UE4SSLuaEventBridge 1.4.0

GitHub release

  • onFocusRegained(callback) runs a callback each time the game window comes
    back to the foreground, with the time it spent in the background. ModCore
    Settings uses it to reload config files edited while the game was in the
    background.
  • Breaking: settings move from settings.ini [Settings] to config.ini
    [UE4SSLuaEXtensions.Events] (EnableHooks and EnableVerifications). settings.ini
    is no longer read, so switches return to their defaults until set again.

UE4SSLuaFileBridge 1.2.0

GitHub release

  • Breaking: settings move from settings.ini [Settings] to config.ini
    [UE4SSLuaEXtensions.Files] (EnableVerifications). settings.ini
    is no longer read, so switches return to their defaults until set again.

UE4SSLuaSoundBridge 1.2.0

GitHub release

  • Breaking: settings move from settings.ini [Settings] to config.ini
    [UE4SSLuaEXtensions.Sounds] (EnableVerifications). settings.ini
    is no longer read, so switches return to their defaults until set again.
  • While nothing plays, the audio thread sleeps until a play, a stop or an
    output-device change, instead of waking on a timer.

UE4SSLuaLogBridge 1.0.0

GitHub release

  • First version: leveled logging for UE4SS Lua mods (TRACE to CRITICAL, WARN
    by default) with a logger per module, logging to main, and the
    categories the mod registers.
  • Levels per module, per category and global, from config.ini ([Levels]),
    the ModCore Settings menu or SetLevel, applied while the game runs. The
    menu lists every registered module and its categories, each with Inherit or
    a level; ListLoggers() returns the same list with effective levels.
    Edits to config.ini apply when ModCore Settings applies the Logs page or
    reloads config, and on ReloadSettings().
  • Targets: UE4SS.log, or <mod folder>/logs/<category>.log with the previous
    session kept as <category>.prev.log.
  • Delivery immediate, once per frame or periodic, without holding up the game.
  • Every logged line survives a crash; the next
    start writes the previous session's lines to logs/previous-session.log and
    completes undelivered module files.

UE4SSLuaSoundBridge v1.2.0

Choose a tag to compare

@jrpereira jrpereira released this 22 Nov 04:58

Changes

  • Breaking: settings move from settings.ini [Settings] to config.ini
    [UE4SSLuaEXtensions.Sounds] (EnableVerifications). settings.ini
    is no longer read, so switches return to their defaults until set again.
  • While nothing plays, the audio thread sleeps until a play, a stop or an
    output-device change, instead of waking on a timer.

UE4SSLuaLogBridge v1.0.0

Choose a tag to compare

@jrpereira jrpereira released this 22 Nov 04:57

Changes

  • First version: leveled logging for UE4SS Lua mods (TRACE to CRITICAL, WARN
    by default) with a logger per module, logging to main, and the
    categories the mod registers.
  • Levels per module, per category and global, from config.ini ([Levels]),
    the ModCore Settings menu or SetLevel, applied while the game runs. The
    menu lists every registered module and its categories, each with Inherit or
    a level; ListLoggers() returns the same list with effective levels.
    Edits to config.ini apply when ModCore Settings applies the Logs page or
    reloads config, and on ReloadSettings().
  • Targets: UE4SS.log, or <mod folder>/logs/<category>.log with the previous
    session kept as <category>.prev.log.
  • Delivery immediate, once per frame or periodic, without holding up the game.
  • Every logged line survives a crash; the next
    start writes the previous session's lines to logs/previous-session.log and
    completes undelivered module files.

UE4SSLuaFileBridge v1.2.0

Choose a tag to compare

@jrpereira jrpereira released this 22 Nov 04:57

Changes

  • Breaking: settings move from settings.ini [Settings] to config.ini
    [UE4SSLuaEXtensions.Files] (EnableVerifications). settings.ini
    is no longer read, so switches return to their defaults until set again.

UE4SSLuaEventBridge v1.4.0

Choose a tag to compare

@jrpereira jrpereira released this 22 Nov 04:57

Changes

  • onFocusRegained(callback) runs a callback each time the game window comes
    back to the foreground, with the time it spent in the background. ModCore
    Settings uses it to reload config files edited while the game was in the
    background.
  • Breaking: settings move from settings.ini [Settings] to config.ini
    [UE4SSLuaEXtensions.Events] (EnableHooks and EnableVerifications). settings.ini
    is no longer read, so switches return to their defaults until set again.

UE4SS Lua Extensions v1.3.3

Choose a tag to compare

@github-actions github-actions released this 17 Nov 08:16

Changes

UE4SSLuaEXtensions 1.3.3 packages these extensions together for Nexus. Each is released separately on GitHub.

UE4SSLuaEXtensions 1.3.3

  • Fix the extensions menu failing at startup on a fresh install with "cannot
    create the cache directory". The menu now creates its cache folders through
    UE4SSLuaFileBridge when it is loaded, falls back to the shell, and judges
    success by writing a file into the folder instead of trusting the command's
    result. If it still fails, the extensions keep working and are listed on
    their own, as before.

UE4SSLuaEventBridge 1.3.0

GitHub release

  • Breaking: settings.ini keeps both switches in one [Settings] section:
    EnableHooks replaces [Hooks] Enabled and EnableVerifications replaces
    [Verifications] LoadTime. Old keys are ignored, so hooks stay on and
    verifications stay off until switched on again.
  • Breaking: Hooks.Hook is replaced by Hooks.Install and Hooks.Request,
    and h:Unhook(), Hooks.Unhook and Hooks.UnhookAll by h:Remove(),
    Hooks.Remove and Hooks.RemoveAll. There are no aliases. Arguments after
    the target are unchanged. A removed handle reports state = "removed"
    instead of "unhooked".
  • Hooks.Install attaches now or returns nil, reason. It never waits and
    does no background work. If a reload deletes the function, the hook becomes
    orphaned and stays so.
  • Hooks.Request attaches now if it can, otherwise waits for the owner class
    to load, and attaches again after a reload deletes the function. Pending
    hooks no longer retry every second for as long as they are pending (each
    retry cost about 33 ms on a miss in a loaded level). A request now retries
    only after its class-name wake-up: on the next tick, then about 100 ms and
    1 s later, and then it waits for the next wake-up.
  • Refusals that can never succeed (unknown parameter, unsupported parameter
    kind, a target that is not a UFunction, a property layout mismatch) return
    nil, reason from both calls. A pending request that meets one when its
    class loads turns failed and stops retrying, instead of retrying every
    second.
  • A request that turns failed and an installed hook that turns orphaned
    are logged as a WARN line with the function path.
  • h:Remove() is safe on any status: pending, active, orphaned, failed or
    already removed.
  • Fix a race that could corrupt a mod's Lua state: input callbacks ran on
    UE4SS's event-loop thread while function-hook callbacks for the same mod ran
    on the game thread, with nothing keeping the two apart. Every bridge
    callback now runs on one thread.
  • With UE4SS's engine-tick detour (the default), input, delivery-fault, trace
    and onLoopStart callbacks run on the game thread, once per frame from the
    engine tick, in the same frame as the input and after the frame's hook
    events. Callbacks may touch UObjects directly; ExecuteInGameThread
    wrappers keep working, one frame later. Without the detour every callback,
    hooks included, runs from the event loop as before.
  • onLoopStart callbacks still wait until the whole Lua-mod batch has
    started; with the engine tick they arrive on the next frame after that.
  • Breaking: GetCapabilities().hooks_frame_delivery is replaced by
    frame_delivery, which covers every callback. GetDispatchStats() adds
    delivery = "tick"|"loop".
  • UE4SSLEB_MAX_DISPATCH_US defaults to 500 microseconds instead of 2,000,
    since the input pass now runs every frame. UE4SSLEB_QUEUE_CHECKS_PER_SECOND
    applies only without the engine tick.
  • Fix BindAction and SubscribeEnhancedInput refusing an InputAction asset
    that nothing had weakly referenced yet ("InputAction weak-reference
    initialization failed"). Unreal assigns that reference lazily; the bridge
    now asks Unreal to assign it and retries once.
  • BindAction and SubscribeEnhancedInput also accept a live UInputAction
    wrapper in place of its path; it binds by address and skips the lookup.
  • With the engine tick, the bridge DLL stays loaded until the game exits:
    UE4SS cannot unregister the tick callback. Restarting the C++ mods then
    needs a game restart, as it already did once a hook had been used.

UE4SSLuaFileBridge 1.1.0

GitHub release

  • Breaking: the verification switch in settings.ini is now [Settings] EnableVerifications, replacing [Verifications] LoadTime. The old key is
    ignored, so verifications stay off until switched on again.
  • With UE4SS's engine-tick detour (the default), Tail callbacks run on the
    game thread, once per frame from the engine tick, the thread that also runs
    every UE4SSLuaEventBridge callback, so a mod that uses both bridges never
    has two of their callbacks in its Lua state at once. Files are still read
    from UE4SS's update thread. Without the detour, callbacks run from the
    update callback as before.
  • With the engine tick, the bridge DLL stays loaded until the game exits:
    UE4SS cannot unregister the tick callback.
  • The default Tail delivery time limit drops from 2,000 to 500 microseconds
    per pass, since a pass now runs every frame on the game thread
    (UE4SSLFB_MAX_DISPATCH_US still overrides it).

UE4SSLuaSoundBridge 1.1.0

GitHub release

  • Load accepts any path: an absolute path with a drive letter loads as given,
    and a relative path still resolves against the calling mod's folder, with
    .. allowed to climb out of it. Code running in another mod's Lua state,
    such as a ModCore Templates template, can now load its own sounds.
  • No folder or link containment: the outside_root error code is gone.
    Refusals remain only for paths that could stall the game or be misread:
    network and device paths, device names, streams, folders and files over
    64 MiB, all as invalid.
  • GetCapabilities().paths is "any", so a mod can detect the change.
  • A sound's path is its normalized path as given, relative or absolute.

UE4SS Lua Extensions v1.3.2

Choose a tag to compare

@github-actions github-actions released this 16 Nov 12:05

Changes

UE4SSLuaEXtensions 1.3.2 packages these extensions together for Nexus. Each is released separately on GitHub.

UE4SSLuaEventBridge 1.3.0

GitHub release

  • Breaking: settings.ini keeps both switches in one [Settings] section:
    EnableHooks replaces [Hooks] Enabled and EnableVerifications replaces
    [Verifications] LoadTime. Old keys are ignored, so hooks stay on and
    verifications stay off until switched on again.
  • Breaking: Hooks.Hook is replaced by Hooks.Install and Hooks.Request,
    and h:Unhook(), Hooks.Unhook and Hooks.UnhookAll by h:Remove(),
    Hooks.Remove and Hooks.RemoveAll. There are no aliases. Arguments after
    the target are unchanged. A removed handle reports state = "removed"
    instead of "unhooked".
  • Hooks.Install attaches now or returns nil, reason. It never waits and
    does no background work. If a reload deletes the function, the hook becomes
    orphaned and stays so.
  • Hooks.Request attaches now if it can, otherwise waits for the owner class
    to load, and attaches again after a reload deletes the function. Pending
    hooks no longer retry every second for as long as they are pending (each
    retry cost about 33 ms on a miss in a loaded level). A request now retries
    only after its class-name wake-up: on the next tick, then about 100 ms and
    1 s later, and then it waits for the next wake-up.
  • Refusals that can never succeed (unknown parameter, unsupported parameter
    kind, a target that is not a UFunction, a property layout mismatch) return
    nil, reason from both calls. A pending request that meets one when its
    class loads turns failed and stops retrying, instead of retrying every
    second.
  • A request that turns failed and an installed hook that turns orphaned
    are logged as a WARN line with the function path.
  • h:Remove() is safe on any status: pending, active, orphaned, failed or
    already removed.
  • Fix a race that could corrupt a mod's Lua state: input callbacks ran on
    UE4SS's event-loop thread while function-hook callbacks for the same mod ran
    on the game thread, with nothing keeping the two apart. Every bridge
    callback now runs on one thread.
  • With UE4SS's engine-tick detour (the default), input, delivery-fault, trace
    and onLoopStart callbacks run on the game thread, once per frame from the
    engine tick, in the same frame as the input and after the frame's hook
    events. Callbacks may touch UObjects directly; ExecuteInGameThread
    wrappers keep working, one frame later. Without the detour every callback,
    hooks included, runs from the event loop as before.
  • onLoopStart callbacks still wait until the whole Lua-mod batch has
    started; with the engine tick they arrive on the next frame after that.
  • Breaking: GetCapabilities().hooks_frame_delivery is replaced by
    frame_delivery, which covers every callback. GetDispatchStats() adds
    delivery = "tick"|"loop".
  • UE4SSLEB_MAX_DISPATCH_US defaults to 500 microseconds instead of 2,000,
    since the input pass now runs every frame. UE4SSLEB_QUEUE_CHECKS_PER_SECOND
    applies only without the engine tick.
  • Fix BindAction and SubscribeEnhancedInput refusing an InputAction asset
    that nothing had weakly referenced yet ("InputAction weak-reference
    initialization failed"). Unreal assigns that reference lazily; the bridge
    now asks Unreal to assign it and retries once.
  • BindAction and SubscribeEnhancedInput also accept a live UInputAction
    wrapper in place of its path; it binds by address and skips the lookup.
  • With the engine tick, the bridge DLL stays loaded until the game exits:
    UE4SS cannot unregister the tick callback. Restarting the C++ mods then
    needs a game restart, as it already did once a hook had been used.

UE4SSLuaFileBridge 1.1.0

GitHub release

  • Breaking: the verification switch in settings.ini is now [Settings] EnableVerifications, replacing [Verifications] LoadTime. The old key is
    ignored, so verifications stay off until switched on again.
  • With UE4SS's engine-tick detour (the default), Tail callbacks run on the
    game thread, once per frame from the engine tick, the thread that also runs
    every UE4SSLuaEventBridge callback, so a mod that uses both bridges never
    has two of their callbacks in its Lua state at once. Files are still read
    from UE4SS's update thread. Without the detour, callbacks run from the
    update callback as before.
  • With the engine tick, the bridge DLL stays loaded until the game exits:
    UE4SS cannot unregister the tick callback.
  • The default Tail delivery time limit drops from 2,000 to 500 microseconds
    per pass, since a pass now runs every frame on the game thread
    (UE4SSLFB_MAX_DISPATCH_US still overrides it).

UE4SSLuaSoundBridge 1.1.0

GitHub release

  • Load accepts any path: an absolute path with a drive letter loads as given,
    and a relative path still resolves against the calling mod's folder, with
    .. allowed to climb out of it. Code running in another mod's Lua state,
    such as a ModCore Templates template, can now load its own sounds.
  • No folder or link containment: the outside_root error code is gone.
    Refusals remain only for paths that could stall the game or be misread:
    network and device paths, device names, streams, folders and files over
    64 MiB, all as invalid.
  • GetCapabilities().paths is "any", so a mod can detect the change.
  • A sound's path is its normalized path as given, relative or absolute.

UE4SSLuaSoundBridge v1.1.0

Choose a tag to compare

Changes

  • Load accepts any path: an absolute path with a drive letter loads as given,
    and a relative path still resolves against the calling mod's folder, with
    .. allowed to climb out of it. Code running in another mod's Lua state,
    such as a ModCore Templates template, can now load its own sounds.
  • No folder or link containment: the outside_root error code is gone.
    Refusals remain only for paths that could stall the game or be misread:
    network and device paths, device names, streams, folders and files over
    64 MiB, all as invalid.
  • GetCapabilities().paths is "any", so a mod can detect the change.
  • A sound's path is its normalized path as given, relative or absolute.

UE4SSLuaSoundBridge v1.0.0

Choose a tag to compare

Changes

  • First release: sound playback for UE4SS Lua mods through a native bridge.
  • Load reads and decodes a WAV file from the calling mod's own folder (PCM at
    8, 16, 24 or 32 bits, float at 32 or 64 bits, mono or stereo), with an
    optional max_seconds limit.
  • sound:Play and Play start a play at once, with pan, volume, pitch and an
    optional low-pass filter per play; plays overlap freely.
  • XAudio2 playback on its own audio thread with 32 voices; when all are busy
    the oldest play is taken over.
  • Follows the default output device and restarts on a new one; plays are
    dropped quietly while no device exists.
  • Stop, sound:Stop, StopAll and sound:Release; sounds are released when
    their Lua state stops, or when garbage collected.
  • GetVersion, GetCapabilities and GetStats.
  • Load-time verifications: in-game checks of this API, shipped as
    Scripts/main.lua with the shared Scripts/lex_verify.lua harness, and a
    ModCore Settings page whose Enable load-time verifications toggle turns
    them on (off by default). Results go to UE4SS.log.

UE4SSLuaFileBridge v1.1.0

Choose a tag to compare

Changes

  • Breaking: the verification switch in settings.ini is now [Settings] EnableVerifications, replacing [Verifications] LoadTime. The old key is
    ignored, so verifications stay off until switched on again.
  • With UE4SS's engine-tick detour (the default), Tail callbacks run on the
    game thread, once per frame from the engine tick, the thread that also runs
    every UE4SSLuaEventBridge callback, so a mod that uses both bridges never
    has two of their callbacks in its Lua state at once. Files are still read
    from UE4SS's update thread. Without the detour, callbacks run from the
    update callback as before.
  • With the engine tick, the bridge DLL stays loaded until the game exits:
    UE4SS cannot unregister the tick callback.
  • The default Tail delivery time limit drops from 2,000 to 500 microseconds
    per pass, since a pass now runs every frame on the game thread
    (UE4SSLFB_MAX_DISPATCH_US still overrides it).