Z-Bridge

Trusted Free Z-Bridge 1.1.1

This resource is free
en-z-bridge.jpg


Z-Bridge — server side of the ZMenu client mod​

Demo
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

Z-Bridge only works together with the ZMenu client mod (CurseForge project 1664975: https://www.curseforge.com/ark-survival-ascended/mods/zmenu). On its own it does nothing.

ZMenu is an in-game menu made for players who cannot comfortably type chat commands — console players first. A click in the menu composes the command (/zp health 25, /zdc 0 79, /info...). But a client mod cannot send chat to the server; the only channel that goes through is the game's NetExec call. Z-Bridge listens on that channel and hands the text to the server exactly as if the player had typed it: same parsing, same checks, same answers. A click is worth a typed line, nothing more.

New: ZMenu now speaks 4 languages (French, English, Spanish, German), chosen by each player with flags in the menu.


Upgrading from 1.0.x — read this first
  • Back up your current config.json before you update, and stop the server to update. Never reload this plugin while the server runs: it hooks the game's own calls, so an update waits for a restart.
  • config.json now holds the settings only. The one text players can see from this plugin, the "(no answer)" line of the menu, is in the lang folder (en.json, fr.json, de.json, es.json) and your own change goes in lang\custom.json (never shipped, never overwritten).
  • If you had changed Reply.NoAnswerText in your old config.json, it is no longer read. Copy your text into lang\custom.json as EN.NoAnswerText (format shown under "Configuration and texts"), and under the other languages you use, or players will see the shipped "(no answer)". With Z-ARK, this is done for you at install.
  • The plugin no longer writes to config.json.
  • One new setting, General.Language (shipped: EN): the language of the menu text when the player has not picked a flag. If it is missing from your config.json, the plugin uses EN, so you do not have to add it.
  • Nothing changes for ZMenu: the channel names, the whitelist, the answers inside the menu, the menu buff and the function that gives our other plugins the player's menu language all work as before.
  • config.json and the lang folder are now read again by themselves about 10 seconds after a change; ZBridge.Reload does it at once. The only change that still needs a restart: Reply.Enabled going from false to true.
  • Step by step, with and without Z-ARK: see "Updates" at the end.


Install
1. Add the ZMenu mod (1664975) to your server's mod list; players get it like any other mod.
2. Drop the Z-Bridge folder into ShooterGame/Binaries/Win64/ArkApi/Plugins/.
3. Install the plugins whose tabs you want — each tab shows only if its plugin is loaded on THIS server:
  • Z-Points tab — Z-Points
  • Z-Colour tab — Z-Colour (and only for players allowed to use it)
  • Z-Info tab — Z-Info
  • Z-Link tab — Z-Chat (optional, needed only for this tab)

Requires AsaApi 2.11 or newer. We recommend HooksDoNotThrow: true in AsaApi's own config.json, as for any plugin that places hooks.

Plugins with a ZMenu tab
Each of these free plugins adds its own tab to the menu as soon as it is installed next to Z-Bridge:
  • Z-Points: the Z-Points tab, spend level-up points (the player's or a dino's) without typing.
  • Z-Colour: the Z-Colour tab, recolour your tamed dinos (only for players allowed to use Z-Colour).
  • Z-Info: the Z-Info tab, the server's rates and breeding settings.
  • Z-Chat: the Z-Link tab, link a Discord account (needs a Discord bridge, such as the one in Z-ARK). A plugin that is not installed simply has no tab. Only our plugins have tabs in the menu.

Answers inside the menu
With Reply.Enabled, the chat answers of the server (for example the result of /zp or a /zlink code) are mirrored back into the menu for WindowSeconds after a click; they still appear in the chat as usual. When a command gave no answer at all, the menu shows the line "(no answer)" (see "Configuration and texts" to change it). The Z-Link tab also shows the Discord name a player is linked to. Z-Bridge reads it from liens-discord.json in Z-Chat's exchange folder (<ExchangeFolder>/<Cluster>/), a file written by an external Discord bridge such as Z-ARK. Without Z-Chat, or without that file, the tab simply shows nothing.


RCON commands
  • ZBridge.Status — state, channel name, and three counters: received / passed on / refused; also the player languages known, the answer path, the menu buff, and at the end the texts loaded, for example texts: lang EN FR DE ES, plus , custom FR:1 when custom.json holds texts (language:number). The first thing to check when a button "does nothing".
  • ZBridge.Caps <eosid> — what the menu would be told for that online player (which tabs, linked Discord name).
  • ZBridge.Reload — re-reads config.json and the lang folder without restarting the server. It answers "settings reloaded (ACTIVE)" or "settings reloaded (DISABLED)", or "reload FAILED, previous settings kept" if config.json cannot be read.


Configure (config.json)
config.json holds the settings only; it never contains a sentence read by players. Every setting is explained in config.commented.json, which comes with the plugin: read it before you change anything.
  • General.Enabled — false turns the bridge off without unloading it. Applies at once.
  • General.Language — language of the menu text when the player has not picked a flag: EN, FR, DE or ES, or a language you add yourself (see below). Shipped: EN.
  • General.CommandName — the channel name used by the mod (ZMenu). It is the protocol: keep it.
  • General.MaxLength — longest text accepted (200).
  • General.LogRefused — log what is refused, with who sent it.
  • General.AllowedCommands — the whitelist.
  • Reply — Enabled, Name (protocol name, keep ZMenuReply), WindowSeconds. Changing Enabled from false to true needs a server restart (the hooks of the answer path are placed at start); from true to false applies at once.
  • MenuBuff — grants the menu buff of the mod to every living player who lacks it, every CheckEverySeconds (shipped: 10, minimum 2). Does nothing if the mod is not in the server's mod list.
  • Menu.LinksFile — full path of the file that lists the accounts linked to Discord. Empty (shipped) = the file is found through the configuration of Z-Chat.
  • Diagnostics.LogForActor — debugging only, off.

Security: a whitelist
This channel is NOT trusted: any player can forge the call without having the mod — it is client traffic, like chat. So:
  • only a text starting with / AND whose first word is in General.AllowedCommands is passed on; anything else is refused (otherwise the channel could be used to spam global chat);
  • every command still checks its own rights, exactly as when typed. The whitelist only filters: adding a command to AllowedCommands creates no button in the menu.


Configuration and texts
What lives where
  • config.json — the settings. You edit it. The plugin never writes to it.
  • config.commented.json — the same settings with an explanation for each one. Shipped with the plugin, replaced at each update. Read it, do not edit it, do not rename it to config.json (it contains comments).
  • lang\en.json, fr.json, de.json, es.json — the text players read, shipped with the plugin and replaced at each update: do not edit them.
  • lang\custom.json — YOUR texts. Never shipped, never overwritten by an update.

The only text a player can see from this plugin is the line the menu shows when a command gave no answer: (no answer), key NoAnswerText. The answers of the commands themselves come from the plugins that own them. RCON replies and log lines stay in English: they are tool messages, not player texts.

Change the text. Create lang\custom.json. Example:
JSON:
{
  "EN": {
    "NoAnswerText": "nothing to say"
  },
  "FR": {
    "NoAnswerText": "pas de réponse"
  }
}
A key you leave out keeps the shipped text.

Which language does a player get? The text is sent in the language the player chose with the flags of the ZMenu menu, when it is known and the plugin has a text for it. Otherwise it uses General.Language. For a sentence, the plugin looks in this order: custom.json in the language, the shipped file of that language, custom.json in English, en.json, then the English text built into the plugin. A player never gets an empty message.

Add a language (for example Dutch): create lang\nl.json (a code of 2 or 3 letters) with the same key as en.json, or write an "NL" block in custom.json. Players who pick that language from the menu get it; write the code in General.Language if you want it as the server default.

A file that cannot be read (invalid JSON) is ignored with a warning in the log; nothing is written.

Changes while the server runs. config.json and the files in lang are read again by themselves about 10 seconds after they change (or at once with ZBridge.Reload). The only exception is Reply.Enabled going from false to true, which needs a restart.


Compatibility
ARK: Survival Ascended dedicated servers on Windows. Requires AsaApi 2.11 or newer.


External connections and data
  • No network connection of its own. Z-Bridge only uses the game's own client-server connection: the ZMenu mod sends each menu click as a NetExec call named ZMenu, and the answers shown in the menu go back the same way (ZMenuReply). Nothing is sent anywhere else: no web request, no telemetry, no licence check, no update check.
  • Whitelist. That channel is client traffic and is not trusted: only a text starting with / whose first word is in General.AllowedCommands is passed on, exactly as if the player had typed it, and every command then checks its own rights. Anything else is refused, and logged in the server log with the sender's EOS id when LogRefused is on (default).
  • Files written, in its own folder: langues-joueurs.json, the menu language each player picked (EOS id and FR, EN, ES or DE). It never writes config.json or the files in lang.
  • Files read: its own config.json and the files in lang (text); for the Z-Link tab only, Z-Chat's config.json and liens-discord.json in Z-Chat's exchange folder (EOS id and Discord name, written by an external Discord bridge such as Z-ARK). Read-only.
  • When Z-Colour or Z-Points is loaded, Z-Bridge calls a function each of them exports (may this player use Z-Colour; has this player turned Z-Points off) to decide which tabs to show. It exports one function itself, which gives our other plugins the player's menu language. All inside the server process.
  • No registry access, no external program started, no other data collected.


Dependencies and limitations
  • Requires the ZMenu client mod (CurseForge project 1664975) in the server's mod list: without it, Z-Bridge does nothing.
  • Tabs exist only for our plugins installed on the same server: Z-Points, Z-Colour, Z-Info and Z-Chat (the Z-Link tab, which also needs an external Discord bridge).
  • Game hooks: the two server functions that receive NetExec calls, and the functions that send chat messages and on-screen notifications to a player (to mirror the answers into the menu for a few seconds). Because of these hooks, never reload this plugin while the server runs: update it with the server stopped.
  • MenuBuff grants the mod's menu buff to every living player who lacks it, every CheckEverySeconds.


Updates
Z-ARK (server manager, https://z-ark.fr/en/) checks for new versions of this plugin and installs them from its dashboard. With Z-ARK 0.285.0 or newer, install the update from Z-ARK (server stopped): it keeps your settings, moves the text you had changed in the old config.json into lang\custom.json, removes the old keys that are no longer used after a safety copy, and lists everything in the update report.

Without Z-ARK: click Watch at the top of this page to be notified of every new version; what changed is listed in the Updates tab. Coming from 1.0.x, step by step:
1. Back up the Z-Bridge plugin folder.
2. Stop the server.
3. Replace the plugin's .dll, PluginInfo.json and config.commented.json, and the lang folder except lang\custom.json (if you have one).
4. Keep your config.json. The plugin starts with it and reads the settings. A key it no longer knows (such as Reply.NoAnswerText) stays in the file without effect and can be deleted.
5. If you had changed Reply.NoAnswerText, copy your text into lang\custom.json as EN.NoAnswerText (format above).
6. Compare your config.json with the one shipped, to see if a setting is new. (From 1.0.x, the only new one is General.Language, and the plugin uses EN if it is missing.)
7. Start the server and run ZBridge.Status: it should end with texts: lang EN FR DE ES (and custom with your languages if you wrote a text).


Support
A question, a bug, an idea? Post it in the Discussion tab of this page, or use the form at https://z-ark.fr/en/plugin-support/ (no account needed). Please give the plugin version, your AsaApi version and what you saw. Z-ARK users can also write to us from Settings > Support in Z-ARK.


Built with AI, knowingly
This plugin was written with an artificial intelligence, and we would rather say it plainly. It is not code thrown together at random: behind it is someone from the trade (software development, server operations, community management) who decides every feature, reviews it and puts it to the test on a real cluster, with real players, before it reaches you. The same goes for the ZMenu client mod. Bugs reported in the Discussion tab get fixed.
Author
Zarkk
Downloads
236
Views
1,491
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Zarkk

  • Z-ARK
    Free + paid Z-ARK
    Free server manager for ARK: Survival Ascended: start, update, back up, restart, watch your cluster.
  • Z-Colour
    Free Z-Colour
    Players recolour their tamed dinos with one chat command. Open by default, console friendly.
  • Z-Messages
    Free Z-Messages
    Welcome message, timed announcements and one style sheet for our plugins' messages.
  • Z-Info
    Free Z-Info
    /info in game: the server's real rates, breeding settings and our commands available on this map.
  • Z-Points
    Free Z-Points
    Spend level-up points in bulk: accelerating clicks and /zp. Server-side, console friendly.

Latest updates

  1. 1.1.1

    FIXED Package refreshed: the previous file was out of date and now declares AsaApi 2.11 as minimum.
  2. 1.1.0

    IMPORTANT, read before you install: the architecture of this plugin has been reworked and its...
  3. 1.0.1 - ARK 97 / Unreal Engine 5.8

    Compatible with ARK 97 (Unreal Engine 5.8). Fixes a server crash on 5.8 when a player used the...
Back
Top