下载客户端

[Linux/Proton] 修复每次启动时资产缓存重新下载的问题

2026-02-14 16:00:16

导读

本文为Linux系统下通过Proton运行《Wizardry Variants Daphne》时,每次启动重新下载资产缓存的问题提供修复方案。该问题因游戏启动时删除缓存文件夹导致,可通过bash脚本在启动时将缓存文件夹设为只读,规避删除后恢复权限,还分Flatpak和原生Steam用户给出详细操作步骤。

Script to fix the issue where the game re-downloads all of assets every time you launch the game on Linux with Proton. The Problem If you're playing Wizardry Variants Daphne on Linux through Proton, you may have noticed that the game re-downloads ALL of its asset cache every single time you launch it. This is caused by a bug(?) where the game deletes its entire asset cache folder during startup before it can be used. This guide provides a working fix using a simple bash script that protects the cache during the critical deletion period. Solution Overview The fix works by: Temporarily setting the asset cache folder to read-only when the game launches Waiting for the deletion period to pass Automatically restoring write permissions so the game can start normally The entire process is automatic as we set steam launch options to launch the script whenever we launch the game. Instructions This is a bit different depending on if you are using native steam or flatpak. a) Instructions for Flatpak Steam Users Step 1: Create the Script Directory Open a terminal and run: mkdir -p ~/.var/app/com.valvesoftware.Steam/scripts Step 2: Create the Fix Script Create the script file: nano ~/.var/app/com.valvesoftware.Steam/scripts/daphne_fix.sh(Or whatever editor you prefer) Paste this code: #!/bin/bash CACHE_DIR="$HOME/.local/share/Steam/steamapps/compatdata/2379740/pfx/drive_c/users/steamuser/AppData/LocalLow/drecom/WizardryVariantsDaphne/assetcache" # Lock recursively if folder exists if [ -d "$CACHE_DIR" ]; then # Lock directories to 555 and files to 444 using xargs for speed find "$CACHE_DIR" -type d -print0 | xargs -0 -P 4 chmod 555 find "$CACHE_DIR" -type f -print0 | xargs -0 -P 4 chmod 444 fi # Wait 15 seconds sleep 15 # Unlock recursively if [ -d "$CACHE_DIR" ]; then # Restore normal permissions using xargs for speed find "$CACHE_DIR" -type d -print0 | xargs -0 -P 4 chmod 755 find "$CACHE_DIR" -type f -print0 | xargs -0 -P 4 chmod 644 fi Save and exit. Step 3: Make the Script Executable chmod +x ~/.var/app/com.valvesoftware.Steam/scripts/daphne_fix.sh Step 4: Add to Steam Launch Options Open Steam Go to your Library Right-click on "Wizardry Variants Daphne" Select Properties In the Launch Options field, enter: $HOME/scripts/daphne_fix.sh & %command% Close the Properties window Important: When Steam Launch Options use $HOME in Flatpak, it refers to the Flatpak's sandboxed home directory (~/.var/app/com.valvesoftware.Steam/), which is why the process is a bit different from native. b) Instructions for Native Steam Users Note: This is a general guide and might need adjusting depending on how you installed steam, but since you don't have to deal with sandboxed env you can put files wherever you want as long as you remember to adjust the paths in the script and steam launch arguments. Step 1: Create the Script Directory Open a terminal and run: mkdir -p ~/scripts Step 2: Create the Fix Script Create the script file: nano ~/scripts/daphne_fix.sh Paste this code (note the different CACHE_DIR path): #!/bin/bash CACHE_DIR="$HOME/.local/share/Steam/steamapps/compatdata/2379740/pfx/drive_c/users/steamuser/AppData/LocalLow/drecom/WizardryVariantsDaphne/assetcache" # Lock recursively if folder exists if [ -d "$CACHE_DIR" ]; then # Lock directories to 555 and files to 444 using xargs for speed find "$CACHE_DIR" -type d -print0 | xargs -0 -P 4 chmod 555 find "$CACHE_DIR" -type f -print0 | xargs -0 -P 4 chmod 444 fi # Wait 15 seconds sleep 15 # Unlock recursively if [ -d "$CACHE_DIR" ]; then # Restore normal permissions using xargs for speed find "$CACHE_DIR" -type d -print0 | xargs -0 -P 4 chmod 755 find "$CACHE_DIR" -type f -print0 | xargs -0 -P 4 chmod 644 fi Note: The only difference from Flatpak is the CACHE_DIR used. Save and exit. Step 3: Make the Script Executable chmod +x ~/scripts/daphne_fix.sh Step 4: Add to Steam Launch Options Open Steam Go to your Library Right-click on "Wizardry Variants Daphne" Select Properties In the Launch Options field, enter: $HOME/scripts/daphne_fix.sh & %command% Close the Properties window Technical Details The bug occurs because something (likely the anticheat) systematically deletes all files in the assetcache folder during game startup. The fix: Sets all directories to 555 (read + execute, no write) Sets all files to 444 (read-only) This prevents deletion while still allowing the game to read cached assets After 15 seconds (past the danger zone in my testing), permissions are restored to normal (755 for dirs, 644 for files)

评论

共0条评论
face
inputImg
相关阅读
最新更新

最新更新