Repository navigation
Releases
Releases · jrpereira/UE4SSLuaEXtensions
UE4SS Lua Extensions v1.4.0
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.iniunder
[UE4SSLuaEXtensions.<Slot>], keyed by the setting's id.settings.iniis
no longer read, so switches set there return to their defaults until set
again. An extension without amod_settings.inikeeps its load-time
verification switch there asEnableVerifications. - The Logs section of the Extensions tab lists, under the global level, one row
per mod that logs through the Log Bridge, setting itsmainlevel, 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
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]toconfig.ini
[UE4SSLuaEXtensions.Events](EnableHooksandEnableVerifications).settings.ini
is no longer read, so switches return to their defaults until set again.
UE4SSLuaFileBridge 1.2.0
- Breaking: settings move from
settings.ini[Settings]toconfig.ini
[UE4SSLuaEXtensions.Files](EnableVerifications).settings.ini
is no longer read, so switches return to their defaults until set again.
UE4SSLuaSoundBridge 1.2.0
- Breaking: settings move from
settings.ini[Settings]toconfig.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
- First version: leveled logging for UE4SS Lua mods (TRACE to CRITICAL, WARN
by default) with a logger per module, logging tomain, and the
categories the mod registers. - Levels per module, per category and global, from config.ini (
[Levels]),
the ModCore Settings menu orSetLevel, 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 onReloadSettings(). - Targets: UE4SS.log, or
<mod folder>/logs/<category>.logwith 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 tologs/previous-session.logand
completes undelivered module files.
UE4SSLuaSoundBridge v1.2.0
Changes
- Breaking: settings move from
settings.ini[Settings]toconfig.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
Changes
- First version: leveled logging for UE4SS Lua mods (TRACE to CRITICAL, WARN
by default) with a logger per module, logging tomain, and the
categories the mod registers. - Levels per module, per category and global, from config.ini (
[Levels]),
the ModCore Settings menu orSetLevel, 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 onReloadSettings(). - Targets: UE4SS.log, or
<mod folder>/logs/<category>.logwith 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 tologs/previous-session.logand
completes undelivered module files.
UE4SSLuaFileBridge v1.2.0
Changes
- Breaking: settings move from
settings.ini[Settings]toconfig.ini
[UE4SSLuaEXtensions.Files](EnableVerifications).settings.ini
is no longer read, so switches return to their defaults until set again.
UE4SSLuaEventBridge v1.4.0
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]toconfig.ini
[UE4SSLuaEXtensions.Events](EnableHooksandEnableVerifications).settings.ini
is no longer read, so switches return to their defaults until set again.
UE4SS Lua Extensions v1.3.3
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 itscachefolders 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
- Breaking:
settings.inikeeps both switches in one[Settings]section:
EnableHooksreplaces[Hooks] EnabledandEnableVerificationsreplaces
[Verifications] LoadTime. Old keys are ignored, so hooks stay on and
verifications stay off until switched on again. - Breaking:
Hooks.Hookis replaced byHooks.InstallandHooks.Request,
andh:Unhook(),Hooks.UnhookandHooks.UnhookAllbyh:Remove(),
Hooks.RemoveandHooks.RemoveAll. There are no aliases. Arguments after
the target are unchanged. A removed handle reportsstate = "removed"
instead of"unhooked". Hooks.Installattaches now or returnsnil, reason. It never waits and
does no background work. If a reload deletes the function, the hook becomes
orphanedand stays so.Hooks.Requestattaches 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 aUFunction, a property layout mismatch) return
nil, reasonfrom both calls. A pending request that meets one when its
class loads turnsfailedand stops retrying, instead of retrying every
second. - A request that turns
failedand an installed hook that turnsorphaned
are logged as aWARNline 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
andonLoopStartcallbacks 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. onLoopStartcallbacks 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_deliveryis replaced by
frame_delivery, which covers every callback.GetDispatchStats()adds
delivery = "tick"|"loop". UE4SSLEB_MAX_DISPATCH_USdefaults 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
BindActionandSubscribeEnhancedInputrefusing 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. BindActionandSubscribeEnhancedInputalso accept a liveUInputAction
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
- Breaking: the verification switch in
settings.iniis 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),
Tailcallbacks 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
Taildelivery 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_USstill overrides it).
UE4SSLuaSoundBridge 1.1.0
Loadaccepts 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_rooterror 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 asinvalid. GetCapabilities().pathsis"any", so a mod can detect the change.- A sound's
pathis its normalized path as given, relative or absolute.
UE4SS Lua Extensions v1.3.2
Changes
UE4SSLuaEXtensions 1.3.2 packages these extensions together for Nexus. Each is released separately on GitHub.
UE4SSLuaEventBridge 1.3.0
- Breaking:
settings.inikeeps both switches in one[Settings]section:
EnableHooksreplaces[Hooks] EnabledandEnableVerificationsreplaces
[Verifications] LoadTime. Old keys are ignored, so hooks stay on and
verifications stay off until switched on again. - Breaking:
Hooks.Hookis replaced byHooks.InstallandHooks.Request,
andh:Unhook(),Hooks.UnhookandHooks.UnhookAllbyh:Remove(),
Hooks.RemoveandHooks.RemoveAll. There are no aliases. Arguments after
the target are unchanged. A removed handle reportsstate = "removed"
instead of"unhooked". Hooks.Installattaches now or returnsnil, reason. It never waits and
does no background work. If a reload deletes the function, the hook becomes
orphanedand stays so.Hooks.Requestattaches 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 aUFunction, a property layout mismatch) return
nil, reasonfrom both calls. A pending request that meets one when its
class loads turnsfailedand stops retrying, instead of retrying every
second. - A request that turns
failedand an installed hook that turnsorphaned
are logged as aWARNline 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
andonLoopStartcallbacks 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. onLoopStartcallbacks 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_deliveryis replaced by
frame_delivery, which covers every callback.GetDispatchStats()adds
delivery = "tick"|"loop". UE4SSLEB_MAX_DISPATCH_USdefaults 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
BindActionandSubscribeEnhancedInputrefusing 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. BindActionandSubscribeEnhancedInputalso accept a liveUInputAction
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
- Breaking: the verification switch in
settings.iniis 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),
Tailcallbacks 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
Taildelivery 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_USstill overrides it).
UE4SSLuaSoundBridge 1.1.0
Loadaccepts 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_rooterror 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 asinvalid. GetCapabilities().pathsis"any", so a mod can detect the change.- A sound's
pathis its normalized path as given, relative or absolute.
UE4SSLuaSoundBridge v1.1.0
Changes
Loadaccepts 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_rooterror 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 asinvalid. GetCapabilities().pathsis"any", so a mod can detect the change.- A sound's
pathis its normalized path as given, relative or absolute.
UE4SSLuaSoundBridge v1.0.0
Changes
- First release: sound playback for UE4SS Lua mods through a native bridge.
Loadreads 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
optionalmax_secondslimit.sound:PlayandPlaystart 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,StopAllandsound:Release; sounds are released when
their Lua state stops, or when garbage collected.GetVersion,GetCapabilitiesandGetStats.- Load-time verifications: in-game checks of this API, shipped as
Scripts/main.luawith the sharedScripts/lex_verify.luaharness, 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
Changes
- Breaking: the verification switch in
settings.iniis 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),
Tailcallbacks 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
Taildelivery 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_USstill overrides it).