|
|
本帖最后由 上游之月 于 2025-9-19 09:12 编辑
转自n网:https://www.nexusmods.com/borderlands4/mods/59
A lightweight, Python-based save editor for BL4. Export saves to YAML, edit values, and write them back safely. No EXEs included — run it your way.
一个轻量级的、基于 Python 的 BL4 保存编辑器。导出保存到 YAML,编辑值,然后安全地写回它们。不包括 EXE - 按照您的方式运行。
bl4_save_editor (Epic and Steam)
bl4_save_editor(史诗和蒸汽)
A lightweight, Python-based save editor for BL4. Export saves to YAML, edit values, and write them back safely. No EXEs included — run it your way.
一个轻量级的、基于 Python 的 BL4 保存编辑器。导出保存到 YAML,编辑值,然后安全地写回它们。不包括 EXE - 按照您的方式运行。
requirements: 要求:
# Make sure Python and pip are available
# 确保 Python 和 pip 可用
python --version python --版本
pip --version pip --版本
# Install required dependencies
# 安装所需的依赖项
pip install "pyyaml>=6.0" "typer>=0.12.3" "rich>=13.7.1" "pydantic>=2.7.0" "pycryptodome>=3.15.0"
pip install “pyyaml>=6.0” “typer>=0.12.3” “rich>=13.7.1” “pydantic>=2.7.0” “pycryptodome>=3.15.0”
# BL4 Save Editor (WIP)
# BL4 保存编辑器 (WIP)
Edit and inspect BL4 character saves via a simple, script-friendly workflow — no bundled EXEs. You control your environment, run it locally, and customize as you like.
通过简单、脚本友好的工作流程编辑和检查 BL4 字符保存 - 没有捆绑的 EXE。您可以控制您的环境,在本地运行它,并根据需要进行自定义。
> **Back up your saves first.** This tool directly reads/writes save files; always keep a manual backup before making changes.
> **先备份您的保存。** 该工具直接读取/写入保存文件;在进行更改之前,请务必保留手动备份。
---
## Features (initial scope)
## 功能(初始范围)
- Read a BL4 save and export to human-readable YAML.
- 读取 BL4 保存并导出为人类可读的 YAML。
- Modify character props (levels, XP), skills, and progression nodes.
- 修改角色道具(等级、经验值)、技能和进度节点。
- Write changes back to a valid save file.
- 将更改写回有效的保存文件。
- Designed for CLI/automation; no GUI required.
- 专为 CLI/自动化而设计;无需 GUI。
**Example YAML (excerpt):**
**示例 YAML(摘录):**
```yaml '''yaml
class: Char_DarkSiren 等级:Char_DarkSiren
char_name: Vex char_name:韦克斯
player_difficulty: Hard player_difficulty:硬
experience: 经验:
- type: Character - 类型:角色
level: 50 等级:50
points: 3430227 积分:3430227
- type: Specialization - 类型:专业化
level: 57 等级:57
points: 6863836 积分:6863836
progression: 级数:
graphs: 图:
- name: Progress_DarkSiren_ActionSkills
- 名称:Progress_DarkSiren_ActionSkills
group_def_name: ProgressGroup_DarkSiren
group_def_name:ProgressGroup_DarkSiren
nodes: 节点:
- name: Phase Echo
- 名称:Phase Echo
is_activated: true is_activated:true
- name: Progress_DarkSiren_ActionSkill_Modifiers_PhaseShard
- 名称:Progress_DarkSiren_ActionSkill_Modifiers_PhaseShard
group_def_name: ProgressGroup_DarkSiren
group_def_name:ProgressGroup_DarkSiren
nodes: 节点:
- name: Wither - 姓名:凋灵
is_activated: true is_activated:true
activation_level: 1 activation_level:1
- name: Banshee Wail
- 姓名:Banshee Wail
is_activated: true is_activated:true
- name: Wake the Dead
- 名称:Wake the Dead
is_activated: true is_activated:true
- name: Progress_DS_Trunk_Domination
- 名称:Progress_DS_Trunk_Domination
group_def_name: ProgressGroup_DarkSiren
group_def_name:ProgressGroup_DarkSiren
nodes: 节点:
- name: Phase Bullets
- 名称:Phase Bullets
points_spent: 2 points_spent:2
Important references: 重要参考资料:
https://github.com/glacierpiece/borderlands-4-save-utility - Used some keys and gun decoder references.
https://github.com/glacierpiece/borderlands-4-save-utility - 使用了一些按键和枪支解码器参考。
First version of the file, expect bugs.
文件的第一个版本,预计会有错误。
|
评分
-
1
查看全部评分
-
|