Z-Messages

Trusted Free Z-Messages 1.2.3

This resource is free
en-z-messages.jpg


Z-Messages — welcome, announcements and our plugins' messages, styled your way​

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

A welcome message, recurring announcements, and one style sheet that decides how our plugins' messages look: colour, sender name, chat or top of the screen. No more "(SERVER):" glued in front of their lines. Messages that the game or other tools send on their own (Z-ARK's restart warnings, for example) keep their usual look.

Each player also chooses, with the chat command /msg, where the short messages of the plugins show for them: in the chat, at the top of the screen, or both. The welcome message and the announcements follow that choice, and reach each player in their own language.


Upgrading from 1.0.1 — read this first
Version 1.2.2 changes how the plugin is configured. Take five minutes to read this.
  • Back up your current config.json before you update.
  • config.json now holds the settings only (switches, delays, colours, frequencies). The sentences that players read are in the lang folder (en.json, fr.json, de.json, es.json), and your own sentences go in lang\custom.json (never shipped, never overwritten by an update).
  • The plugin no longer reads the texts that your old config.json holds: Welcome.Text, Welcome.TextIfNotLinked, the Texts block, and the sentences written inside AutoMessages.Messages. If you leave them as they are, the plugin still starts and reads your settings, but players see the shipped welcome text, and your announcements are not sent (see below). The old keys stay in the file without any effect, and you can delete them.
  • Announcements: AutoMessages.Messages is now a list of text keys. An element is either a key name ("AutoMessage1") or an object with a Key ({ "Key": "AutoMessage1", "Color": [255,60,40] }). An element that still holds its sentence directly (an old object with "Text" and no Key) is skipped. An old element that is a plain sentence is read as a key name that has no text, so it is skipped too. If nothing valid is left, nothing is sent. Z-Messages writes one warning in the server log per load (AutoMessages: skipped N element(s) without a Key...) so you can see it.
  • With Z-ARK 0.285.0 or newer, nothing to do by hand: install the update from Z-ARK. It keeps your settings, moves your custom welcome and announcement texts into lang\custom.json (nothing is lost), removes the old keys after a safety copy, and lists everything in the update report.
  • Without Z-ARK, follow the steps in "Without Z-ARK, step by step" below.
  • New settings that are missing from your old config.json simply take their default value: PlayerDisplay.Default = both, Style.TopOfScreenMaxLength = 80. The old Style.TopOfScreenCharsPerLine is no longer read (use TopOfScreenMaxLength). One thing to copy by hand: the style named chat (used by Z-Chat). If it is missing from your Styles block, those messages use your general Style instead. Copy it from the shipped config.json.

Without Z-ARK, step by step
1. Make a copy of the whole Z-Messages plugin folder.
2. Stop the server.
3. Replace the .dll, PluginInfo.json and config.commented.json, and replace the lang folder except lang\custom.json (if you already have one, keep it).
4. Keep your config.json.
5. Move your texts. Take each sentence you had written in the old config.json and put it in lang\custom.json, under its language, with a key name. Then, in AutoMessages.Messages, name the keys.
6. Compare your config.json with the one shipped in the new package to see the new settings.
7. Start the server, then run ZMessages.Status: it should end with | texts: lang EN FR DE ES and, if custom.json holds texts, , custom EN:3 (language and number of texts).

Example. Your old config.json (1.0.1) had:
JSON:
"Welcome": {
  "Enabled": true,
  "DelaySeconds": 8,
  "MaxWaitSeconds": 600,
  "Text": "Welcome {player}! Our rules are on /info.",
  "TextIfNotLinked": "Type /zlink to link your Discord account."
},
"AutoMessages": {
  "Enabled": true,
  "IntervalMinutes": 10,
  "Messages": [
    "Join our Discord, the link is in /info.",
    { "Text": "Reboot at 4am", "Color": [255,60,40], "TopOfScreen": true }
  ]
}
The new config.json keeps only the settings, and names the keys:
JSON:
"Welcome": {
  "Enabled": true,
  "DelaySeconds": 8,
  "MaxWaitSeconds": 600,
  "LinkedAccounts": []
},
"AutoMessages": {
  "Enabled": true,
  "IntervalMinutes": 10,
  "Messages": [
    "AutoMessage1",
    { "Key": "AutoMessage2", "Color": [255,60,40], "TopOfScreen": true }
  ]
}
And the new lang\custom.json holds the sentences:
JSON:
{
  "EN": {
    "WelcomeText": "Welcome {player}! Our rules are on /info.",
    "WelcomeIfNotLinked": "Type /zlink to link your Discord account.",
    "AutoMessage1": "Join our Discord, the link is in /info.",
    "AutoMessage2": "Reboot at 4am"
  }
}
Careful with languages: the order of search for a player is your text in their language, then the shipped text in their language, then your English text. So if you write WelcomeText in EN only, a player whose language is French still gets the shipped French welcome. To change it for everybody, write it for each language ("FR": {...}, "DE": {...}, "ES": {...}). For a key that has no shipped text (AutoMessage1, AutoMessage2), a text written in one language only goes to all players in that language.


