Repository navigation
fix(kf2): create the KFGame/Cache map-load directory on install - #5108
Conversation
…ll (#5108) This reverts commit bd08aff. On the current KF2 server build (10897) the server creates KFGame/Cache itself when it first downloads a Workshop item, so the directory is not missing. The map-load crash comes from starting directly on a Workshop map that has not been downloaded yet, which this change does not affect.
|
Thanks for the PR and for the clear write-up. I merged this a little early, then finished testing it on a test server with a fresh kf2server install, and I've reverted it in c763125. On the current server build (10897), the game creates The crash I could reproduce comes from setting a Workshop map as the starting map before the server has downloaded it. In that case it aborts at We'll add the "start on a stock map first" tip to the docs instead. Thanks again for looking into it. |
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
Checklist
PR will not be merged until all steps are complete.
This change was prepared with AI assistance and reviewed before submitting.