Skip to content

fix(kf2): create the KFGame/Cache map-load directory on install - #5108

Open
heyvaldemar wants to merge 1 commit into
GameServerManagers:developfrom
heyvaldemar:fix/kf2-cache-directory
Open

heyvaldemar wants to merge 1 commit into
GameServerManagers:developfrom
heyvaldemar:fix/kf2-cache-directory

Conversation

@heyvaldemar

Copy link
Copy Markdown

Description

The Killing Floor 2 Linux dedicated server does not create KFGame/Cache, the
directory it uses when loading maps, including Steam Workshop maps. The KF2 wiki
lists this as a known Linux issue and gives the remedy as mkdir -p KFGame/Cache
inside the server install directory. fix_kf2.sh already runs post-install for
KF2, so it creates the directory there, only once KFGame exists, matching the
mkdir pattern fix_cmw.sh already uses.

Fixes the missing-cache-folder step server admins currently have to do by hand.

Affected servers: kf2

Type of change

  • Bug fix (a change which fixes an issue).

Testing

  • Source: KF2 wiki, Dedicated Server page, "Known issue on Linux servers":
    "Linux servers currently do not create the proper cache folder, you must
    create it inside your server install directory: mkdir -p KFGame/Cache".
  • I have not run a full LinuxGSM KF2 install for this change; the evidence is the
    wiki above and the production observation below, and the guard (KFGame must
    already exist) means it is a no-op on an un-installed server. Happy to add an
    install-time check if you'd like one before merge.
  • In a containerised KF2 deployment I run, the equivalent directory creation has
    been in place since 2026-10-22; across the map changes in the 75 hours after,
    the map-load segfault that had preceded it did not recur. A documented gap
    closed, not a claimed cure.
  • shellcheck: the new block follows the module's existing idiom (fixname +
    fn_fix_msg_start/fn_fix_msg_end, as in fix_cmw.sh).

Risk and rollback

  • Risk level: low
  • Rollback plan: revert the commit; the only effect is one mkdir -p on install.

Breaking changes

  • No breaking changes.

Documentation

  • No documentation update required.

This change was prepared with AI assistance and reviewed before submitting.

@github-actions github-actions Bot added the type: bugfix Pull request that fixes a bug label Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bugfix Pull request that fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant