DayzHUBMods

Mod · version 1.0.14

DayzHUB Leaderboard

A ranking your players open in game with one key. Boards for kills, K/D, longest kill, best life and headshots (infected and animals on a PvE server), four time periods, player profiles with their own stats, rank tiers and...

Needs DayzHUB Core DayZ 1.30 @DayzHUB_Leaderboard Product page
Leaderboard

A ranking your players open in game with one key. Boards for kills, K/D, longest kill, best life and headshots (infected and animals on a PvE server), four time periods, player profiles with their own stats, rank tiers and titles, a rank badge on the HUD and, with LB Advanced Groups, a clan ranking with a war table. Each server runs one mode, PvP or PvE. Fair counting, a new-player guard and crash-safe kills are built in.

The Kills board: podium of the top three, your rank card on the left, the ranking in the middle.

What's new in 1.0.14#

  • Kills and records are kept through a server restart, including the ones made just before it.
  • A milestone reward waits for you when your inventory is full. You get one notice, and the reward is handed over automatically as soon as there is room, even after a restart.
  • The PVP Best life board has a new LIFE column with the length of each player's best life.
  • Switching tabs clears the old rows and shows Loading until the new board arrives.
  • Smoother row colours on the board.
The Best life board with the new LIFE column

What's new in 1.0.13#

  • Top 3 cards: long player names are shortened with "..." so the name and the score always fit side by side, on every screen size.
The top three cards: a long name ends with "..." and the score stays next to it.
The Kills board: long names are shortened on the top three cards, and the ranking list below shows the full names.
  • Only the client part (@DayzHUB_Leaderboard) changed: replace it on your server and players download it automatically. Your data and settings stay as they are.

Install (server owners)#

  1. Install DayzHUB Core 1.0.11 or newer first (free, download it from My mods): @DayzHUB_Core.
  2. Copy @DayzHUB_Leaderboard (server and every player) and @DayzHUB_LeaderboardServer (server only - never give it to players) into your server folder.
  3. Copy keys\DayzHUB.bikey (from the mod folder you downloaded) into your server's keys folder. The client mod is already signed by DayzHUB. The server mod needs no signing.
  4. Start parameters: -mod=...;@DayzHUB_Core;@DayzHUB_Leaderboard and -servermod=@DayzHUB_LeaderboardServer
  5. Licence: on dayzhub.net, My mods > DayzHUB Leaderboard, add your server's public IP and game port (see Licence below).
  6. Admins: put your Steam64 ID in <profiles>\DayzHUB\DHUB_Core\Config\admins.json (written by DayzHUB Core). The admin bar opens with Insert.
  7. Start the server once: config.json, features.json, rewards.json, clans.json, donors.json (and agent.json with the Console agent) are written with their defaults. Edit them, then Insert > Leaderboard > Reload or restart.
  8. Only on a server with DayZ Expansion Groups: add @DayzHUB_LeaderboardExpGroups (server only) to -servermod after @DayzHUB_LeaderboardServer, never to -mod: players in one Expansion party then count as a team.

Update the client and the server part together: both must be the same version. With the DayzHUB Killfeed, load both and update both: the Killfeed produces the kill events and the Leaderboard counts them once. If the Killfeed is paused, the Leaderboard counts with its own hooks and switches back when the Killfeed runs again.

Licence#

  • One licence per server, tied to the server's public IP and game port. On dayzhub.net open My mods > DayzHUB Leaderboard and add them. There is no licence file to download or copy: the server checks in by itself at start. The state is written to <profiles>\DayzHUB\Licenses\STATUS_Leaderboard.txt. Players never need a licence.
  • Moving to another server: change the IP and game port in My mods. The old and the new address both keep working for 48 hours, so you can move without downtime. You can make at most 4 changes per mod in 30 days.
  • If dayzhub.net answers that this server has no licence (server not added, address not matching), the script log prints the reason and the link to add your server, and only the Leaderboard pauses while the server keeps running. Add the server and it resumes with the next answer. A licence problem never stops the server. If dayzhub.net cannot be reached, the server is never stopped: the mod keeps working for a 3 hour grace period, then only the Leaderboard pauses.
While paused: no counting, no boards and no badge; the admin page shows Paused and refuses Save and Rebuild (Reload stays open), and Console actions are refused. The Leaderboard comes back by itself as soon as the licence is valid, with no restart. Stats already saved are kept.

The profile folders#

Everything is in <profiles>\DayzHUB\DHUB_Leaderboard\ (folders Config, Data, Backups and Logs).

