直接讀寫 MessagePack 格式存檔,繞過 Unity IL2CPP 反射,100% 可靠。
- 📋 檢視 Profile 與 Run 存檔(已遞迴解碼巢狀 Payload)
- 💰 修改金幣:直接設定 CurrentShards 數值
- ⚡ 一鍵全滿:等級/XP/BonusTokens/金幣/難度全部拉滿
- 🔧 自訂修改:設定任意 key 的值,支援巢狀路徑
- 💾 自動備份:每次修改前自動備份為
.bak
- Python 3.10+
pip install msgpack rich
pip install msgpack rich存檔被遊戲鎖住,一定要先關閉遊戲才能修改。
python save_editor.py show both
python save_editor.py show profile
python save_editor.py show runpython save_editor.py gold 99999python save_editor.py maxall# 修改 Run 檔案
python save_editor.py run CurrentShards 99999
python save_editor.py run DifficultyIndex 8
# 修改 Profile 檔案
python save_editor.py profile CurrentLevel 99
python save_editor.py profile BonusTokens 999修改完必須重啟遊戲才會生效。
自動找:
C:\Users\edmun\AppData\LocalLow\Leyline\Guildrun\Saves\steam-<你的SteamID>\
├── Profile ← 跨 Run 進度(等級/XP/BonusTokens)
├── Run ← 當前 Run 資料(金幣/HP/章節/遺物)
└── steam_autocloud.vdf
可手動指定:
python save_editor.py --save-dir "D:\path\to\Save" gold 99999| Key | 說明 |
|---|---|
CurrentLevel |
等級 (Int) |
CurrentXP |
經驗值 (Int) |
BonusTokens |
Bonus 代幣 (Int) |
TotalStartedRuns |
開始 Run 數 (Int) |
TotalRunsBeaten |
通關 Run 數 (Int) |
HighestDifficultyBeaten |
最高通關難度 (Int) |
MetaProgressionVersion |
Meta 進度版本 (Int) |
Run 檔案的 Payload 是巢狀 MessagePack:
| Key | 說明 |
|---|---|
PlayerDataDto.CurrentShards |
金幣 (Int) |
PlayerDataDto.AccumulatedShards |
累積金幣 (Int) |
PlayerDataDto.IsPlayerDefeated |
玩家是否死亡 (Bool) |
PlayerDataDto.IsStabilizerActive |
穩定器啟用 (Bool) |
PlayerDataDto.ActiveRelics |
持有遺物 (Dict) |
DifficultyDto.DifficultyIndex |
難度 (Int) |
RunSessionDto.CurrentAct |
當前 Act |
RunSessionDto.CurrentFloor |
當前樓層 |
存成 guildrun.bat:
@echo off
cd /d %~dp0
set PYTHONIOENCODING=utf-8
python save_editor.py %*之後用:
guildrun gold 99999
guildrun maxall
每次修改前自動建立 .bak:
Profile ← 目前檔案
Profile.bak ← 上次修改前的備份
要還原:
cp Profile.bak Profile- 格式:MessagePack (含巢狀)
- 編碼:UTF-8 (用
use_bin_type=True) - 依�:僅
msgpack+rich(可選) - 解碼策略:自動解碼
Run.Payload內層巢狀 MessagePack
MIT
| 倉庫 | 用途 |
|---|---|
| Guildrun-MOD-Core | 模組核心 |
| Guildrun-MOD-TraditionalChinese | 繁中補強 |
| Guildrun-MOD-Tools | 遊戲內控制台 |
| Guildrun-SaveEditor ← 本倉庫 | Python 存檔編輯器 |