Z-Colour

Trusted Free Z-Colour 1.2.1

This resource is free
en-z-colour.jpg


Z-Colour — players recolour their own tamed dinos with one chat command​

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

Look at your tamed dino, type /zdc 0 79, done: region 0 of that dino is now colour 79. Z-Colour does that one thing, server-side, with no game hook and no client mod — it works on PC and on console alike.

Only dinos that belong to the player or to their tribe can be recoloured. You decide who may use the command (see "Who can use it").


Upgrading from 1.0.x — read this first
  • Back up your current config.json before you update.
  • config.json now holds the settings only. The texts players read are in the lang folder (en.json, fr.json, de.json, es.json) and your own changes go in lang\custom.json (never shipped, never overwritten).
  • Texts you customised in the Texts block, or in the flat Messages block, of your old config.json are no longer read by the plugin. Copy them into lang\custom.json (format shown under "Configuration and texts"), under their language, or players will see the shipped texts. With Z-ARK, this is done for you at install.
  • The plugin no longer writes to config.json and no longer converts the old structure by itself.
  • Notifications.AlsoChat is gone. Where the short messages show is now each player's choice with /msg (see "Where messages show"). By default they now show in the chat and at the top of the screen.
  • Three settings are now listed in the shipped config.json: General.ChatCommandAlias, Access.UsePermissions and Access.PermissionsGroup. 1.0.x already understood them; if your file does not have them, the plugin uses the same defaults as before, so nothing changes. See "Configure".
  • Step by step, with and without Z-ARK: see "Updates" at the end.


Install
Drop the Z-Colour folder into ShooterGame/Binaries/Win64/ArkApi/Plugins/. Requires AsaApi 2.11 or newer. Loads at server start.


Player commands
  • /zdc <region 0-5> <colour id> — recolours the tamed dino you are looking at.
  • /zdc help — reminder of the syntax and of the six regions, in the player's language.

Regions: 0 body, 1 face, 2 side, 3 legs, 4 top, 5 under (what each region covers depends on the species). Colours: a number from ARK's dye palette, from 0 up to General.MaxColourId (the ZMenu Z-Colour tab shows them all). A short cooldown (General.CooldownSec) stops spamming.

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-Colour tab: allowed players pick a region, then a colour from the palette. 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
  • ZColour.Reload — re-reads config.json and the lang folder, no restart: settings, access list and texts apply immediately (the command name and its alias are read at server start only). It answers "settings reloaded (ACTIVE)", or "(DISABLED)" if General.Enabled is false, and "reload FAILED, previous settings kept" if config.json cannot be read.
  • ZColour.Status — version, command, access mode and what decides access. It ends with the texts loaded, for example texts: lang EN FR DE ES, plus , custom FR:2 when custom.json holds texts (language:number).
RCON replies stay in English: they are tool replies, not messages for players.


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. The shipped config.json has these settings:
  • General.Enabled — false puts the plugin to sleep without unloading it (shipped: true).
  • General.Language — language of the texts when the player's own language is not known: EN, FR, DE or ES, or a language you add yourself (see below). Shipped: EN.
  • General.ChatCommand — what players type (shipped: /zdc).
  • General.ChatCommandAlias — an optional second command with the same effect, for example a habit taken from another plugin. Empty (shipped) means no alias. A change of ChatCommand or of the alias needs a server restart.
  • General.MaxColourId — highest colour id a player may ask for (shipped: 255; lower it to forbid the high shades).
  • General.MaxRangeUnits — how far the player can look to pick a dino, in game units (shipped: 6000).
  • General.CooldownSec — minimum seconds between two uses per player (shipped: 3; 0 = no limit).
  • Access.Mode — open or list (shipped: open).
  • Access.UsePermissions — in list mode, true (shipped) asks the Permissions plugin first; false uses EOSList only.
  • Access.PermissionsGroup — the Permissions group allowed in list mode (shipped: Donator).
  • Access.EOSList — EOS ids allowed in list mode when Permissions cannot decide (shipped: empty). An external tool, such as a server manager, may keep this list up to date; ZColour.Reload re-reads it.
  • Notifications.Scale / Notifications.DisplayTime — size and duration in seconds of the text at the top of the screen (shipped: 1.8 and 5).

Where messages show
Every message of Z-Colour (confirmation, errors, help) shows in the chat AND at the top of the screen by default. Each player chooses with the /msg command of Z-Messages (1.2.0 or newer):
  • /msg both — chat and top of the screen (default).
  • /msg chat — chat only.
  • /msg top — top of the screen only.
  • /msg alone — shows the current choice.

