Skip to content

Diagnose logs

TCF edited this page Nov 28, 2026 · 6 revisions

Diagnose logs, in the sidebar, reads the server's last run, the last game session's BepInEx log and the game's errors log, and says in plain words what went wrong and which mod it came from.

  • Each card names the problem, the mod when the log points at one, how often it was seen, and the log line it was read from. Show in Installed finds that mod; Open its folder and Open the log go to the files.
  • Things it knows include a profile SPT won't load (and why wiping it doesn't help), raid results that weren't saved, a server that couldn't start because its port is taken, a server that gave up while starting (and the mod it points at - one made for a newer SPT, or one missing something it needs), Fika refusing to let the game join (below), plugins BepInEx didn't load (missing or too-old dependencies, incompatible or duplicate mods), server mods that aren't running, and bundle problems.
  • Copy a report for help puts what was found, and the errors it didn't recognise, on the clipboard - with your Windows user name, folders, profile and item ids and other players' addresses taken out. Paste it where you ask for help.
  • The logs only describe the last run. After changing something, start the server or the game again, then Read the logs again.
  • Purge logs sends the server logs, the game's Logs folders and the BepInEx logs to the Recycle Bin, so the next problem starts from clean logs. It shows how many files there are and their size first, and offers to stop the server if it's running. The launcher's, installers' and patcher's logs are left.

Nothing on this page changes any file. Works on SPT 4.0 and 4.1 layouts (SPT\user\logs and SPT_Runtime\user\logs).

Note

The SPT launcher deletes the game's Logs folder each time it starts the game. When the game is started from the app's own Play card, the last few sessions' game logs are kept in data\gameLogs\ so this page can still read them.

A profile SPT won't load

When a profile is refused because it holds items, traders or clothing from a mod that's gone, the card has Let SPT clean the profile. After asking, it turns on SPT's own removeModItemsFromProfile and removeInvalidTradersFromProfile in the server's core.json - only those two, with the file as it was kept beside it as core.json.before-tcfmm - so the server takes what's missing out of the profile when it next starts. Those items are gone for good, for every profile on that server. Restart the server, then try the profile again. If both are already on, the card says so. Play offers the same button when it stops on a profile SPT won't load.

Clean profiles, on the same cards and on a card saying the game couldn't read the server's answer, checks every profile for skills and bot roles that neither SPT nor an installed, turned-on mod adds - left behind by a mod that's gone, say Skills Extended removed by hand. It lists each profile it found, ticked, with what would come out; untick any to leave alone, then Clean. Every profile is backed up first, and a window lists what came out. Items and traders are left to SPT's own clean-up above.

Fika

Fika checks the game against the server and the raid host from inside the game, so what it says is in the game's BepInEx log, not the server's. Each of its problems gets its own card: mods the server requires that the game doesn't have, no Fika on the server, the server's Fika too old, a different Fika or game version from the raid host, and Fika's own files changed. The wording is read from the installed Fika, so it follows Fika's updates and every language Fika ships. The game rewrites its log each time it starts, so read the logs before starting it again.

Find the mod causing it

When the server's last run logged a problem - it wouldn't start, or it filled its log with errors - a Find the mod causing it card shows at the top of the page. Start search starts the server a few times with no window, turning server mods off in halves, until it can name the mod the problem comes with, or the two mods that clash. It tests the server only, not the game. The Server page offers it too when the server stops while starting.

  • Before it starts, your profiles are copied, and the download queue is paused. Every mod is turned back on at the end, and the profiles put back if the starts changed them - even if the app closes part way, at its next start.
  • While it runs, the card shows which start it's on and what that start is for, the time taken, and about how long is left. The time left is worked out from how long each mod takes in the first full start, and corrected after each one. Starts lists every start so far: what it was for (all on, all off, recently changed mods off, narrowing down, the suspect on its own, looking for a second mod), whether the problem showed, and how long it took. Mods changed since the server last came up are tried first.
  • Mods are never on without what they need: what they declare, and the mod they're an addon for, from the app's install records.
  • The result names the mod with Turn off and Show buttons, the log lines it was found by, and Start server once a mod is off. Turn off asks about mods that need it and takes its addons along, as on Installed.
  • The result stays until the server runs without the problem - it came up, and none of the errors pinned on the mod came back - and then closes itself. ✕ in its corner sets it aside without doing anything. Turning a mod off is always your call.

Warning

When a problem appears here, it does not mean that this mod is at fault. Check its sp-mod mod page and the Discord before or after removing it.

Check client mods

Check client mods reads every client plugin without starting the game. It lists the mods that use a type, method or field the game, BepInEx or your other plugins don't have, or that patch one - usually a mod built for another game or SPT version. It also lists mods that need a mod that's missing or turned off. Each mod gets a card naming what's missing, with Show in Installed. Things a patcher adds while the game loads aren't counted as missing.

It reads the plugins, it doesn't run them: a mod that only finds what it changes once the game is running can't be seen this way, so a mod that isn't listed can still be the problem.

Find the client mod causing it

For a problem in the game, Find the mod is on the Check client mods card, and on the red bar when the game crashes. It starts the game a few times, with client mods turned off in halves, until it can name the mod the problem comes with, or the two that clash.

  • Each start goes the way Quick play does: PLAY for the profile picked on the Play card, or else the server and the SPT launcher, where you press Play. Play until you'd expect the problem, then answer on the card: It broke, It worked or Not sure (which starts the game again with the same mods). If you close the game first, the app comes to the front and asks. If the game is still running when you answer, the app closes it.
  • Only the client half of a mod is switched, and the server keeps running between starts. Patchers stay on. A mod is never on without what it needs.
  • Before it starts, your profiles are copied. At the end, the game is closed, the server stopped, every mod turned back on, and the profiles put back if the starts changed them - even if the app closes part way, at its next start.
  • The result names the mod with Turn off and Show. After Turn off, It's fixed closes it once the problem has gone; ✕ sets it aside.
  • Guide me, on either search card, shows a hint at each step of a search: when it starts, when it's waiting for your answer, when the game closes, after Not sure, on the result and after Turn off.

When something crashes

When the server, the game or the Fika headless crashes, a red bar comes up at the top of the window - with a notification if the app isn't in front - and names the mod when it can. Diagnose logs on the bar opens this page; Show in Installed goes to the mod.

  • The crash is read from Windows' own crash record (the Application event log), which for the server usually names the mod from the error's stack trace: The SPT server crashed in Live Flea Prices. A server that gave up while starting is read from its log. Where Windows keeps no record - under Wine - the exit code decides.
  • Stopping something from the app (Stop, Restart, Close game, stopping the server after the game, closing the app) is never a crash, and neither is ending it in Task Manager or closing the server's window.
  • Every exit is written to the app's log with its exit code, as [Crash] ... exited with 0x....
  • A game that crashes while quitting is still recorded by Windows as a crash, so the bar comes up then too.

Clone this wiki locally