Repository navigation
Releases
Trinity 0.3.0
Trinity 0.3.0
This release adds trinity.registry, a production-ready plugin-to-plugin
interface registry, and the separate native provider/consumer examples and
tests that exercise it across module boundaries.
Artifacts
Trinity-v0.3.0-windows-x64.zip—TrinityCore/exefs/Trinity.dllplus the
NXP and registry C headersTrinity-v0.3.0-linux-x64.tar.gz—TrinityCore/lib/libTrinity.soplus the
NXP and registry C headersSHA256SUMSandrelease.json
Registry
- One process-wide registry owned by the loaded
Trinity.dll/
libTrinity.so; no plugin embeds a second table. - NXP access through
host->get_interface(host, "trinity.registry", 1)and
legacy access through the exportedtrinity_get_interface. - Windows discovery through the already-loaded
Trinity.dll; Linux discovery
throughRTLD_NOLOADand adl_iterate_phdrfallback. The client never loads
a second Trinity. - First registration wins; identical re-registration is idempotent; conflicts
are rejected; lookup uses a minimum compatible version; enumeration supports
capacity and stride; withdrawal is owner-only and does not invalidate table
pointers or registry strings already returned. - Provider names are canonical
<owner>.<project>; interface names add at
least one local segment.trinity.,nxp., host prefixes and reserved first
segments stay protected. Third-party provider namespaces are accepted as a
cooperative, process-local claim and documented as not authenticated. - The registry is internally thread-safe and never holds its lock while calling
a host log callback. - NXP descriptors gained an appended optional
earlycallback. The adapter's
nxmod_earlyexport is opt-in withNXP_ENABLE_EARLYto avoid shadowing a
plugin's existing export. - Trinity Core's panel shows generation, active provider/interface/version
records and recent rejected registrations.
The new guide is REGISTRY.md. It includes complete provider and
consumer examples, pointer lifetime, concurrency, initialization-order limits,
discovery and error codes. The prefix policy is updated in
PREFIXES.md. The NXP guide is updated in NXP.md.
Examples and tests
The separate modules are:
examples/registry_provider/ legacy NxModApi provider
examples/registry_consumer/ NXP consumer
The build produces separate DLLs/shared objects and a cross-module harness. It
loads Trinity, the provider and the consumer as distinct native modules and
checks missing-Trinity retry, early registration, the exported lookup path,
size/version validation, rejection, withdrawal and duplicate-load prevention.
CTest now has eight cases: the registry state machine, the cross-module
harness, the NXP host harness, the demo host harness, and compatibility-adapter
mappings for API 3, 4, 5 and 6. All eight pass on Windows x64 and Linux x64.
The state-machine suite covers nulls, invalid/reserved names, idempotence,
conflicts, version compatibility, unauthorized withdrawal, generation,
enumeration capacity/stride, pointer stability and concurrent
registration/lookup/withdrawal.
Verification level
- Compiled and linked: Windows x64 and Linux x64.
- Unit/state-machine tests: passed on both.
- Native module loading and runtime lookup through the exported function and
the NXP host path: passed on both in the separate-module harness. - Game runtime: the 0.2.0 payload remains the last package loaded by the three
host runtimes. The registry was not driven by a game runtime or a host
launcher in this workspace, and the panel's registry section was not visually
inspected. The in-process harness is not a gameplay test. - Early registration: proven when Trinity is already loaded. A provider whose
folder sorts beforeTrinityCorecannot register fromnxmod_earlybecause
the module is not loaded yet; it must retry atnxmod_init. That limitation
is documented, not hidden.
The existing 0.2.0 host evidence is unchanged in
COMPATIBILITY.md; new claims are appended with their exact
level.
SHA-256
ed4c7797f73d120bbf1cbf7c0f0f0757543b0e7dd2312b83184d0950b94e26a0 Trinity-v0.3.0-windows-x64.zip
eef72e3daef381fd0681678f6e49f52591d9ac8084f16a957283029283cf8c39 Trinity-v0.3.0-linux-x64.tar.gz
The archives are produced by tools/package_release.py; the release also
publishes SHA256SUMS and release.json.
Trinity 0.2.0
Trinity 0.2.0
This release makes the Windows and Linux plugin binaries first-class, removes
the remaining old panel copy, and adds checked installation paths for all three
hosts.
Artifacts
Trinity-v0.2.0-windows-x64.zip—TrinityCore/exefs/Trinity.dllTrinity-v0.2.0-linux-x64.tar.gz—TrinityCore/lib/libTrinity.soplus the public headerSHA256SUMSandrelease.json
The Windows and Linux files are built from the same NXP source. The Linux file
is an ELF64 x86-64 shared object with nxp_get_plugin and nxmod_init; it is
not a Windows DLL with a new extension.
Changes
- Added native Linux builds and a portable
dlopenhost harness. - Made the canonical outputs
Trinity.dllandlibTrinity.so; the manifest,
tests, adapter and docs use those names. - Ported host detection to POSIX (
/proc/self/exe) and kept the Windows module
path implementation. - Replaced the old “Three Houses” panel copy with host-integration wording and
changed the runtime log to “host prefix”. - Added first-run bundling in EmblemWeave: the launcher embeds 0.2.0, installs
onlyTrinityCore, refuses to downgrade a newer install and preserves
.nxp-settings.ini. - Added
tools/package_release.pyand the dependency-free
tools/install_trinity.py(official download, SHA-256 verification and safe
extraction). - Added release, compatibility and host-integration documentation.
Evidence
| Claim | Level | Evidence |
|---|---|---|
| Windows x64 plugin builds and all 5 CTest cases pass | C, R | Trinity/build/Trinity.dll; CTest 5/5 |
Linux x64 .so builds, exports both entry points and loads |
C, L, R | build-linux/libTrinity.so; CTest 5/5; native harness PASS |
| EmblemWeave runtime loads Trinity with two published mods | L, R | docs/evidence/mod-compat-runtime.log |
| fefw-recomp prepared runtime loads Trinity with the same two mods | L, R | docs/evidence/fefw-runtime.log |
| EmblemWeave bundle installs, preserves settings and guards versions | C, R | cargo test -p emblemweave trinity_bundle: 3 passed; release launcher run installed 0.2.0 |
| Official installer verifies SHA-256 before extraction | C, R | local release-artifact install test |
Compatibility limits
The two published mods, Quick Save and
Turn Control, were tested as their original
GameBanana DLLs. They use NxModApi directly and do not use the NXP
compatibility adapter. They loaded and initialized alongside Trinity on the
same game build in EmblemWeave (API 4) and in the prepared fefw-recomp 0.2.13
runtime (API 3). Quick Save reported that it could not find the save folder in
the headless fefw profile; Turn Control registered its System submenu. No save,
turn change, panel or gameplay action was exercised.
The Linux result is a native host-harness result. There is no Linux game
launcher or Linux game runtime in this workspace. The panel registered in the
Windows headless EmblemWeave runtime, but the in-game panel was not visually
captured. The fefw-recomp run was headless on API 3, which has no panel slot.
No gameplay changes are included in Trinity Core. See
INSTALL.md and COMPATIBILITY.md.
SHA-256
65ca0e9308570513935f370d095e01e623b8b1bc6d5d18cade7025955a3467c6 Trinity-v0.2.0-windows-x64.zip
414c7427c1476ca997157a1182b3549264b79facf93ac58c1a93b0a4a0861eed Trinity-v0.2.0-linux-x64.tar.gz