Install
Drop the Z-Messages folder into ShooterGame/Binaries/Win64/ArkApi/Plugins/. Requires AsaApi 2.11 or newer. Loads at server start. config.json and the lang folder are re-read every minute, or at once with ZMessages.Reload: no restart needed.

Features
  • Welcome — a message to each arriving player, after their character has loaded (DelaySeconds, MaxWaitSeconds). {player} becomes their name. Off by default: enable it only if no other plugin already greets players.
  • AutoMessages — announcements to everyone, one per round, in turn, every IntervalMinutes. Off by default. An announcement can target only some players: OnlyIfNotLinked (players missing from Welcome.LinkedAccounts) and OnlyIfBaseNotProtected (players whose tribe is not in the Decay.ExemptTeams list of the Z-Clean plugin, on the same server; without Z-Clean nobody counts as protected).
  • Each player's choice, /msg — every player chooses where short messages show: /msg both, /msg chat or /msg top. The welcome and the announcements follow it.
  • Each player's language — the welcome and the announcements go to each player in their own language.
  • Style — the default look of all messages: Color [R, G, B], Sender (put your community name), TopOfScreen (chat or big text at the top), DurationSeconds, Scale, TopOfScreenMaxLength. (Bold is still read but has no effect: ARK's chat has no bold.)
  • Per-message style — write a message as an object and set only what changes: { "Key": "AutoMessage2", "Color": [255,60,40] }. A Panel option shows a titled window the player has to close — keep it for warnings.
  • Styles — a style sheet by intent: info, succes, alerte, urgent, discret, chat (add your own). Our other plugins (Z-Points, Z-Colour, Z-Info, Z-Chat, Z-Rcon...) only name the intent; you decide here what it looks like, for all of them.
  • Formatting — named colours, exact shades, emotes and images inside a message. See README.md in this folder, including what the game cannot do.
  • For our other plugins — they send their messages through Z-Messages when it is installed. If it is absent, they fall back to the game's ordinary message: nothing breaks, it is just plainer.


Player commands
  • /msg both — short messages in the chat and at the top of the screen (the default).
  • /msg chat — in the chat only.
  • /msg top — at the top of the screen only.
  • /msg alone shows the current choice. The words are also understood in French (deux, haut), German (beide, oben) and Spanish (ambos, arriba). The choice is remembered for each player in display.json, next to config.json.


RCON commands
  • ZMessages.Reload — re-reads config.json and the lang folder. The answer is settings reloaded (ACTIVE) or (DISABLED), or reload FAILED, previous settings kept when config.json cannot be read.
  • ZMessages.Status — version, state (active or disabled), the default display and how many players chose each place, then | texts: lang EN FR DE ES and, if custom.json holds texts, , custom FR:2 (language and number of texts).


Configure (config.json)
  • General.Enabled — false puts the plugin to sleep.
  • General.Language — the language of the server (EN, FR, DE, ES or your own): used for players whose own language is unknown.
  • Style, Styles, PlayerDisplay, Welcome, AutoMessages — see above and config.commented.json.
  • Welcome.LinkedAccounts — the list of players who linked their account (see above).


Configuration and texts
Settings. config.json holds the settings only. Every setting is explained in config.commented.json, which comes with the plugin and is replaced at each update. Read it before you change anything. Do not edit it and do not rename it to config.json: it contains comments. The plugin never writes config.json.

Texts. The sentences are in the lang folder, one file per language: en.json, fr.json, de.json, es.json. They are replaced at each update: do not edit them. To change a text or add one, use lang\custom.json, never shipped and never overwritten. Format: {"EN": {"Key": "text"}, "FR": {"Key": "texte"}}. A key left out keeps the shipped text. 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.

Keys used by Z-Messages
  • Sender — the default sender name (Server, Serveur, Servidor...), used when Style.Sender is empty.
  • WelcomeText — the welcome message. {player} becomes the player's name.
  • WelcomeIfNotLinked — a sentence added after the welcome, only for players missing from Welcome.LinkedAccounts.
  • WelcomeIfNotProtected — a sentence added after the welcome for players whose tribe is not protected. Empty by default: fill it in custom.json to use it.
  • AutoMessageInfo — the shipped announcement. Your own announcements are new keys that you invent (for example AutoMessage1) and name in AutoMessages.Messages.
  • DisplayNowBoth, DisplayNowChat, DisplayNowTop, DisplayUsage, DisplayModeBoth, DisplayModeChat, DisplayModeTop — what /msg answers.

Languages. Every text for one player is sent in that player's language: the flag they chose in the ZMenu mod (https://www.curseforge.com/ark-survival-ascended/mods/zmenu), passed on by the Z-Bridge plugin. Without ZMenu and Z-Bridge, or when the language is unknown, the language of the server is used (General.Language). To add a language (for example Dutch), create lang\nl.json (a code of 2 or 3 letters) with the same keys as en.json, or add an "NL" block in custom.json.

The /zlink invitation (1.2.2). The sentence WelcomeIfNotLinked ("Type /zlink to link your Discord account to your character.") is shipped in English, French, German and Spanish. It is added to the welcome only if the Z-Chat plugin is loaded on the server (Z-Chat provides the /zlink command; otherwise the sentence would announce a command that does not exist), and only for players who are not in Welcome.LinkedAccounts. That list is filled by Z-ARK. Without Z-ARK, fill it by hand in config.json, with the EOS id of each player who has linked their account, between quotes:
JSON:
"Welcome": {
  "LinkedAccounts": ["00021a2b3c4d5e6f7a8b9c0d1e2f3a4b", "00029f8e7d6c5b4a39281706f5e4d3c2"]
}
You can replace the sentence in custom.json.

Protected tribes. WelcomeIfNotProtected is empty by default, so nothing is added. If you write a text for it, the plugin adds it for players whose tribe is not in the Decay.ExemptTeams list of the Z-Clean plugin (it reads Z-Clean's config.json on the same server). A player without a tribe also gets it. If Z-Clean is not installed, or its file cannot be read, nobody counts as protected: everybody gets the sentence.

Where messages show. Short messages go to the chat AND to the top of the screen by default. Each player picks with /msg; the default for the server is PlayerDisplay.Default (shipped: both). A text longer than Style.TopOfScreenMaxLength characters (shipped: 80) goes to the chat only, so nobody sees the same line twice. A block with Panel set to true stays a panel.


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


External connections and data
  • No network connection. The plugin opens no connection of its own and sends nothing anywhere: no web request, no telemetry, no licence check, no update check.
  • Files written: display.json only, next to config.json: the /msg choice of each player (EOS ids). config.json and the files in lang are read, never written.
  • Files read: config.json, the files in lang, and, only if present, the Z-Clean plugin's config.json (the protected tribes list) and, once, the Z-Points plugin's msgstyle.json to import display choices players had made there (it is never changed).
  • Data kept: Welcome.LinkedAccounts, a list of EOS ids that you, or an external tool such as Z-ARK, keep in config.json; Z-Messages only reads it.
  • Images and emotes in messages are the game's own assets, never web addresses.
  • It exports functions that our other plugins call to send their messages, inside the server process.
  • No registry access, no external program started, no other data collected.


Dependencies and limitations
  • No required dependency. Required by Z-Chat; used by our other plugins when it is installed. The /zlink invitation needs Z-Chat; a player's own language needs ZMenu and Z-Bridge.
  • Two game hooks: a player's arrival (for the welcome message) and departure.
  • ARK's chat has no bold; what else the game cannot display is listed in README.md.
  • Messages that the game or other tools send on their own keep their usual look.

For plugin authors
Any plugin can send its messages through Z-Messages, and respect the player's /msg choice. ZMsg::DireSelonJoueur sends one short line to one player at the place they chose, and ZMsg::ChoisirAffichage lets your own command change the choice. Without Z-Messages 1.2.0 or newer, your plugin falls back to "both" and nothing breaks. See the end of README.md, in the package, for the details.


Updates
Z-ARK (server manager, https://z-ark.fr/en/) checks for new versions of this plugin and installs them from its dashboard (version 0.285.0 or newer also moves your custom texts for you).

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.1: read the section Upgrading from 1.0.1 — 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.
Author
Zarkk
Downloads
250
Views
1,447
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-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.
  • Z-Pulse
    Free Z-Pulse
    Server tick monitor: times every tick, dates every stall, writes a readable daily lag report.

Latest updates

  1. 1.2.3

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

    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

    Rebuilt and checked for ARK 97 (Unreal Engine 5.8). No functional change, config unchanged. As...
Back
Top