fylsdy 发表于 2026-9-17 23:04

【搬运】空之轨迹 the 2nd 松散文件加载器

作者为:lmaple0[lmaple0/sora2looseload
功能类似于1st的:[搬运] v1.0.2c 无需python解包pac就能读取mod的.dll

作者说明:
# 空之轨迹 the 2nd 松散文件加载器

这是 [Hinkiii/sora1looseload]面向 Steam 版《空之轨迹 the 2nd》的开源适配 fork[lmaple0/sora2looseload]。适配工作基于上游提交
`04e898e369e3019d5aa2cb13a7209de39c643a4a`,遵循 MIT 许可证。

## 重要边界

- 保留 Steam 官方 `sora_2nd.exe`;本项目不会修改、替换或分发游戏 EXE。
- 不要与已经内嵌其他松散文件加载器的修改版 EXE 混用。两者会争用同一个
`InitialFileCheck` 入口,验证工具会主动拒绝这种目标。
- 语音 MOD 只需部署匹配的 `voice`、`table`/`table_sc` 与
`script`/`script_sc` 资源,本 DLL 负责从游戏根目录优先读取这些松散文件。
- DLL 不会改写 PAC,也不会改动或删除松散资源。

## 安装

1. 先通过 Steam 恢复官方 `sora_2nd.exe`。
2. 如果游戏根目录已有其他 MOD 提供的 `xinput1_4.dll`,先备份。
3. 将 `dist\xinput1_4.dll` 复制到 `sora_2nd.exe` 同目录。
4. 按游戏内部相对路径放置 MOD 文件,例如:

```text
Trails in the Sky 2nd Chapter\table_sc\t_voice.tbl
Trails in the Sky 2nd Chapter\script_sc\scena\example.dat
```

5. 完全退出并重新启动游戏后测试。

移除时删除本项目的 `xinput1_4.dll`,再恢复之前备份的同名 DLL(如果存在)。

## 日志与验证

默认不会创建日志。只有设置 `SORA2LOOSELOAD_LOG=1` 后,才会在游戏根目录
生成 `sora2looseload.log`。

```powershell
py tools\verify_target.py "C:\Program Files (x86)\Steam\steamapps\common\Trails in the Sky 2nd Chapter\sora_2nd.exe"
py tools\verify_target.py --with-log-hook "C:\Program Files (x86)\Steam\steamapps\common\Trails in the Sky 2nd Chapter\sora_2nd.exe"
py tools\verify_proxy.py dist\xinput1_4.dll
py -m unittest discover -s tools -p "test_*.py"
```

当前正式版验证目标:Steam Build ID `25340742`、文件版本 `1.3.1.0`、
`sora_2nd.exe` SHA-256:
`485EFF96B37B11860F39C2D1A7390D6C91F4046E79519A85076E1CA4CDB6B616`。

静态验证和构建成功不等于游戏内验证。新构建仍应以一个可回滚的松散文件做
实际读取测试。

**** Hidden Message *****





fylsdy 发表于 2026-9-18 11:12

本帖最后由 fylsdy 于 2026-9-20 15:24 编辑

补充说明
1.更新在链接看7楼,测试版项目的位于dist文件夹下
2.最好不要删除Trails in the Sky 2nd Chapter/pac文件夹中的文件,如果要删除最好先备份

Korangaresitown 发表于 2026-9-17 23:12

感谢,有github之类的吗

Korangaresitown 发表于 2026-9-17 23:13

前来支持

Korangaresitown 发表于 2026-9-17 23:20

这个作者是在哪里发布的?

fylsdy 发表于 2026-9-17 23:23

Korangaresitown 发表于 2026-9-17 23:20
这个作者是在哪里发布的?

https://github.com/lmaple0/sora2looseload

Geminize 发表于 2026-9-17 23:53

Korangaresitown 发表于 2026-9-17 23:20
这个作者是在哪里发布的?

https://github.com/lmaple0/sora2looseload

danecom58 发表于 2026-9-18 02:49

谢谢分享!谢谢!

charger_on 发表于 2026-9-18 07:11

66666666666666666666666666

zhang1209 发表于 2026-9-18 07:14

谢谢分享   

星空の梦 发表于 2026-9-18 08:36

111111111111111

787476390 发表于 2026-9-18 08:42

11111111111111111111111111111111

shpw 发表于 2026-9-18 08:46

:):):):):):):)

q18815235935 发表于 2026-9-18 08:47

感谢楼主分享

掌门有序 发表于 2026-9-18 09:03

111111111111111

dingjiestar 发表于 2026-9-18 10:01

感谢分享~~~~~~~~~~~

ai&无忧 发表于 2026-9-18 10:03

谢谢分享

Korangaresitown 发表于 2026-9-18 10:18

fylsdy 发表于 2026-9-17 23:23
https://github.com/lmaple0/sora2looseload

感谢,刚知道复刻仓库直接搜搜不到,要用高级搜索或者加上fork:true,难怪我昨天没搜到

Korangaresitown 发表于 2026-9-18 10:19

Geminize 发表于 2026-9-17 23:53
https://github.com/lmaple0/sora2looseload

阿里嘎多呜~

影之绊 发表于 2026-9-18 10:24

66666666666666666

fylsdy 发表于 2026-9-18 11:07

本帖最后由 fylsdy 于 2026-9-18 11:11 编辑

补充说明
1.运行前请备份Trails in the Sky 2nd Chapter/pac文件夹中的文件,不要急于删除

q361504163 发表于 2026-9-18 11:10

感谢分享

mistwalker7 发表于 2026-9-18 11:11

66666666666666

阿吃飞翔 发表于 2026-9-18 12:39

感谢分享!给你点赞!好东西,拿走了,临走顶个贴感谢一下楼主!

lol互撸娃 发表于 2026-9-18 13:25

:@:@:@:@:@

丑出新世纪 发表于 2026-9-18 14:10

直接删了pac不也行吗 以前打包工具不知道能不能用 怕有bug

丶Chocolate 发表于 2026-9-18 14:39

6666666666666666666

a717827806 发表于 2026-9-18 15:24

6666666666666666666

w1212123 发表于 2026-9-18 15:38

下来实际上

chatyalaso 发表于 2026-9-18 15:47

555555555555555555555555555555555555
页: [1] 2 3 4 5
查看完整版本: 【搬运】空之轨迹 the 2nd 松散文件加载器