IMPORTANT, read before you install: the architecture of this plugin has been reworked and its configuration files have changed (config.json now holds the settings only, the texts move to a new lang folder, every setting is explained in config.commented.json). Read the new config files and these notes before you install, back up your config.json, and do not overwrite your old config.json without looking at it first.
This release brings a new way to sample the game thread and a new structure for the settings and the report texts. Please back up your config.json before you update. Your measurements, the files read by programs and the RCON replies keep the same format.
New stack sampler mode: pauses only (1.1.0)
- New setting General.SamplerHz = 0. The stack sampler (General.StackSampler, off by default) then takes NO sample in normal times. It only checks every 100 ms whether the current game tick has already lasted PauseSamplerAfterMs; if it has, it samples that pause at PauseSamplerHz until the pause ends.
- In this mode PauseSamplerAfterMs is capped at 1000 (1 second), because a pause is reported from 1 s on. A larger value is lowered to 1000 by the plugin.
- The shipped value of SamplerHz stays 10, so nothing changes for you unless you set it to 0. Range: 0 to 50. Other limits: PauseSamplerHz 10 to 200, PauseSamplerAfterMs 50 to 60000, MaxFrames 8 to 128.
- ZPulse.Reload now says "stack sampler ON during pauses only" in that mode.
New structure: settings and texts apart (1.1.0)
- config.json now holds the settings only. The plugin never writes to it. It no longer adds the report texts to it at first load.
- Every setting is explained in config.commented.json, shipped with the plugin and replaced at each update. It is the documentation: read it, do not edit it, do not rename it to config.json (it contains comments).
- The 68 sentences of the daily report (pulse-report-<date>.txt) are in the lang folder: en.json, fr.json, de.json, es.json, with keys such as "Report.Title" or "Pauses.Help". They are replaced at each update, so do not edit them.
- Your own sentences go in lang\custom.json, which is never shipped and never overwritten by an update. Format: {"EN": {"Report.Footer": "your text"}, "FR": {"Report.Footer": "votre texte"}}. A key you leave out keeps the shipped text.
- The codes %s, %d, %.1f, %lld... in a sentence are filled in by the plugin. If a sentence of custom.json (or of a language file) has different codes than the English one, it is refused: English is used for that sentence and a warning in the log names the key. Keep the same codes in the same order.
- To add a language, create lang\nl.json (or any 2 or 3 letter code) with the same keys as en.json, or add an "NL" block in custom.json, then write the code in General.Language.
- Language: the report is written in General.Language (shipped: EN). Z-Pulse has no text for players in the game.
- A file that cannot be read (invalid JSON) is ignored with a warning in the log. Nothing is written.
- ZPulse.Reload re-reads config.json and the lang folder. ZPulse.Status now ends with the texts loaded, for example "texts: lang EN FR DE ES", plus ", custom FR:2" when custom.json holds texts (language:number).
Upgrading from 1.0.x
- The old Texts block of config.json (the report texts added at first load) is no longer read. If you had changed a sentence there, copy it into lang\custom.json under its language and under its new key (for example "Report.Footer"). Unchanged sentences need nothing.
- The plugin no longer converts old setting names by itself: use the names of config.commented.json.
- With Z-ARK 0.285.0 or newer, install the update from Z-ARK: it keeps your settings, moves your changed texts to 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: stop the server, replace the .dll, PluginInfo.json and config.commented.json and the lang folder (except lang\custom.json), keep your config.json, start the server, then run ZPulse.Status. Full steps are in "Upgrading from 1.0.x" in the description.
- Unchanged: pulse.json, pulse-histo.jsonl, probe.jsonl, pulse-piles.jsonl and the other files read by programs, every RCON reply and every log line.