残酷的植物群收获修复

收藏人数:287
点赞次数:1197
下载次数:2500
资源大小:15.5 KB

资源介绍


详细介绍

简单简介

在3DM Mod站下载上古卷轴5:重置版最新的残酷的植物群收获修复 Mod,由fox制作。yangyuebin在我们的平台上分享了这个免费且高质量的游戏模组,让玩家们可以享受到更加丰富的游戏体验。快来3DM Mod站下载并尝试吧!

详细介绍

Mod作者: fox Mod版本: 1.0 Mod大小: 15.5 KB 更新时间: 2019-07-29 15:03:00 发布时间: 2019-07-29 15:03:00

详细说明

非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 script "hook" to ObjectReference.

A modified ObjectReference script 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?) script overhead to the otherwise empty hooked events in ObjectReference.

It would need to be updated if SKSE's ObjectReference.pex script 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 script 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 script.
(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 script.

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

Data\Scripts\objectreference.pex

Data\Scripts\Source\ObjectReference.psc

And remove the following:

Data\Scripts\foxHarvestFix.pex

Data\Scripts\Source\foxHarvestFix.psc


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


文件说明

Mod截图

相关作品

The Great Old Ones 旧日支配者 | 骑士雕像 | MOD、薩冷擴展(Salem EXPANDED) V1.44 | 死或生5:最后一战 虎妈拉拉队超短裙MOD | 我的世界 造梦日记1复仇之路地图包 | 上古卷轴5:天际 熊小孩更衣插件 |

yangyuebin的其他作品

  • The Great Old Ones 旧日支配者
  • 骑士雕像
  • MOD、薩冷擴展(Salem EXPANDED) V1.44
  • 死或生5:最后一战 虎妈拉拉队超短裙MOD
  • 我的世界 造梦日记1复仇之路地图包
  • 上古卷轴5:天际 熊小孩更衣插件