The choice is remembered by Z-Messages, per player, and is shared by all our plugins. The server default is PlayerDisplay.Default in the Z-Messages config (shipped: both). A text longer than Style.TopOfScreenMaxLength in the Z-Messages config (shipped: 80 characters) goes to the chat only, so the two help lines of /zdc help may appear in the chat only. Without Z-Messages 1.2.0 or newer, messages go to the chat and to the top of the screen. The size and the duration of the top-of-screen text are the Notifications settings.

Who can use it (Access)
Access.Mode decides. The shipped config is "open": every player can recolour their own dinos. To restrict it, switch to "list".
  • Mode: "open" — every player can use the command.
  • Mode: "list" — if UsePermissions is true, the Permissions plugin is loaded and the group named in PermissionsGroup (default Donator) exists, members of that group are allowed. Otherwise only the EOS ids listed in EOSList are allowed (an empty list means nobody).

ZColour.Status tells you which of the two actually decides on your server (Permissions group, or the list — and why).


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 texts 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 17 texts. Usage, NoTarget, NotYours, NotADino, NoPermission, Cooldown, BadRegion, BadColour, Done, Help1, Help2, and the six region names Zone0 to Zone5. The region names are real texts too: Done shows the region name through {zone}, and you can translate or rename them.

Change a text. Create lang\custom.json. Example, to change two messages and rename a region:
JSON:
{
  "EN": {
    "Done": "Nice! Colour {colour} on the {zone}.",
    "Cooldown": "Slow down, one change every few seconds.",
    "Zone2": "flanks"
  },
  "FR": {
    "Cooldown": "Doucement, un changement toutes les quelques secondes."
  }
}
A key you leave out keeps the shipped text. Keep the {placeholders} ({region}, {colour}, {zone}, {max}) spelled exactly as in en.json: they carry the numbers and names.

Which language does a player get? A text meant for one player is sent in that player's own language (the flag chosen in the ZMenu mod, carried by Z-Bridge) when it is known and the plugin has texts 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 keys 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.

Who can use /zdc — step by step. The setting is the Access block of config.json. Only Mode, UsePermissions, PermissionsGroup and EOSList matter here.

  1. Open config.json and find "Access".
  2. Pick one of the three cases below and copy its block.
  3. Save the file, then run ZColour.Reload in RCON. No restart needed.
  4. Run ZColour.Status and read the end of the answer (see "What ZColour.Status tells you").
  5. Test with a real player: a player who must be refused types /zdc help. The check is made before anything else, so a refused player always gets the refusal message, and an allowed player gets the help text.

Exactly who is allowed. The plugin reads the settings in this order and stops at the first row that applies:

  • Row 1 — General.Enabled is false → Nobody. The plugin is asleep: /zdc does nothing and no message is shown.
  • Row 2 — Mode is not exactly list in lower case (open, List, closed, a typo, a missing value) → Everybody. The other three settings are ignored.
  • Row 3 — Mode is list, UsePermissions is false → Only the ids in EOSList.
  • Row 4 — Mode is list, UsePermissions is true, Permissions is not loaded → Only the ids in EOSList.
  • Row 5 — Mode is list, UsePermissions is true, Permissions is loaded, the group PermissionsGroup does not exist → Only the ids in EOSList.
  • Row 6 — Mode is list, UsePermissions is true, Permissions is loaded, the group exists → Only the members of the group. EOSList is NOT checked: a player who is not in the group is refused, even if his id is in EOSList. A group with no member refuses everybody.

More details on the table:
  • An empty EOSList means nobody (rows 3, 4 and 5).
  • "Permissions is not loaded" (row 4) also covers a Permissions plugin that is loaded but does not offer the function IsPlayerInGroup: the plugin cannot ask it anything, so it uses EOSList.
  • If Permissions is loaded but does not offer the function that tells whether a group exists (IsGroupExists), the plugin does not check that the group exists: it goes to row 6. So create the group before you switch.
  • Z-Colour looks for the Permissions plugin once, at the first /zdc or the first ZColour.Status after the server starts, and remembers the answer until the server restarts. ZColour.Reload does not look again. Whether the group exists is asked again each time.
  • EOSList is read as text, each id compared with the player's id exactly: no space trimming, upper and lower case are different. An entry that is not text is ignored. A setting of the wrong type (for example "UsePermissions": "yes") is ignored and the default is used ("open", true, "Donator").
  • PermissionsGroup must match the group name exactly, upper and lower case included: with donator instead of Donator, the group is treated as missing (row 5) and ZColour.Status says "does not exist yet". A group with no member still exists (row 6).

