注意:这是一个非官方补丁。《From The Caves》的所有功劳归于其作者 mininotprime。
《From The Caves Patch》修复了《From The Caves》中的卡顿、内存泄漏以及若干 bug。
该模组最初仅适用于 FTC 0.6.926,但现在它将随 FTC 同步更新。
本模组的描述将会频繁更改。
性能修复
- 十字架和神父仅在已加载的区块中搜索村庄,而非搜索最远 128 个区块的范围。此功能可在配置文件中关闭。
- 愤怒系统不再每刻扫描玩家周围以检查其是否在房屋内。
- 躲在柱子后面的怪物每秒寻找一次生成点,而非每刻都找。其生成频率与之前保持一致。
- 紧张度系统不再读取玩家进入的每个新区块中的所有方块。
- 矿洞环境音效不再每 30 秒读取附近区块中的每一个方块。
- 靠近方块的触发事件(如铁砧、箱子、拉杆等)不再在同一刻扫描玩家周围区域。
内存修复
- 清理了玩家登出或服务器停止时遗留的《From The Caves》数据,例如猫、掉落物和事件冷却状态。其中部分数据曾导致玩家在离开世界后旧世界仍保留在内存中。
Bug 修复
- 被驯服的猫现在不再参与猫相关事件,因此不会四处乱跑。
- 修复了在 NeoForge 上紧张度积累速度过快的 Bug,原因是每个区块都被错误地视为包含一个十字架。
- 《From The Caves》的事件日志文件默认已关闭,因为它未被清除且持续增大。如果你仍希望启用事件日志,配置文件中也提供了每次启动时清空日志的选项。
配置文件
你可以在配置文件中关闭《From The Caves》的大部分恐怖事件。
Note: This is an unofficial patch. All credit for From The Caves goes to its author, mininotprime.
From The Caves Patch fixes lag, memory leaks, and a few bugs in From The Caves.
This mod was originally only for FTC 0.6.926 but now it will continue to update alongside FTC.
This mod's description will change often.
Performance fixes
- The cross chest and the priest only look for villages in loaded chunks, instead of searching up to 128 chunks away. This can be turned off in the config.
- The anger system no longer scans around a player every tick to check if they are inside a house.
- The mob that hides behind pillars looks for a spawn spot once a second instead of every tick. It still spawns as often as before.
- The tension system no longer reads every block of each new chunk a player walks into.
- Mineshaft ambience no longer reads every block in nearby chunks every 30 seconds.
- Events near blocks (anvils, chests, levers, etc.) no longer scan around a player on the same tick.
Memory fixes
- Cleaned up From The Caves' leftover data when a player logs out or the server stops, like cats, dropped items and event cooldowns. Some of it used to keep the old world in memory after a player left it.
Bug fixes
- Tamed cats are now left out of cat events, so they don't run off.
- Fixed tension building twice as fast on NeoForge due to every chunk counting as if it had a cross in it.
- From The Caves' event log file is turned off by default because it did not get cleared and kept growing. There is also an option to clear it on every start, if you still want the event log.
Config
You can turn off most of From The Caves' horror events in the config.
下载 From The Caves Patch
下载 From The Caves Patch
下载 From The Caves Patch
下载 From The Caves Patch
下载 From The Caves Patch
v2.0
来自洞穴补丁 2.0 已发布。
经过一番劝说,我决定继续将《来自洞穴补丁》更新至 FTC 的新版本。
该模组最初仅适用于 FTC 0.6.926,但现在它将随 FTC 一起持续更新。此版本当前支持 From The Caves 0.7.75。
FTC Patch 获得了大量代码改进,并且随着 FTC 支持多个版本,它已被重构为基于石切器(Stonecutter)和 Architectury API 的项目结构。
以下是更新日志:
移除了所有适用于 FTC 0.6 的旧代码。
性能修复
- 交叉胸像和牧师现在仅在已加载的区块中搜索村庄,而不是在距离达 128 个区块的范围内搜索。此功能可在配置文件中关闭。
- 愤怒系统不再每刻扫描玩家周围以检查其是否位于房屋内。
- 躲在柱子后面的生物现在每秒寻找一次生成位置,而不是每刻都寻找。其生成频率与之前相同。
- 紧张系统不再读取玩家进入的每个新区块中的每一个方块。
- 矿洞环境音效不再每隔 30 秒读取附近区块中的每一个方块。
- 靠近方块的音效(如铁砧、箱子、拉杆等)不再在同一刻扫描玩家周围。
内存修复
- 清理了玩家登出或服务器停止时 From The Caves 遗留的数据,例如猫、掉落物品和事件冷却时间。其中部分数据曾在玩家离开世界后使旧世界保留在内存中。
错误修复
- 被驯服的猫现在不会参与猫相关事件,因此它们不会再跑掉。
- 修复了在 NeoForge 上紧张值积累速度过快的问题,原因是每个区块都被误判为包含一个交叉胸像。
- From The Caves 的事件日志文件默认已关闭,因为它此前未被清除且持续增大。如果你仍希望保留事件日志,现在也可以在每次启动时选择清空它。
v1.4.0 修复了若干错误。
修正了错误的键类型:FTCLeakFixer.java:130 现在使用 getStringUUID()。
修正了客户端触发问题:onEntityLeave 调用 getLevel()。
修复了初始化竞争条件:FTCLeakFixer 和 FTCConfigReader 中的 init() 均为私有静态同步方法,标志位设置在最后。同时改用 Class.forName(name, false, loader),使得 FTC 的静态初始化器不再在事件触发的任意线程上运行,且两者均捕获 LinkageError 与 ClassNotFoundException。
添加了缺失的映射:在方块破坏时添加了 windowCooldowns、torchCooldowns、noteBlockCooldowns、trapdoorCooldowns、chestCooldowns、lockedChests、jumpscareReadyChests,在登出时添加了 activeJumpscares。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