Skip to content
NP Editor Docs

Distribution and versioning

You share a plugin as a single folder. The recipient puts that folder in the plugin folder and enables it in the Plugin Manager. This page covers the files to put in the folder, how to choose the version number and the sdk range, the compatibility promise the SDK keeps, and security.

  1. Increment version in plugin.json (see “Your version number” below).
  2. Build with dotnet build -c Release.
  3. From the build output folder, pick only the files in the “Files to include” table below and put them in a new folder (for example road_tools).
  4. Zip that whole folder and send it to Noplatea (support@noplatea.com) to get a signature. After review, you get the folder back with plugin.sig.json added (see “Getting a signature” below).
  5. Zip the folder you got back as it is. From now on, if you change even one file in the folder, you must get it signed again.
  6. Give recipients the following steps.
    1. Unzip and put the road_tools folder in the plugin folder (Tools > Open plugin folder).
    2. Click Tools > Plugin Manager…. The new plugin appears as “Approval needed”.
    3. If you trust it, check Enable on that row. The first time, click Trusted — load in the External plugins confirmation window.
  • Check it yourself the way a new user would: unzip into an empty plugin folder, then Rescan → check Enable and confirm that it enables, before you publish. If the installer shows “Signature problem”, a file was changed or added during zipping or unzipping.
  • Collect all the files to include before you get the signature. The signature binds every file in the folder at that time, so even if you add a .pdb or a data file later, it becomes “a file that is not in the signature”.
  • If you use NuGet packages, EnableDynamicLoading copies the dependency dlls into the build output. Include those dlls and <name>.deps.json.
  • Keep the target at net8.0. The .NET runtime inside the editor is 8, so it cannot load a dll built for a newer target.
  • Put large data of your own (presets · tables) in a subfolder such as data\ and locate it with host.PluginDir. The paths stay correct even if the whole plugin folder moves.
  • Keep user settings in host.Settings. Even if someone installs over the plugin folder, the settings stay in %APPDATA%\NPEditor\plugin_settings\.
FileInclude?Description
plugin.jsonYesDirectly in the folder
Your dllYesThe dll path in plugin.json
Other dlls you use (NuGet packages and so on)YesNext to your dll. Also include the .deps.json from the build output.
.pdbOptionalLine numbers appear in the exception stacks you log yourself (host.Log(e.ToString())).
plugin.sig.jsonYes (installer)The signature file that Noplatea adds and returns. Leave it next to plugin.json.
NP.Editor.Sdk.dllNoThe editor’s copy is used. Exclude it in the csproj with Private=false.
Large dataOptionalKeep it in the folder and locate it with host.PluginDir.
road_tools\
├─ plugin.json
├─ plugin.sig.json
├─ RoadTools.dll
├─ RoadTools.deps.json
├─ RoadTools.pdb
└─ data\
└─ presets.json

The editor also reads plugins placed in the plugins\ folder under the editor install folder. If the user plugin folder has the same id, that one comes first.

The 0.11.0 installer loads only plugins signed by Noplatea. A plugin with no signature, or whose files changed after signing, shows “Signature problem” and the reason in the Plugin Manager, its Enable checkbox cannot be checked, and it is not loaded. No settings file, environment variable, or command line can turn this check off. The only thing that loads without a signature is the editor team’s development build (NP_DEV).

  1. Build the plugin and make a folder with all the files to include (plugin.json + the dll + dependency dlls …).
  2. Send that whole folder (zip) to support@noplatea.com.
  3. After review, you get back the folder with plugin.sig.json added.
  4. Put the folder you got in %APPDATA%\NPEditor\plugins\<name>\ and click Rescan in the Plugin Manager.
RuleContents
What the signature bindsplugin.sig.json holds Noplatea’s Ed25519 signature and the sha256 of every file in the folder (including plugin.json and subfolders).
Change it and sign againWhether you rebuild the dll, edit plugin.json, or add or remove a file, you get it signed again. Raise version at that time too.
id · versionThe values written in the signature must be the same as id and version in plugin.json.
No linksIf the folder contains a symbolic link or junction, it can be neither signed nor checked.
Checked again when loadingThe moment you turn it on, the folder is checked again, and when the main dll, dependency dlls, and native dlls are loaded, the hash of those bytes is also checked against the signature list. A file swapped after the check is not loaded.
Files it reads by itselfIt cannot protect against a plugin that, after loading, reads and runs other files in the folder (scripts · other dlls) directly. A plugin to be signed should avoid such a structure.

These are the refusal reasons shown on the detail line of the Plugin Manager.

