Z-Bridge — server side of the ZMenu client mod
Demo
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.jsonbefore 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.jsonnow holds the settings only. The one text players can see from this plugin, the "(no answer)" line of the menu, is in thelangfolder (en.json,fr.json,de.json,es.json) and your own change goes inlang\custom.json(never shipped, never overwritten).- If you had changed
Reply.NoAnswerTextin your oldconfig.json, it is no longer read. Copy your text intolang\custom.jsonasEN.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 yourconfig.json, the plugin usesEN, 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.jsonand thelangfolder are now read again by themselves about 10 seconds after a change;ZBridge.Reloaddoes it at once. The only change that still needs a restart:Reply.Enabledgoing fromfalsetotrue.- 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 exampletexts: lang EN FR DE ES, plus, custom FR:1whencustom.jsonholds 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-readsconfig.jsonand thelangfolder without restarting the server. It answers "settings reloaded (ACTIVE)" or "settings reloaded (DISABLED)", or "reload FAILED, previous settings kept" ifconfig.jsoncannot 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—falseturns 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, keepZMenuReply),WindowSeconds. ChangingEnabledfromfalsetotrueneeds a server restart (the hooks of the answer path are placed at start); fromtruetofalseapplies at once.MenuBuff— grants the menu buff of the mod to every living player who lacks it, everyCheckEverySeconds(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 inGeneral.AllowedCommandsis 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
AllowedCommandscreates 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 toconfig.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"
}
}
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
NetExeccall namedZMenu, 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 inGeneral.AllowedCommandsis 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 whenLogRefusedis 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 writesconfig.jsonor the files inlang. - Files read: its own
config.jsonand the files inlang(text); for the Z-Link tab only, Z-Chat'sconfig.jsonandliens-discord.jsonin 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
NetExeccalls, 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. MenuBuffgrants the mod's menu buff to every living player who lacks it, everyCheckEverySeconds.
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.