What a refused player sees. In rows 3 to 6, a player who is not allowed gets the text NoPermission (shipped in English: "Z-Colour: you are not allowed to use this command."), in his own language, shown in the chat, at the top of the screen, or both, as he chose with /msg. Nothing is recoloured. In the ZMenu mod, the Z-Colour tab is hidden for him. You can change the sentence in lang\custom.json (key NoPermission). In row 1 the player sees nothing at all. In row 2 nobody is refused.

What ZColour.Status tells you. The answer always starts with Z-Colour <version> | command: /zdc | access: <Mode>, where <Mode> is the word written in your file. If it is not list, nothing more is said about access (row 2). In list mode it adds one of these, which tells you the row:
  • decided by: access list (Permissions disabled in config) — row 3.
  • decided by: access list (Permissions plugin not loaded) — row 4.
  • decided by: access list (Permissions group "Donator" does not exist yet) — row 5 (your group name is shown).
  • decided by: Permissions group "Donator" — row 6 (also when the plugin cannot check that the group exists).

If the plugin is asleep, the answer also contains DISABLED (row 1). The answer ends with the texts loaded. ZColour.Status does not list the ids in EOSList and does not say whether one player is allowed: use the test of step 5 for that.

The EOS id of a player. The plugin compares your text with the id the game gives for the player, character by character. Copy the id as it is shown, without changing it: no space, no capital letters added, no brackets. On our servers the ids written in the lists are 32 characters, only digits 0-9 and letters a-f in lower case. To read the id of a player who is online, use the ZRcon.Players RCON command of the Z-Rcon plugin: each line shows name [eos id] ..., and the text between the square brackets is the id to copy. After you save, run ZColour.Reload, then do the test of step 5 with that player.

Case 1, everybody:
JSON:
"Access": {
  "Mode": "open"
}

Case 2, a list of players (the EOS id of each player, as text):
JSON:
"Access": {
  "Mode": "list",
  "UsePermissions": false,
  "EOSList": ["00aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "00bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"]
}

Case 3, a group of the Permissions plugin (example: Donator):
JSON:
"Access": {
  "Mode": "list",
  "UsePermissions": true,
  "PermissionsGroup": "Donator"
}
Create the group in the Permissions plugin first, and put your players in it. If the group does not exist yet, the plugin uses EOSList (empty = nobody; row 5). Once the group exists, only its members are allowed (row 6).


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: none. It never writes config.json or the files in lang.
  • Files read: its own config.json and the files in lang (texts).
  • Data kept: the EOS ids you list yourself in Access.EOSList. An external tool (Z-ARK, for example) may keep that list up to date; Z-Colour only reads it.
  • When the Permissions plugin is loaded, Z-Colour asks it, through functions Permissions exports, whether a player is in the configured group. When Z-Messages or Z-Bridge is loaded, it calls their exported functions (message display, the player's menu language). It exports one function itself, so that Z-Info and Z-Bridge can ask whether a player may use /zdc. All inside the server process.
  • No game hook, no registry access, no external program started, no other data collected.


Dependencies and limitations
  • No required dependency. Optional: the Permissions plugin (access by group), Z-Messages 1.2.0 or newer (styled messages, and the /msg choice of each player), the ZMenu client mod with Z-Bridge (the Z-Colour tab, and the player's language).
  • Only tamed dinos of the player or of their tribe; what each colour region covers depends on the species.
  • ChatCommand and ChatCommandAlias are read at server start: a change needs a restart.
  • With Access.Mode set to list and an empty list (and no Permissions group), nobody can use /zdc.

Notes
  • Server-side only; no database.
  • If Z-Messages is installed, messages follow its style sheet and each player's /msg choice; otherwise the game's plain messages are used.
  • Z-Info's /info cmd lists /zdc only to players who are allowed to use it.


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: it keeps your settings, moves the texts you had changed in the old config.json (the Texts block and the flat Messages block) 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-Colour 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, reads the settings, and ignores the old Texts and Messages blocks that are still in it (players see the shipped texts). Those old keys, and Notifications.AlsoChat, have no effect and can be deleted.
5. Copy the texts you had changed in the old Texts or Messages block into lang\custom.json, under their language (format above).
6. Compare your config.json with the one shipped, to see what is new. From 1.0.x: General.ChatCommandAlias, Access.UsePermissions and Access.PermissionsGroup may be missing from your file; when missing, the plugin uses their defaults (no alias, true, Donator), exactly as before.
7. Start the server and run ZColour.Status: it should end with texts: lang EN FR DE ES (and custom with your languages if you wrote texts).


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
185
Views
1,297
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-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.
  • 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.1

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

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

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