Skip to content
XiONDiGiTaLPublic

About

A unified code-mod plugin for EmblemWeave, fefw-recomp, and ObeliskChamber, providing a shared compatibility layer across independent launchers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Trinity

Trinity

Unified Code Mods Plugin

Three Houses. One Vision.

Trinity is a unified code-mod plugin for three independent Fire Emblem: Fortune's Weave projects:

It provides a shared code-mod compatibility layer and plugin interface, so a compatible code mod can target one contract instead of maintaining a separate implementation for every launcher. Each launcher keeps its own design, functionality and identity. Trinity connects their code-mod systems through a shared interface and host-specific integration.

Trinity is not a replacement launcher, a mod manager or a fork of any host project.

What Trinity provides

Capability What it means for a code mod
One plugin interface A versioned C ABI (NXP) with a single discovery entry point and optional interfaces for host identity, settings, files, frames and a native panel.
Existing mod compatibility A compatibility adapter maps the NxModApi 3, 4 and 5 tables that the three runtimes already expose. Existing nxmod_init mods keep loading; no host API version has to change.
Host-owned interface The plugin supplies content; the host draws it with its own fonts, spacing, colours, input model and controller navigation. Each launcher remains visually itself.
Shared services Persisted per-plugin settings, plugin-scoped files and an optional per-frame callback, with capability checks so a plugin degrades cleanly when a host lacks an interface.
Plugin-to-plugin registry trinity.registry lets independent code mods publish and consume versioned, provider-owned tables without linking to one another. The service is optional, process-wide and available through both NXP and legacy NxModApi discovery.
Collision-free names A prefix registry reserves trinity., nxp. and each host's namespace. The runtime registry additionally allows a canonical third-party <owner>.<project> provider to claim its own names, while host and reserved prefixes stay protected.
Prebuilt releases Windows x64 Trinity.dll and Linux x64 libTrinity.so, published with SHA256SUMS and a dependency-free installer. Launcher developers do not need to build Trinity to consume it.
Evidence-based support The compatibility matrix records the exact level reached for each host: compiled, loaded, observed, visually inspected or gameplay-tested.

The compatibility adapter is the bridge that makes current hosts work without a runtime rewrite. A native host adapter can expose the same NXP contract directly later. See docs/NXP.md, docs/REGISTRY.md and docs/ARCHITECTURE.md.

Supported launcher projects

Project Launcher Code-mod API at the tested version Trinity integration
EmblemWeave Native egui / Rust NxModApi 4 Native Trinity page in the host tree; NXP compatibility adapter loaded by the development runtime and the Trinity panel registered.
fefw-recomp Tauri 2 / Vite NxModApi 3 in 0.2.13; API 4 planned upstream Host-styled Tauri page adapter and patch; Trinity Core 0.2.0 loaded headless on API 3, where no panel slot exists.
ObeliskChamber Tauri 2 / Vite NxModApi 5 Panel-styled Tauri page adapter and patch; Trinity Core 0.2.0 loaded headless on API 5 and registered its panel.

The launcher and the game runtime are separate processes. Trinity's launcher surface presents the shared catalog and prefix registry; the runtime plugin provides the interfaces. A launcher page does not prove that a plugin loads, and a plugin load does not prove gameplay.

Trinity in each launcher

These are current captures of the installed launcher builds with the shared Trinity page open. The host styling, navigation, catalog and prefix registry are rendered by each launcher itself.

EmblemWeave fefw-recomp ObeliskChamber
Trinity page in EmblemWeave Trinity page in fefw-recomp Trinity page in ObeliskChamber

These show the launcher surface, not the in-game Trinity panel. Runtime loading and its limits are recorded below and in docs/COMPATIBILITY.md.

Compatibility status

Host Verified Not yet verified
EmblemWeave (development runtime, API 4) Windows x64 DLL loaded and initialized alongside two published code mods; demo panel rendered under F1 > Advanced > Mods; Trinity panel registration and prefix checks logged; settings persisted through the adapter. A windowed capture of the Trinity 0.2.0 panel; any save, turn or gameplay action.
fefw-recomp 0.2.13 (API 3) Windows x64 DLL loaded and initialized headless with the same two published mods; first frame reached; settings files created. A panel (API 3 has no add_panel slot); any save, turn or gameplay action.
ObeliskChamber 0.3.2 (API 5) Windows x64 DLL loaded and initialized headless with the same two published mods; panel registered; first frame reached. Drawing or interacting with the panel; any save, turn or gameplay action.
Linux x64 libTrinity.so builds as ELF64 x86-64, exports the NXP, legacy-adapter and registry entry points, and passes the native dlopen host and separate-module harnesses. Any Linux game launcher or game runtime; Steam Deck and Proton are untested.