Updating from an older version: at the first start the files move to this folder by themselves and every setting is kept. A copy of each original file stays in Backups\<date>\pre-migration\. If the move cannot finish, the old files stay in use and the move is tried again at the next restart.

File or folderWhat it holds
Config\config.jsonmain settings (below). Written once, never overwritten. A value outside its range is corrected when loaded (the file is not changed) and a warning is shown and logged. A file with a JSON error is set aside as config-<time>.json, the defaults are used (on a reload the running settings stay) and CONFIG-BROKEN is logged
Config\*.new-defaults.jsonfour files that only show the current defaults, for comparing with your files
Config\features.jsonkill-streak notes, accuracy and travel tracking, optional hardcore resets
Config\rewards.jsonmilestone rewards, off until you turn them on
Config\clans.jsonclan board settings, used with LB Advanced Groups (keys under Clans below)
Config\groups.jsonoptional, not created by the mod: your groups for the "My group" filter, when you have no group mod. {"groups":[{"name":"North Team","members":["<steam64>"]}]}; with LB Advanced Groups loaded, its groups are used instead
Config\donors.jsonplayers with the donor badge: steamIds (max 500), "<steam64>" for good or "<steam64>:yyyy-mm-dd" until that day (at most 3650 days ahead; a bad date is ignored). Created when missing
Config\agent.jsonDayzHUB Console link, only written when the Console agent is installed: {"configVersion":1,"enabled":1} (1 = on, 0 = off). Restart after a change
Config\console.keyoptional, not created by the mod: your Console key on the first line, only for the Console data source. Never logged; never share it. Missing or empty = the Console data source stays off (log: CONSOLE-OFF reason=console.key-missing). Restart after a change
Data\Clans\clan records and headtohead.json, the clan-against-clan totals (only with LB Advanced Groups)
Data\Players\one file per player, with two rolling backups
Data\journal.jsonlkill journal: every counted kill at once, so kills survive a server crash
Data\layout.txt, Data\_index.txtkept by the mod (layout marker and index). Never edit the Data files by hand
Backups\<date>\daily copy of the config and data files, newest 7 days kept; _files.txt lists the copies of that day, pre-migration\ holds your old files from the move, config.v<N>.json is your old config.json kept when it is upgraded
Backups\Corrupt\, Backups\Inactive\player files that could not be read, set aside; players archived by boards.pruneInactiveDays (a returning player gets the record back)
Logs\Logs\<kind>\<yyyy-mm-dd>.log (date in UTC): Server, Kills (only with logging.level 2), Security, Admin, Errors; plus README.txt. Written through DayzHUB Core: log level and days kept are set in DHUB_Core\Config\Logger.json (logLevel, keepLogsDays; 0 = never delete)

How to apply a change: edit the file, then Insert > Leaderboard > Reload, or restart. Overview > "Reload every DayzHUB mod" reloads them all. groups.json also reloads this way; agent.json and console.key are read only at server start: restart.

Settings in short#

