Skip to content

About

A boring, useless plugin. Really - it just runs wherever you put it: download the matching build, drop it in the right place, then install plugins however you like. EXILED plugins inside LabAPI, LabAPI plugins inside EXILED - it loads them for you.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

0CrossFrameworkLoader

A boring, useless plugin. Really — no point explaining it, let's just say it: it runs wherever you put it. Download the matching build, drop it in the right place, and then install plugins however you like. Community (EXILED) plugins inside LabAPI? LabAPI plugins inside EXILED? It runs them for you.

The name starts with 0 and the plugin declares the highest load priority in both frameworks, so it is always the first thing to run.

What it does

Where you put it What it does for you
LabAPI folder LabAPI plugins run as usual; LabAPI plugins sitting in the EXILED folder are picked up too
EXILED folder EXILED plugins run as usual; EXILED plugins sitting in the LabAPI folder are picked up too

A LabAPI plugin dropped into the EXILED folder (or the reverse) normally fails to load because its framework is missing. This plugin scans both folders on startup, classifies every DLL by its assembly references, and hot-loads the misplaced ones into the correct host whenever possible.

Builds

File Place into
0CrossFrameworkLoader.dll %APPDATA%\SCP Secret Laboratory\LabAPI\plugins\global\
0CrossFrameworkLoader.Exiled.dll %APPDATA%\EXILED\Plugins\

One is enough. Installing both is harmless: the scan is read-only and nothing is deleted.

How a DLL is classified

  • References LabApi → LabAPI-style
  • References Exiled.API / Exiled.Events → EXILED-style
  • Frameworks and common libraries (LabApi, Exiled.*, 0Harmony, Newtonsoft.Json, …) → skipped

Behaviour

  1. Correct folder — reported, nothing happens
  2. Wrong folder, target host present in this process — hot-loaded immediately
  3. Wrong folder, target host absent — reported with a suggestion to move it
  4. With copy_misplaced: true, the file is also copied into the correct folder (effective on next start)

Configuration

enabled: true            # master switch
hot_load: true           # hot-load immediately
copy_misplaced: false    # copy into the right folder (restart required)
report: true             # print the inventory
lab_api_plugin_dir: ""   # auto-detected when empty
exiled_plugin_dir: ""    # auto-detected when empty

A crossframework-report.txt file is written to the config folder on startup, listing every plugin, its style, and what was done with it.

Limits

  • The target framework must actually be present in the current process for hot-loading; a pure LabAPI server cannot execute EXILED plugin logic, and vice versa.
  • Hot-loading takes over at runtime, so a few plugins that depend on extra loader-side initialisation (commands, permissions, translations) may need a restart to be fully wired.
  • No file is ever moved or deleted; copy_misplaced only copies when the target does not exist.

Build

powershell -ExecutionPolicy Bypass -File build.ps1
powershell -ExecutionPolicy Bypass -File build.ps1 -Exiled

License

MIT — see LICENSE.

About

A boring, useless plugin. Really - it just runs wherever you put it: download the matching build, drop it in the right place, then install plugins however you like. EXILED plugins inside LabAPI, LabAPI plugins inside EXILED - it loads them for you.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages