Repository navigation
tLib v1.2
Take tLib.zip, not "Source code". Every resource that uses something below names tlib_min_version '1.2.0', so update tLib before the resources that need it.
Fixed
- A resource that needs a newer tLib than you have now stops and says so in one boxed message: the
version it needs, the version and build you have, and the release page, with a reminder to take
tLib.zipand not "Source code". It used to abort one file and leave the resource running
without tLib. tlib_versionin the server console prints one line to paste into a ticket: tLib's version,
build, commit and folder, which door the panels use, and a row per resource that needs tLib with
whether its minimum is met. No IP address is in it.- tLib checks its own built files at startup and names any that are missing or cut short, so a
source download or a file damaged by a panel's upload tool is reported by tLib itself. - Every release now has a version of its own,
1.2, then1.2.1. A release records its commit
beside its build, and both appear in tLib's banner and in every_diagline. - The marketplace panel opened with nothing in it on the first open of a session, until a tab was
clicked. It now loads straight away, scoped to the resource that opened it. - A marketplace list that does not load now says why instead of
Failed to load marketplaceover
a raw status. A "not found" from the website, an unreachable host, a timeout, a refusal and a
missing tLib server bundle each get their own explanation and what to check, and an empty
catalogue reads as "No sounds are published for tDetector yet", not as an error. A tLib server
bundle that did not start is named at theNo such export mpRegisterTypeline, with where to
look. - A saved setting stored by an older build no longer stops a resource loading when tLib reads it as
the wrong type:tlib.kvp.getFloatandgetIntfall back to the default and print one line
naming the key. A saved value that is not valid JSON reads as the default ingetJsonand as
its text inget, instead of stopping the resource. - A server whose game timer wrapped no longer refuses a player's requests until the clock catches
up.tlib.ratelimitrestarts the interval instead, and a refusal after the wrap is reported
again. - A
tlib_http_public_urlcopied from the docs (your-server-address,example.com, the
203.0.113.xdocumentation addresses) is no longer used as the panel's address. tLib quotes
the value, says it is not usable, and detects your public IP instead. - The startup banner no longer suggests
set tlib_http_port 7777on a server that never opened
that port. - With
tlib_http_ingress falseand a listener set, tLib says the panels are served only on that
port and which lines to delete. - The note that a resource's panel is using long polling on the game port is an info line that says
what it costs and what to set, no longer a warning. - Dialogs no longer log authoring warnings (several primary buttons, buttons without a description)
in the player's NUI. They are logged at DEBUG for the person writing the dialog. tlib.healthcheckno longer calls a failurerefusedwhen it took two seconds or more to
arrive. That is the engine's own connect timeout, which is what a dropped packet looks like, and
it is reported assilent.
Added
tlib.nui.register: an NUI callback that is always answered, with a structured error on a throw
and a bound on handler time. Every NUI callback tLib owns now goes through it, so a handler that
fails no longer leaves the page waiting forcallback "X" did not answer within 10000ms.@tlib/shared/retry:createRetryLoop, a single-flight backoff with a fast stretch, jitter, a
cap,maxAttempts/maxElapsedMs,onGiveUpandresume().tlib.ratelimit.tokens: a per-player token bucket with a cost per call and one refusal line per
window. tLib's own menu request limit and the feedback form's per-player minute now use it.tlib.item.onUse: one usable-item registration for ox_inventory, qbx_core, qb-core and
es_extended.GetHttpStatusreportsreachedFromOutsideandreachedAtonce a request from another machine
has reached a door, andpublicUrlOverride(unset,used,rejected). The local event
tlib:http:remotefires once, with no address.tlib.healthchecksteps carryclass(ok,refused,silent,wrong-service),
elapsedMsanderrorData, and accepterrorMsgsto choose wording by class. A connection the
engine reports as 200 with an empty body and no headers is a refused connection.- A marketplace install reports how long it held the server thread. The in-game log line carries
it, and an install over 100 ms is named in the server log, so a hitch that coincides with an
install can be matched to it. - Docs: Hosted servers, "Which of these settings do I need?", IPv6, the web hub status fields, why a
marketplace list fails and what to do, and thelockedmodelsmodule with itstlib_locked_models
andtlib_reduce_motionconvars, which were read but not documented. - The child-process catalog names
tRadioAI(llama-server, whisper-server, piper) in place oftRadio,
and the startup banner lists it when it is installed. Its whisper-server entry no longer accepts
--convert, which shells out to ffmpeg.add_unsafe_child_process_permission tLibis still the
only line a server needs, and only when it runs a local engine.