Z-Chat — one global chat for all the maps of a cluster
Demo
Players on TheIsland talk with players on Ragnarok as if they were on the same map. Z-Chat needs no database and opens no network connection of its own: every server writes its own small exchange file in a shared folder and reads the files of the other maps every second, from where it stopped. Nothing else to install besides Z-Chat and Z-Messages.
Only global chat travels. Tribe chat and local chat stay where they were said, and commands (
/zp, /info...) never leave the server.Version 1.2.0: NEW: automatic map name. CHANGED: new configuration architecture, shared by all our plugins (
config.json holds the settings only; the texts live in the lang folder). Back up your config.json before updating from 1.0.x.Version 1.2.1: the short lines of the plugin (the /zlink help and warning) follow each player's
/msg choice; the link code always goes to the chat; safer unloading.Upgrading from 1.0.x — read this first
From 1.2.0 to 1.2.1: nothing to change. Your
config.json and your lang\custom.json work as they are (no setting and no text changed). Stop the server, replace the plugin's .dll, PluginInfo.json and config.commented.json, start the server again, then run ZChat.Status to check the version. With Z-ARK, just install the update from Z-ARK.From 1.0.x — read this before you update
- Back up your current
config.jsonbefore you update. config.jsonnow holds the settings only. The texts players read are in thelangfolder (en.json,fr.json,de.json,es.json) and your own changes go inlang\custom.json(never shipped, never overwritten).- Texts you customised in the
Textsblock of your oldconfig.jsonare no longer read by the plugin. Copy them intolang\custom.json(format shown under "Configuration and texts"), under their language, or players will see the shipped texts. The plugin still starts with the old file: your settings are read, the old texts are ignored, and the old keys stay in the file without any effect (you can delete them). With Z-ARK 0.285.0 or newer, the texts are moved for you at install and the old keys are removed after a safety copy. General.Mapempty orauto= each server takes its map name from its launch line; a written name works as before.- New setting
General.DiscordChannel: the Discord channel named in the /zlink messages (default#chat-in-game). A setting missing from your oldconfig.jsontakes its default value. - Without Z-ARK: back up the plugin folder, stop the server, replace the
.dll,PluginInfo.jsonandconfig.commented.json, replace thelangfolder exceptlang\custom.json, keep yourconfig.json, copy your changed texts intolang\custom.json, compare yourconfig.jsonwith the shipped one to see the new settings, start the server, then runZChat.Status.
Install
1. Drop the
Z-Chat folder into ShooterGame/Binaries/Win64/ArkApi/Plugins/ on every server of the cluster.2. Install Z-Messages as well: Z-Chat displays its lines through it (declared dependency). Use Z-Messages 1.2.0 or newer so that players can choose with
/msg where the short lines show.3. In each server's
config.json:General.Cluster— the SAME name on every server that shares the chat.General.ExchangeFolder— the SAME folder on every server, reachable by all of them (servers on one machine, or a shared folder).General.Map— leave it empty or atauto(the default): each server takes its map name from its launch line (TheIsland_WP→TheIsland), even when several servers share oneconfig.json. Two running servers on the same map: the second one gets its port added (TheIsland_7779). Or write a name UNIQUE to this server: a written name works as before (only difference: a name ending in_digitsmay take the colour of the name without that suffix if that one is inMapColors).
Requires AsaApi 2.11 or newer. Settings are re-read every second: no restart needed after a change.
What a chat line looks like
Fully configurable with
General.Format and these fields: {map}, {pseudo} (player name), {plateforme} (platform icon), {tribu} (tribe), {admin} (icon for admins), {heure} (time), {message}, and {couleurmap} (the colour of the map the message comes from, see MapColors). Colours use the Z-Messages formatting tags, e.g. {c:255,255,255}text{/}.General.Label— what the game shows at the head of the line (plain text only). Default: the map name.General.TakeOverLocalChat—trueso that messages from your own map look like those from the other maps (one style in the chat window).General.AdminIcon— what{admin}shows for an admin.Platforms— what{plateforme}shows for each platform number given by the game (1 Steam, 2 Xbox / PC Game Pass, 3 PlayStation).MapColors— an[R, G, B]colour per map name;General.DefaultMapColorfor the others.General.MaxSizeKB— past this size an exchange file is emptied. Messages are short-lived.
Player commands
/zlink — link a Discord account (optional)
/zlink gives the player a 4-digit code valid 10 minutes, to paste in your Discord channel (General.DiscordChannel). Z-Chat itself does not connect to Discord: it drops the request in <ExchangeFolder>/<Cluster>/liaisons/ and an external Discord bridge picks it up (Z-ARK provides one). Without such a bridge, simply ignore this command. A code typed by mistake in game chat is kept private: it is neither shown nor relayed, and the player gets a short warning./zlink help— explains the command before giving a code.- The link code always goes to the chat, so the player can read it again and copy it into Discord. The help lines and the warning follow the player's
/msgchoice (see "Where short lines show" below). - If Z-Chat is loaded, Z-Messages 1.2.2 adds an invitation to use
/zlinkto the welcome message of players who have not linked their account yet.
Works with the ZMenu mod (optional)
New: ZMenu now speaks 4 languages (French, English, Spanish, German), chosen by each player with flags in the menu.
ZMenu is a free client mod by the same author: https://www.curseforge.com/ark-survival-ascended/mods/zmenu With ZMenu on your server, a Z-Link tab: players link their Discord account without typing a command (this needs a Discord bridge, see /zlink below). Handy for console players.
- ZMenu talks to the server through Z-Bridge, a free plugin made for it: it carries the menu clicks to the plugins and brings their answers back into the menu. Install Z-Bridge too, or the menu stays empty.
- Each of these plugins adds its own tab to ZMenu: Z-Points the Z-Points tab, Z-Colour the Z-Colour tab, Z-Info the Z-Info tab, Z-Chat the Z-Link tab. A tab only shows when its plugin is installed.
- Without ZMenu, everything still works through the chat commands below.
RCON commands
ZChat.Reload— re-readsconfig.jsonand the files inlang. The answer issettings reloaded (ACTIVE)or(DISABLED), orreload FAILED, previous settings keptwhenconfig.jsoncannot be read.ZChat.Status— version, state (active or disabled), map name (with "(auto)" when the name is automatic), and the languages loaded: it ends with| texts: lang EN FR DE ESand, ifcustom.jsonholds texts,, custom FR:2(language and number of texts).
Configure (config.json)
General.Enabled—falseputs the plugin to sleep without unloading it.General.Language— EN, FR, DE, ES, or a language you add yourself (see below). It is the language of the /zlink messages when the player has no language of their own.General.DiscordChannel— the Discord channel named in the /zlink messages ({salon}). Default:#chat-in-game.config.jsonholds the settings only. Every key is explained inconfig.commented.json, which comes with the plugin: read it before you change anything.
Configuration and texts
Settings.
config.json holds the settings only (switches, folder, map name, colours, icons). It never contains a sentence that players read. config.commented.json explains every setting; it is replaced at each update, so do not edit it, and do not rename it to config.json (it contains comments). The plugin never writes config.json or the files in lang.Texts. The texts that players read (the /zlink messages) are in the
lang folder, one file per language: en.json, fr.json, de.json, es.json. These files are replaced at each update: do not edit them. The four keys are LinkCode (the code message), LinkHelp1 and LinkHelp2 (the help), LinkCodeInGame (the warning when a code is typed in the game chat).To change a text, or to add a language, use
lang\custom.json. It is never shipped and never overwritten by an update. Format: {"EN": {"Key": "text"}, "FR": {"Key": "texte"}}. Example, to change the /zlink code message in English:
JSON:
{
"EN": {
"LinkCode": "Paste this code in the {salon} channel: {code} (valid 10 minutes)"
}
}
{code} is the code and {salon} the channel name. Search order for a text: your text in the player's language, the shipped file of that language, your English text, the shipped English file, then the English text built into the plugin. A file that cannot be read (invalid JSON) is ignored, with a warning in the server log, and nothing is written.To add a language (for example Dutch), create
lang\nl.json (a code of 2 or 3 letters) with the same four keys as en.json, or add an "NL" block in custom.json; write its code in General.Language if you want it as the default.Language of each player. A text for one player is sent in that player's language: the flag they chose in the ZMenu mod, passed on by Z-Bridge. When the language is unknown (no ZMenu or no Z-Bridge), the language of the server is used (
General.Language).Where short lines show. Z-Chat displays its lines through Z-Messages. Each player chooses with
/msg both (chat and top of the screen, the default), /msg chat or /msg top; /msg alone shows the current choice. The short lines of Z-Chat (the /zlink help and the warning about a code typed in the chat) follow that choice. A line longer than Style.TopOfScreenMaxLength in the Z-Messages settings (80 characters by default) goes to the chat only; the shipped English lines are all longer than that, so by default they show in the chat. The link code itself always goes to the chat. These lines take the sender name, size and duration of the info style of Z-Messages, in yellow. The chat lines relayed between maps are not affected: they always show in the chat. With Z-Messages older than 1.2.0, short lines show as "both".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-Chat never connects to Discord or to any web service. The servers share the chat through files in one folder that you choose (
General.ExchangeFolder): a local folder when all the servers run on one machine, or a network share (Windows file sharing) between machines. - Files written in the exchange folder (
<ExchangeFolder>/<Cluster>/):<Map>.txt, the recent global chat lines of this map (map, player name, platform, tribe, admin mark, message), emptied pastMaxSizeKB;registre/<Map>.txt, the players who spoke on this map (EOS id, name, platform, tribe, admin mark, time), one line added only when one of these changes, and never trimmed by the plugin;liaisons/attente.txt, the pending/zlinkrequests (code, EOS id, name, expiry after 10 minutes), only if players use/zlink;presence/<Map>.lock, held open by the running server to reserve its name (released by Windows when the server stops). - Files read: the files of the other maps in the same folder, every second; its own
config.json; and the files inlang(texts).config.jsonand the files inlangare read, never written. - When Z-Messages or Z-Bridge is loaded, Z-Chat calls functions they export, inside the server process.
- No game hook, no registry access, no external program started, no other data collected.
Files written in the exchange folder
<Map>.txt— the recent messages of each map (trimmed atMaxSizeKB).registre/<Map>.txt— players who spoke on that map (EOS id, name, platform, tribe), used to keep platform icons right across maps.liaisons/attente.txt— pending/zlinkrequests (only if players use it).presence/<Map>.lock— held open by the running server to reserve its name (released by Windows when the server stops).
Dependencies and limitations
- Requires Z-Messages: Z-Chat displays its lines through it (1.2.0 or newer recommended, for the
/msgchoice). - Every server that shares the chat must reach the same folder. Across machines, the network share and its access rights are yours to set up.
- Only global chat travels; tribe chat, local chat and commands stay on their server. Messages arrive within about a second.
/zlinkneeds an external Discord bridge (Z-ARK provides one); without it, ignore the command.
Updates
Z-ARK (server manager, https://z-ark.fr/en/) checks for new versions of this plugin and installs them from its dashboard.
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. To update, stop the server, replace the plugin's .dll, PluginInfo.json and config.commented.json, replace the
lang folder except lang\custom.json, keep your config.json, then start the server again.Coming from version 1.0.x: read the section Upgrading — read this first above, before you update.
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.