Both installed EmblemWeave 0.1.43 runtimes (E:\EmblemWeave and X:\EmblemWeave) loaded the launcher-staged 0.2.0 payload on API 4. The X runtime needed a generated INI and had an empty shader cache, so that run proves loading and initialization, not rendering or gameplay.

The 0.3.0 package adds trinity.registry. It was built and exercised by the separate-module harness on Windows and Linux; it has not yet been loaded by a game runtime. The registry panel section has not been visually inspected. Do not read the 0.2.0 host results as a 0.3.0 game-runtime result.

The registry is compiled and exercised on Windows x64 and Linux x64 by a separate provider/consumer module harness. That proves native module discovery and lookup, not a game-runtime provider/consumer session; no host launcher or game runtime in this workspace was used for that sequence. See docs/REGISTRY.md and the registry rows in docs/COMPATIBILITY.md.

Compilation is not loading. Loading is not rendering. Rendering is not gameplay. The full evidence ledger is in docs/COMPATIBILITY.md.

Installation and downloads

The current release is Trinity 0.3.0.

Platform Release asset Payload
Windows x64 Trinity-v0.3.0-windows-x64.zip TrinityCore/exefs/Trinity.dll plus the NXP and registry headers
Linux x64 Trinity-v0.3.0-linux-x64.tar.gz TrinityCore/lib/libTrinity.so plus the NXP and registry headers

SHA256SUMS and release.json sit beside the archives. Verify the archive before extracting; the installer does this automatically. End users do not need Visual Studio, CMake, a compiler, an SDK or any other development tool to install Trinity.

For fefw-recomp and ObeliskChamber, the dependency-free installer writes only <host>/mods/TrinityCore:

python tools/install_trinity.py --host-dir "C:\path\to\fefw-recomp" --version 0.3.0
python tools/install_trinity.py --host-dir "C:\path\to\ObeliskChamber" --version 0.3.0

Launcher builds with drop-in discovery also accept a payload beside their own executable or under plugins/. For example, either E:\EmblemWeave\Trinity.dll or E:\EmblemWeave\plugins\Trinity.dll is staged into data/play/mods; the same root/plugins layouts work for fefw-recomp and ObeliskChamber. The launcher stages the DLL and the game runtime loads it, so no loader change is needed. The prepared module and host patches are in integrations/launcher-plugins.

For EmblemWeave, a drop-in DLL takes precedence over the embedded Windows payload. Without one, builds that include the integration embed the payload and install TrinityCore under data/play/mods (or %APPDATA%\EmblemWeave\play\mods) on first start. Existing settings are preserved across updates.

Release archives, offline installation, host bundles and checksum verification are documented in docs/INSTALL.md.

Existing code mod compatibility

Trinity is tested alongside the original binaries of two published code mods. They use NxModApi directly and do not pass through Trinity's NXP adapter; the result is coexistence under the same host loader, not a claim that they are NXP plugins.

Mod EmblemWeave (API 4) fefw-recomp 0.2.13 (API 3) ObeliskChamber 0.3.2 (API 5)
Quicksave 1.0.0 Loaded; [Quick] ready; found its save folder. No save or load action exercised. Loaded; [Quick] ready; save folder not found in the headless profile. No save or load action exercised. Loaded; [Quick] ready; save folder not found in the headless profile. No save or load action exercised.
Turn Control 0.3.0 Loaded; [Turns] ready; Mods window and hotkeys available. No turn or facility action exercised. Loaded; [Turns] ready; System submenu registered. No turn or facility action exercised. Loaded; [Turns] ready; Turn Control list screen registered. No turn or facility action exercised.

Both mods and Trinity Core loaded together in every host above, with no init declined. The runs were headless; they prove loading and initialization, not save, turn or gameplay behavior. See docs/evidence/ for the logs and exact hashes.

These are also the reference mods used to check that Trinity does not disturb an existing code-mod ecosystem. See Credits & Contributors.

Platform support

Platform Artifact Architecture Runtime dependencies Verified level
Windows Trinity.dll PE32+ x86-64 No third-party libraries. Uses the x64 Microsoft C/C++ runtime; a host system without it needs the standard VC++ Redistributable. Built; loaded by EmblemWeave, fefw-recomp 0.2.13 and ObeliskChamber 0.3.2 game runtimes.
Linux libTrinity.so ELF64 x86-64 The standard x86-64 C/C++ runtime already present on desktop distributions (libstdc++, libgcc_s, libc). No third-party libraries. Built; ELF and exports checked; loaded by the native dlopen harness. No Linux game host was tested.

Trinity.dll and libTrinity.so are different binary formats. Renaming one does not produce the other. Build the matching artifact for the platform and load it with that platform's module loader.

