会员登录

自动登录   |    忘记密码 新会员注册

残酷的植物群收获修复

作者:fox
发布:yangyuebin
发布日期:2019-07-29 15:03:00
更新时间:2019-07-29 15:03:00
头像
1197
287 人收藏
2492 次下载
9730 次浏览
1.0
上古卷轴5:重置版
本地下载 高速下载 需要优先下载下载器,50%提速

非SE版本

这些文件实际上应该可以在原始的Skyrim中使用。


要求

需要SKSE64:https://skse.silverlock.org


用法

像往常一样收获植物。


附加信息

天际有一个恼人的错误,收获的植物在加载保存游戏时不会重生。

以下mod页面详细介绍了这一点:

bluedanieru的Flora Respawn Fix

wiseman303的植物修复(仅限OG天际?)

wiseman303写了一篇技术细节文章,更详细地解释了这些修复工作原理。


Brutal Flora Harvest Fix采用不同的方法 - 将脚本“钩子”附加到ObjectReference。


修改后的ObjectReference脚本将单个函数调用插入以下每个事件中:

OnActivate  - 存储我们的上一个收获时间(到一个新的浮点值)。

OnCellAttach  - 修复超过3天前收获的任何参考文献。

插入的调用首先检查SKSE的本机IsHarvested函数,以查看是否需要任何工作。


这有一些优点:

它与游戏中的任何可收获物体,香草或改性物都普遍兼容。

它可以追溯现有的保存,也可以随时安全地卸载。

它是轻量级的,任何引用的OnCellAttach钩子每次保存负载只会触发一次。

它非常友好,因为它没有为任何其他事件注册任何引用。

与其他收获修复一样,它将收获再生与细胞重置分离。


还有一些缺点:

它仅适用于单元格更改后(由于OnCellAttach事件的性质)。

它为ObjectReference中的其他空挂钩事件添加了(可忽略的?)脚本开销。

如果SKSE的ObjectReference.pex脚本发生了变化(它已经不存在多年),则需要更新它。

OnCellAttach挂钩可能在使用null表单的引用上失败,将错误转储到Papyrus日志。

(这似乎无害,因为默认的OnCellAttach事件无论如何都会为空)

在某些极少数情况下,可能会错过更新引用的网格(请参阅脚本源)。

它仍然不像原生SKSE插件那样干净......


可以通过编辑foxHarvestFix.psc并重新编译脚本来更改重新生成的时间(定义为3天)。

(对不起,这并不容易!试图支持在游戏中调整这个感觉有点过于复杂)


兼容性

应与任何不能替代SKSE的ObjectReference.pex脚本的东西兼容。


卸载步骤

只需将以下内容替换为SKSE的原始文件:

数据\脚本\ objectreference.pex

数据\脚本\来源\ ObjectReference.psc

并删除以下内容:

数据\脚本\ foxHarvestFix.pex

数据\脚本\来源\ foxHarvestFix.psc


随时可以安全地从保存中卸载;不需要保存清除。

——————————————————————————————————————————————
Non-SE Version
These files should actually work in original Skyrim as-is.

Requirements
Requires SKSE64: https://skse.silverlock.org

Usage
Just harvest plants as usual.

Additional Information
Skyrim has an annoying bug where harvested plants don't respawn when loading a save game.
This is covered in great detail on the following mod pages:
bluedanieru's Flora Respawn Fix
wiseman303's Flora Fixes (OG Skyrim only?)
wiseman303 wrote a Technical Details article explaining in more detail how these fixes worked.

Brutal Flora Harvest Fix takes a different approach - attaching a s cript "hook" to ObjectReference.

A modified ObjectReference s cript inserts a single function call into each of the following events:

OnActivate - to store our last harvest time (into a single new float value).

OnCellAttach - to fix any references last harvested more than 3 days ago.

The inserted calls first check SKSE's native IsHarvested function to see if any work is required.

This has some advantages:

It is universally compatible with any harvestable object in the game, vanilla or modded.

It is retroactive on existing saves, and may also be safely uninstalled at any time.

It is lightweight, with any reference's OnCellAttach hook only firing once per save load.

It is bloat-friendly, as it does not register any references for any additional events.

Like other harvest fixes, it decouples harvest respawning from cell resets.


And also some disadvantages:

It only applies after a cell change (due to the nature of the OnCellAttach event).

It adds a (negligible?) s cript overhead to the otherwise empty hooked events in ObjectReference.

It would need to be updated if SKSE's ObjectReference.pex s cript ever changes (it hasn't in years).

The OnCellAttach hook can fail on references with null forms, dumping an error to Papyrus log.

(This seems harmless as the default OnCellAttach event would otherwise be empty anyway)

In certain rare cases, it's possible to miss updating a reference's mesh (see s cript source).

It's still not as clean as a native SKSE plugin could be...


Respawn time (def. 3 days) may be changed via editing foxHarvestFix.psc and recompiling the s cript.
(Sorry this isn't easier! Trying to support adjusting this in-game felt a little too complicated)

Compatibility
Should be compatible with anything that doesn't also replace SKSE's ObjectReference.pex s cript.

Uninstall Steps
Simply replace the following with SKSE's original files:

Data\s cripts\objectreference.pex

Data\s cripts\Source\ObjectReference.psc

And remove the following:

Data\s cripts\foxHarvestFix.pex

Data\s cripts\Source\foxHarvestFix.psc


Should be safe to uninstall from saves at any time; no save cleaning necessary.


原贴地址
1.版本号: 1.0   更新时间: 2019-07-29 15:21:25

评论
暂未开放,敬请期待
ta的精品
logo

残酷的植物群收获修复


Mod大小:15.5 KB
上传时间:2019-07-29 15:03:00

Mod简介:

暂无更多介绍


closeAD