On-screen text (summary)Meaning
“Not loaded: this plugin has no Noplatea signature …”There is no plugin.sig.json.
“Not loaded: a file changed after signing: <file>”That file changed after it was signed.
“Not loaded: the folder has a file that is not in the signature …” · “Not loaded: a file listed in the signature is missing …”A file was added or removed after signing.
“Not loaded: plugin.json differs from the signed id · version …”The id or version in plugin.json differs from the signature.
“Not loaded: the plugin folder contains a link (symlink/junction) …”The folder contains a link.
“Not loaded: the signature file (plugin.sig.json) is invalid …” · “Not loaded: unknown signing key (…) …” · “Not loaded: the signature does not match …”The signature file is broken, or it is not a Noplatea signature.
“Not loaded: this uses a newer signature format than this editor knows …”The editor is an older version. Update the editor.
“Not loaded: the signature file or plugin folder is too large” · “Not loaded: could not read a file to check the signature …”The signature file or folder is too large, or a file could not be read.

For fixes by symptom, see Troubleshooting.

Increment version in plugin.json following semver (major.minor.patch). It appears in the Version column of the Plugin Manager.

What changedPart to incrementExample
Bug fixes onlypatch1.2.0 → 1.2.1
Added features (save format and commands unchanged)minor1.2.1 → 1.3.0
Changed command names · world logic types · settings keys · save formatmajor1.3.0 → 2.0.0
  • World logic Type and field Name values are saved in the map’s scene.json. If you change them, rules in old maps become “Unknown type”.
  • Do not change the id. Settings files, shortcuts the user changed and approval records are saved by id.

Set sdk to the minimum version of the features you actually use.

What you usesdkEditors it runs on
SDK 1.0 features only^1.0All of SDK 1.0 – 1.x
Settings · Draw · AddShortcut^1.1SDK 1.1 – 1.x
AddSceneEvent^1.2SDK 1.2 – 1.x (editor 0.9.0 or later)
Scene · View · ActorList^1.3SDK 1.3 – 1.x (editor 0.9.1 or later)
Account^1.4SDK 1.4 – 1.x (editor 0.9.12 or later)
AddShowFlag · AddStatusItem · AddWorldReplaceGuard^1.5SDK 1.5 – 1.x (editor 0.9.18 or later, including 0.10.3, 0.11.0, and 0.11.1)
  • If you set it too high, users of older editors cannot use the plugin.
  • If you set it too low, loading on an older editor fails because of missing members (“Version mismatch”).
  • Do not use ranges without an upper bound (>=1.0). The plugin could load in a broken state on the next major.
PromiseDetails
Within the same majorTypes and members are only added. They are never renamed or removed.
New fieldsAdded as trailing fields with default values. Old code compiles unchanged.
Breaking changesThe major is incremented (2.0). ^1.x plugins stop safely with “Version mismatch” and the editor keeps running.
BehaviorThe meaning of registration points does not change within the same major.

Per-version changes are in the SDK changelog.

A plugin is code that runs on this computer with the same permissions as the editor. The 0.11.0 installer loads only plugins signed by Noplatea (“Getting a signature” above). A signature is a confirmation that “this is exactly the file that was reviewed”, and it does not limit what the signed code does.

PreventedNot prevented
An exception in plugin code → only that plugin is disabled (isolation)Infinite loops · stack overflows · process exit
Cleanup of registrations, drawings and the camera for a disabled pluginReading · writing · deleting files
A new plugin folder that has not been allowed is not loadedNetwork access
A plugin with no signature, or changed after signing, is not loaded (installer)Other files that a signed plugin reads by itself after loading
  • A new plugin folder loads only after the user checks Enable in the Plugin Manager. Even if another program drops a dll into the plugin folder, it does not run by itself.
  • Plugin code loads only after sign-in and the license check are done.
  • The tools called by the AI inside the editor (AI Studio) cannot write to the plugin folders, the install folder or %APPDATA%\NPEditor, and cannot create executable files (.dll · .exe and so on). There is no AI tool that enables plugins.
  • Install only plugins you built yourself or got from a source you trust. When you share a plugin, also share the source or where it came from.
  • Do not put secret keys or tokens in a plugin. A dll is easy to decompile.
  • Do not use reflection by name on editor internals (non-public types · members). In the installed build, non-public names are changed (obfuscated), so such code breaks only in the installed build. Request missing features as SDK registration points.
  • Incremented version in plugin.json.
  • sdk is the minimum version of the features used.
  • The folder does not contain NP.Editor.Sdk.dll.
  • I collected all the files to include, then got the signature, and I have not changed the folder since.
  • It enables with Rescan → checking Enable when placed in an empty plugin folder.
  • Menus and panels are not duplicated or left behind after enable → disable → enable.

The detailed list is under “Pre-release checklist” in Troubleshooting.