Repository navigation
fix(kf2): create the KFGame/Cache map-load directory on install - #5108
Open
heyvaldemar wants to merge 1 commit into
Open
heyvaldemar wants to merge 1 commit into
heyvaldemar wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Killing Floor 2 Linux dedicated server does not create
KFGame/Cache, thedirectory 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/Cacheinside the server install directory.
fix_kf2.shalready runs post-install forKF2, so it creates the directory there, only once
KFGameexists, matching themkdirpatternfix_cmw.shalready uses.Fixes the missing-cache-folder step server admins currently have to do by hand.
Affected servers: kf2
Type of change
Testing
"Linux servers currently do not create the proper cache folder, you must
create it inside your server install directory:
mkdir -p KFGame/Cache".wiki above and the production observation below, and the guard (
KFGamemustalready 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.
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.
fixname+fn_fix_msg_start/fn_fix_msg_end, as infix_cmw.sh).Risk and rollback
mkdir -pon install.Breaking changes
Documentation
This change was prepared with AI assistance and reviewed before submitting.