KeysDefaults and ranges
modepvp (default) or pve
dataSourceauto (default), local or console; anything else falls back to auto. Until the Console source is set up, every value runs the mod's own engine
serverNametext in the header, up to 40 characters (default empty)
counting.pveKillsInclude / pveDeathsIncludedefault ["ai"]; add infected and/or animals
counting.pvpKillsInclude / pvpDeathsIncludedefault ["players"]; add infected and/or animals
counting.* (rest)ignoreTeamKills 1, vehicleKills 1, explosionKills 1; credit times: lethalHitSec 2 (1-10), bleedCreditSec 120 (2-600), finishCreditSec 60 (0-600), suicideCreditSec 60 (0-600), vehicleGraceSec 15 (0-120)
antiBoost.*sameVictimCap 3 (0-50), windowSec 600 (10-86400), minVictimAliveSec 60 (0-3600), newVictimHours 24 (0-168), newVictimCap 1 (0-50); 0 switches a rule off
periods.*seasonId S1, seasonName Season 1, utcOffsetMin 0 (-720 to 840)
boards.*size 100 (12-100), minKillsForKd 10 (0-10000; also gates the K/D titles), pruneInactiveDays 0 (off; or 30-3650), flushSec 45 (30-60)
tiers / titles[]minKills 5, percentiles [0,25,50,75,90,98] for the six tiers (Initiate to Apex); six default titles, up to 12
filters.group1: the "My group" filter (needs a group mod or groups.json)
privacy.*allowOptOut 1; names show (default) or initials
ui.*layout one (default) or two; showLevel 1; donorBadge 1
badge.*size compact (or icon, expanded), anchor rightMiddle, offsetX 0, offsetY 0 (-1 to 1), visibleWhen always (or open, never); an unknown value becomes the default
console.*enabled 0 (also needs console.key), baseUrl empty (https:// only; anything else is cleared with a warning), serverId empty, refreshSec 60 (15-900)
logging.level1 (0-2: 0 important lines only, 1 events and warnings, 2 also every counted kill). How long logs are kept is set in Core (keepLogsDays in Logger.json)

Switches are 1 (on) / 0 (off). version (7) is written by the mod: do not edit it.

features.json#

KeysDefaults
streakNotes / streakToEveryone1 / 1: a kill streak is announced in the DayzHUB note, to every player online (streakToEveryone 0 = only the killer); silent while the DayzHUB Killfeed is loaded
streakFirst / streakEvery5 (2-100) / 5 (1-100): first note at 5 kills in one life, then every 5
trackAccuracy / trackTravel1 / 1: shots, hits, head hits, longest hit; playtime and distance
maxSpeedMs50 (10-200): a faster jump (teleport, respawn) is not counted as distance
resetStatsOnDeath0: hardcore, every death wipes the numbers of the server mode (best life stays)
resetLifeOnLogout0: hardcore, a logout ends the life

A value outside its range gets its default back. version (1) is written by the mod.

Counting modes#

PvP or PvE: the server chooses one mode and the HUD shows only that mode, with a small PVP / PVE chip in the header. The mod records both all the time, so you can switch later without losing any history. Numbers of the other mode never mix into a rank, a K/D, a tier or a title.

What a kill feeds is set by toggles on the Counting tab of the admin page. The tab shows only the groups of the mode the server runs:

  • PvP server: PvP kills and PvP deaths, each with Players, Infected, Animals. Default: Players only. Switch Infected or Animals on and zombie or animal kills also feed the PvP Kills, K/D and Longest boards and the streak.
  • PvE server: PvE kills and PvE deaths, each with AI survivors, Infected, Animals. Default: AI only. Switch Infected or Animals on to let them count on the Kills, K/D and Longest boards; they always keep their own boards. One death counts once, even when both the PvP and the PvE list take the same killer.
  • In every group at least one toggle stays on. The other mode's lists are not shown and do not affect the boards. A toggle applies to kills from the moment you save.

Fair counting#

  • Team kills, suicides and environment deaths do not count. Kills of the same victim again and again, or of a player who has just spawned, are refused and written to Logs\Security. A refused kill adds no death to the victim.
  • New-player guard: a player record younger than 24 hours gives each killer only one counted kill in that time, so fresh accounts cannot be farmed.
  • Right credit, also without DayzHUB Killfeed: a player who kills himself, falls, drowns or is finished by infected or animals shortly after being shot still gives the kill to the shooter; a bleed-out, or the death of a knocked-out or handcuffed player, goes to the last attacker; logging out does not clear that credit; a killer who is already dead still gets the kill. Vehicle drivers, thrown and placed explosives are credited too.
  • Crash safe: every counted kill is written down at once and counted at the next start if the crash came before the save, never twice.
  • Data safety: every save is checked, two rolling backups are kept per player, and an unreadable file is set aside instead of lost.

Periods#

Four windows: Overall (never resets), Season, Weekly and Today. The day changes at midnight UTC shifted by periods.utcOffsetMin; the week starts on Monday. New season: change periods.seasonId (for example to S2) on the Season tab or in config.json: the season boards start empty and Overall stays.

Rewards#

Server-side milestone rewards in Config\rewards.json, off by default ("enabled": 1 turns them on; then Reload). Only kills the board really counted reach a milestone. maxPerHour (1-60, default 6) caps one player. notify (default 1): the player gets an in-game message when a reward is given.

  • The list is milestones. A milestone is {id, stat, value, once, items, amount}: id up to 32 characters; value 1 or more; stat is kills (counted kills of the server mode, overall) or streak (kills in one life); once 1 gives it one time per player, 0 every time it is reached again; items are class names; amount is 1 to 20 copies of each (else 1). A bad milestone is skipped and logged.
  • Written as examples: 25 kills (a 5.56 ammo box), 100 kills (a plate carrier), a streak of 10 (4 rags, every time).
  • The items go into the inventory (on the ground under the player when full). A reward reached while the player is dead or offline is handed out when he is alive again. Every reward is logged.

When a player's inventory is full, a reward is not lost: it is saved as due at once (it survives a restart), the player gets one notice, and the server hands it over automatically as soon as there is room.

For players#

Open the boards#

Press Shift + L (rebindable in Options > Controls > DayzHUB Leaderboard; the menu header shows the key as the player has it bound). If nothing happens, bind the key once in that menu: DayZ does not bind a new key for an existing profile. Press Esc to close.

The boards#

Tabs along the top, each with your own rank: Kills, K/D, Longest kill, Best life and Headshots. On a PvE server the boards are AI kills, K/D, longest kill, best life, infected and animals. The podium shows the top three; the list shows everyone else. Long names on the top three cards are shortened with "..." so the name and the score always fit side by side. Your own row is highlighted and a bar shows how far the next player is ahead. Scroll with the mouse wheel over the board (3 rows), Up / Down (3 rows) or Page Up / Page Down (12 rows).

K/D board. A K/D rank needs a minimum number of kills (set by the server).
Longest kill board.
Headshots board.

Time periods and filters#

Switch between Overall, Season, Weekly and Today. Show All players, only those Online, or My group. Search by any part of a name (2 letters or more): "Bob" finds "[TAG] Bob". With names set to initials, search matches what you see ("B***"); your own name stays in full.

Player profiles#

Hover a row to see a profile, click it to pin it. A profile has two pages: Overview (kills, deaths, K/D, best streak, longest kill, favourite weapon, K/D trend, earned titles) and Combat (accuracy, head hits, shots fired, longest hit, playtime, distance travelled and what that player hunts most).

A pinned profile on the right.

Tiers, titles and your look#

Your rank tier (Initiate, Scout, Hunter, Veteran, Warden, Apex) comes from where you stand among players with enough kills. Titles are earned by what you do (for example Longshot Ace or Clean Sweep). In your card you can pick the title shown beside your name on every board, set the HUD rank badge (on or off) and hide yourself from the boards: you then show as "Hidden player", also on the boards the DayzHUB Console shows.

Choosing the title shown beside your name.

Kill-streak notes: at 5, 10, 15... kills in one life a short note appears (it stays quiet when DayzHUB Killfeed shows its own banner).

Clans (with LB Advanced Groups)#

When LB Advanced Groups is installed, an extra Clans tab appears: a clan ranking by kills, deaths, K/D, best streak or members (click a column to sort), with the same periods, and a clan-against-clan war table that shows how the selected clan did against each rival. A kill belongs to the clan the killer was in at that moment, so leaving a clan never changes your own stats, only the clan record. A clan that changes its tag starts a new record. With Show level on, each clan's level shows as the lit rim of its hexagon. Without LB Advanced Groups there is no Clans tab and nothing is missing.

Settings in Config\clans.json (a value outside its range gets its default back):

KeyDefault and meaning
enabled1: clan board on/off
refreshSec30 (10-600): fewest seconds between two rebuilds of the clan board
minMembers2 (1-64): members a clan needs to get a K/D rank
minKills10 (0-100000): kills in the period a clan needs to get a K/D rank
maxClans50 (3-60): most clans kept and ranked
maxRivals6 (1-6): most rival rows (clan against clan) shown per clan
headToHead1: clan against clan kills are recorded; 0 = off
The Clans tab (no clan has fought yet on this demo server).

Admin page (Insert > Leaderboard)#

Admins only (a moderator sees the page and keeps the donor list). Every value is range-checked before it is saved (a wrong value saves nothing and says why), written with a backup, used at once, logged, and every player online gets the new boards, periods and tabs at once. Reload (admin bar and Console) re-reads the config, features, rewards, clans, groups and donors files after a hand edit (agent.json and console.key need a restart); a file with an error keeps the values in use. If config.json cannot be read, the page refuses to save instead of writing the defaults over your file.

TabWhat you see and do
Statusplayers on the boards, mode, data source, rank announcements, broken config files, licence; Rebuild boards
Boardsmode, data source, server name, rows per board, kills needed for K/D, archive inactive (days), save every (s)
Countingignore team kills, vehicle and explosion kills; the kill and death toggles of the active mode; lethal hit, bleed, finish and suicide credit, vehicle grace; same-victim cap and window, victim must live, new player window and kill cap
Seasonseason id, season name, UTC offset of the day and week change
Displayplayers may opt out, full names or initials, layout, show level, log level; donor badge and donor list
Consoleuse the Console as data source, its address (https:// only), server id and refresh time

DayzHUB Console#

With the DayzHUB Console agent on your server, the Leaderboard links by itself (Config\agent.json, only written when the Console agent is installed, on by default; set enabled to 0 there to stop it, then restart the server). In the Console you get:

  • Events: a line LB_RANK1 when a board gets a new number one (hidden players are never announced). It is sent when dataSource is local; on auto or console the Console announces its own numbers, so the Leaderboard stays quiet.
  • Six actions, each logged with the Console admin's name and refused while the licence is paused:
ActionWhat it does
Leaderboard: statusversion, mode, data source, rank announcements, players, broken files, Console events sent
Leaderboard: rebuild every boardrebuilds the boards from the player records
Leaderboard: re-read config.json and rebuildre-reads config, donors, features, rewards, groups and clans and rebuilds
Leaderboard: add or edit a donorSteam64 id and days (0 = lifetime)
Leaderboard: remove a donorSteam64 id (asks for confirmation)
Leaderboard: list the donorsthe donor list
  • Data source (optional, Console tab of the admin page): the boards can use the Console's numbers (Overall only). What the Console cannot give yet shows as "-" or is hidden, never as a number that belongs to another mode. The address must start with https://, and Config\console.key must hold your Console key (restart after creating it).

Updating keeps your data#

  • Installing a newer version never wipes anything. Player records, with their backups, carry over untouched (rank, K/D, streak, longest kill, best life, title, badge choice, opt-out, accuracy and travel history).
  • Your settings are kept. config.json, features.json, rewards.json, clans.json, groups.json, donors.json and agent.json are never overwritten by an update. When an update adds new keys, config.json is upgraded once: your values stay, new keys get their defaults, the old copy is kept as Backups\<date>\Config\config.v<N>.json. Files from before 1.0.11 move to DHUB_Leaderboard by themselves; the originals stay in Backups\<date>\pre-migration\.
  • To update: stop the server, replace the two pbos (and the key if it changed), start the server. Nothing under <profiles> needs to be moved or cleared. A backup copy of the DayzHUB profile folder first is cheap insurance.

Thai language#

Every DayzHUB HUD, menu and admin page of this mod can show in Thai. Set "language": "th" in <profiles>\DayzHUB\DHUB_Core\Config\Settings.json and restart the server. Item names and action prompts stay as the game shows them. Translated: English, Czech, German, Polish, Hungarian, Italian, Spanish, French, Portuguese and Thai. Russian, Chinese and Japanese players see the English text.

Questions#

Shift + L does nothing
bind the key once in Options > Controls > DayzHUB Leaderboard. If the admin page says Paused, the licence is not confirmed (STATUS_Leaderboard.txt).
A kill did not count
look in Logs\Security: team kills, the same victim again, a fresh spawn or a new player are refused on purpose. Set logging.level to 2 to log every counted kill.
PvE players kill zombies but the Kills board does not move
switch Infected (and Animals) on in the PvE kills group of the Counting tab.
Can I change PvP to PvE later
Yes. Both modes are recorded all the time.
K/D shows no rank
the player has fewer kills than "Kills needed for K/D".
No Clans tab
LB Advanced Groups is not loaded; the "My group" filter then uses Config\groups.json.
A clan's record started again
the clan changed its tag.
Nothing is announced in the Console
dataSource is auto or console; set local if you want the Leaderboard to announce.
Reading the log
problems appear in the script log as [DayzHUB] [Leaderboard] [ERROR] what happened | what to do (or [WARN]); details are in Logs\. No key or token is ever printed.

Compatibility#

DayZ 1.30 Update 2. With the DayzHUB Killfeed loaded, the Leaderboard uses the Killfeed's kill events and turns its own kill counting off, so every kill is counted once and the streak announcement is left to the Killfeed banner. Without it the Leaderboard counts kills by itself (players, AI, infected, animals, vehicle drivers, thrown and placed explosives, bleed-outs). Tested together with the LBmaster Killfeed and the Expansion kill feed (every kill counted exactly once), DayZ Expansion, CF and the DayzHUB Console agent. Needs DayzHUB Core 1.0.11 or newer; works with or without LB Advanced Groups. Pop-up messages of other mods are hidden while a DayzHUB menu is open.

Support: dayzhub.net and the DayzHUB Discord.

Something missing or wrong on this page? Tell us in the DayzHUB Discord and we fix it.

DayZ Hub

Ustawienia plików cookie

Zdecyduj, czy DayZ Hub może liczyć twoje wizyty za pomocą naszych statystyk bez plików cookie. Możesz to zmienić w każdej chwili.

Niezbędne pliki cookiePotrzebne do logowania, bezpieczeństwa, wybranego języka i tego wyboru.
Zawsze aktywne
Statystyki — PlausibleLiczy odsłony stron bez plików cookie i danych osobowych, abyśmy mogli ulepszać DayZ Hub.