Steam Deck and Proton compatibility have not been validated. The Linux result is a native harness result, not a Linux game launch.

For launcher maintainers

Other launcher projects can consume Trinity without building it:

  1. Bundle a verified release payload, or download an official release and verify it against SHA256SUMS.
  2. Place TrinityCore where the host's existing mod loader already scans (mods/ for fefw-recomp and ObeliskChamber; data/play/mods/ for EmblemWeave), or let the launcher stage a root/plugins drop-in into that folder.
  3. Let the existing loader call nxmod_init, or resolve nxp_get_plugin from a native adapter.
  4. Validate plugin.json, the NXP descriptor and the host's capability set before enabling UI.
  5. Preserve the launcher's current pages, navigation and visual language; add Trinity as one entry rather than replacing the shell.
  6. Report a missing or incompatible plugin as a disabled entry with a useful reason, not as a launcher crash.

The practical guide, including version checks, update handling, error messages and host-specific load paths, is docs/HOST-INTEGRATION.md. The drop-in module, tested launcher hookup and prepared patches are in integrations/launcher-plugins. It requires no build step in the host project beyond its normal packaging.

Documentation

Document Purpose
Launcher integration Bundling, downloading, verifying, loading, version checks, updates and error handling for host maintainers.
Install and release assets End-user installation, root/plugins drop-in, offline bundles and platform artifacts.
Launcher drop-in module Prepared Rust discovery/staging code and host hookup for root or plugins/ packages.
Compatibility matrix Exact host and platform status with evidence levels.
Architecture Layers, lifecycle, threading and the launcher/runtime split.
NXP ABI guide The public plugin contract, interfaces and rules for native adapters.
Plugin interface registry trinity.registry: publishing, lookup, early initialization, pointer lifetime, discovery, panel diagnostics and complete C examples.
Prefix specification The shared namespace registry, third-party provider policy and its relationship to fefw-recomp issue #165.
Building and testing Contributor build and test instructions for Windows and Linux.
Release 0.3.0 notes What changed in the current release.
Release 0.2.0 notes Previous release, retained for history.
Test evidence Runtime logs, launcher captures and their limits.
Licensing and provenance License scope and third-party attribution.
Development inventory What existed before Trinity and what was migrated.
Technical assessment Phase 0 assessment, retained as a historical record.
Maintainer proposal Early proposal, not posted and not accepted.
Brand assets The authoritative Trinity logo.

Credits & Contributors

Trinity exists because three independent launcher projects chose to share a code-mod surface, and because contributors made that surface testable against real mods. Listing a project here credits the person who leads it; it does not imply that everyone below authored Trinity itself.

Contributor Project / contribution Links
XiØN EmblemWeave EmblemWeave
metrist38 fefw-recomp fefw-recomp
xinthefreefallx ObeliskChamber ObeliskChamber
Mi-Kel Pull request contributions and code mods used for compatibility testing Code Mods

Mi-Kel contributed the merged EmblemWeave pull request #71, which added the NxModApi 4 Mods window for code mods' own settings (keyboard F8, controller through the menu's Mods tab). Mi-Kel also provided the code mods used as compatibility references: Quicksave 1.0.0 and Turn Control 0.3.0, published on GameBanana as dg^ through the linked submissions page. Those original binaries are what Trinity's coexistence tests load; they are not Trinity plugins.

Mi-Kel is not a maintainer of EmblemWeave, fefw-recomp or ObeliskChamber. The three launcher projects remain their own work, and Trinity's plugin layer, ABI, adapters and launcher surface are maintained in this repository. The credits above do not make all four contributors authors of Trinity.

Project philosophy

Three projects, three identities, one shared code-mod contract. Trinity does not flatten the launchers into one interface or ask them to adopt a common shell. It gives compatible mods a stable place to stand while each host keeps its own design, input model and release path.

Support is claimed only at the level that was tested. A build is not a load, a load is not a render, and a render is not gameplay. The compatibility matrix is the public claim; new evidence appends to it rather than replacing a lower level with a hopeful one.

Three Houses. One Vision.

Independent projects, shared innovation, weaved together.

License

The repository is MIT licensed as established by its owner. The NXP header, the compatibility adapter and the reference plugin carry GPL-3.0-or-later, matching the host projects from which their ABI is derived. Third-party and host-derived material is listed in docs/THIRD_PARTY.md. Do not remove an SPDX identifier from a migrated file.

Contributing

The three host projects remain independent. Changes to a host repository require that host's maintainers and its own review process. Trinity changes belong here.

Do not claim support for a host or a platform without a matching entry in docs/COMPATIBILITY.md and evidence for the exact level claimed.

About

A unified code-mod plugin for EmblemWeave, fefw-recomp, and ObeliskChamber, providing a shared compatibility layer across independent launchers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages