Troubleshooting & FAQ
General
Does it need anything else? On Forge and NeoForge, no. On Fabric, only Fabric API; Mod Menu is optional.
Do players have to install it? No. On a server with the mod, players without it still get the chat summary and the commands in English. Players who install it need the same major version as the server (2.x). Installing it on the client adds the death screen panel, translations, the settings screen, clipboard buttons and templates. A server can require it with requireClientMod.
Can I use it on a server that does not have it? Yes. The client estimates the damage from its own health and nearby entities. Those entries are marked [Client Est.] and are less detailed. Names, tips and ignore from your own pack folder work; conditions, hiding and triggers need the mod on the server.
Will it conflict with other mods? On Forge and NeoForge it uses only standard events: no Mixins, no coremods. On Fabric it uses Fabric API events and a few tiny Mixins only where no event exists. No screen is replaced: the panel is drawn on top of the vanilla death screen.
Does it slow down my server? Only players are tracked, there are no server tick handlers, and packets are sent only on death, on a totem / heavy hit and on commands. The history is a small ring buffer per player.
Can I include it in my modpack? Yes. It is MIT licensed. No need to ask.
Something is not shown
The panel / summary / some detail does not appear. An element is shown only when it is true in both whathitme-common.cfg and whathitme-client.cfg. On a server, the server's common file counts. Ask the server owner, or check with /whm config <key>.
I cannot change a setting: "locked by the modpack" or "set by your progress". The modpack locked the setting, or it depends on your progress (unlock conditions). Operators change it in the Settings tab of /whm pack.
The chat summary is too much. How do I turn it off?/whm togglechat, or enableRespawnChatSummary=false. Pack makers can set any element for everyone and lock it in the Settings tab.
A damage type does not show up at all. It may be ignored (your own list: remove it in personal mode or press [Mute] again in /whm; a rule with "ignore": true hides it for everyone; /whm test says "Ignored by a rule"), or the damage was below minDamageThreshold (default 0.05).
Why does it say "Unknown" or unknown: for some damage? Some mods create damage without a type the game can trace back to them. Give it a name with a rule.
Why are there no emoji? Older Minecraft fonts cannot render them, so every version uses symbols the game font has (☠ ⚠ ❤ ⚡) and text labels.
Commands
A command says "turned off by the modpack" or is missing from /whm help. The modpack locked the command, for everyone including operators, or it unlocks with progress. /whm help lists only the commands you can use; inspect, test and reload are for operators.
I get disconnected: "This server uses What Hit Me? 2.0" or "an older What Hit Me? (1.x)". Client and server must have the same major version. Install the version the server uses, or remove the mod from your client to play without it (version rule).
/whm inspect says it needs the server. Inspect needs the mod on the server, because only the server knows other players' damage.
Pack files
My pack file does nothing.
- Run
/whm reloadand read the output:files read,files with errorsand the warnings. A file with a JSON error is skipped; the server log has the reason. Files in the 1.3 format are not read: convert them in/whm pack. - Make sure the file ends in
.jsonand is insideconfig/whathitme/pack/(any subfolder). - Check that the entries are not still commented out (
//). - Check the key with
/whm test <damage_id> [entity] [item] [dim]. - On a dedicated server, edit the server's files; the client's pack folder is not used while connected to a server with the mod.
Two rules set the same field. Which one wins? The first one from the top: files by order, then path; rules in list order. Settings and templates: the later file. See priority.
My general tip wins over my special one. Move the special rule above the general one (arrows in the pack editor, or "order" of its file). /whm test names the rule each field comes from.
Templates
A template line disappears. A line whose placeholders are all empty is dropped on purpose. A variable is empty when there is no value, when its display switch is off, when the field is hidden by a rule, or when the pack switched the variable off. Use {variable|fallback} to show something instead.
/whm reload says "unknown variable". Check the spelling against the variable list. The editor shows unknown variables in red.
My personal template is ignored. The pack locked that output or all personal templates (Settings & locks), or a rule that hides fields applies to that record.
Death messages and rules
Players still see the vanilla death message. On Forge / NeoForge, players without the mod always see the vanilla message. Use requireClientMod. On Fabric the message is replaced for everyone.
A rule never matches.
- Check
/whm reloadfor condition warnings: unknown prefix, missing quest mod, not supported on this version (for exampleadvancement:before 1.12,tag:before 1.9). - Test with
/whm test <damage_id> [entity] --as <player>and--assume <condition>. - A rule above it may already set that field (the first rule that sets a field wins), or its conditions are not met and it has no
else. - Rules need the mod on the server.
A quest condition is always false. The quest mod is missing, or its version has an API the provider does not know (logged once in the server log). See the tested versions. FTB Quests ids are hex ids; Better Questing GTNH ids are UUIDs.
Pack editor and scripts
/whm pack says "Only operators ..." or "needs What Hit Me? on the server". The pack editor edits the server's files, so it needs the mod on the server and operator permission (or single player with cheats). Without them, Pack editor... in /whm config edits your own names, tips and hidden damage.
The comments in my pack file are gone. Saving a rule in the pack editor (or converting a 1.3 file) rewrites that file, and hand-written comments in it are lost. Use the memo fields instead. The previous version of the file is in config/whathitme/.backup/.
I saved something wrong in the pack editor. Press Undo (30 steps per player until the server stops), or copy the file back from config/whathitme/.backup/<time>/ (legacy-<time>/ for 1.3 conversions and deletions).
My script: condition is always false. The name is not registered (check the Scripts: line of /whm reload), the script mod is missing, or the script function threw an error (logged once). Register it inside the register event so it survives reloads. See Script integration.
Reporting a bug
Use [Copy Recap] after the death and include it in your report on GitHub, together with the Minecraft version, the loader and the What Hit Me? version.
