下载客户端

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

2026-02-14 16:00:16

AI智能总结导读

本文为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
相关阅读
最新更新

最新更新

  • 《巫术变体:达芙妮》1.27.1版本更新内容 — 《Wizardry Variants Daphne》Ver 1.27.1更新内容 修复问题: 1. 【狂乱歌谣】技能的伤害提升 buff 重新施加时,其效果可能…
  • 《巫术变体:达芙妮》1.27.0版本更新内容 — 《Wizardry Variants Daphne》Ver 1.27.0更新内容 1. 【恶魔之歌的清算特别补给】 - 活动期间登录游戏即可领取特别补给,包括共…
  • 《巫术变体:达芙妮》1.26.1版本更新内容 — 《Wizardry Variants Daphne》Ver 1.26.1更新内容 1. 【不光彩的斗争任务】 ① 活动期间完成限时任务可获得积分,兑换特殊奖励,…
  • 《巫术变体:达芙妮》1.26.0版本更新内容 — 《Wizardry Variants Daphne》Ver 1.26.0更新内容 1.新增传说级冒险者派遣任务 - 新增传说级冒险者专属派遣任务。 - 适用传说…
  • 福德雷格迷宫,装备制作入门级 — 这不是一篇关于通关福特雷格迷宫的攻略,而是关于福特雷格装备制作的一些小见解。希望能帮助你突破瓶颈。 免责声明: 以下内容基于我目前的游戏经验。虽然花费了大量时间…
  • 等级18通关 — 重点是打最后大异形的路上先清掉小兵,之后回上阶扎营恢复体力。第二次挑战才成功……这系列真的让人血压飙升。挑战王需要完成一个特殊任务,会获得一把剑镐(头目战斗到一…
  • 《巫术:达芙妮》终极“专业”新手指南 — The Pro Starter Guide To Being an Abyss ImmortalDescription: This guide provides…
  • 达芙妮新手教程 — ダフネについて色々 ※25/4 色々変更があったので更新 ※26/1 伝説の冒険者について色々更新 前置き このゲームを運営しているドリコムという会社は一生懸命…
  • 商店代码汇编 — 有效促销代码汇总 这是什么? 可在巫术商店输入以获取奖励的代码。 如何使用? 前往巫术商店,输入你的游戏ID,然后在促销代码输入框中输入代码并兑换。 8月7日-…
  • [Linux/Proton] 修复每次启动时资产缓存重新下载的问题 — Script to fix the issue where the game re-downloads all of assets every time you…