查看: 3538|回复: 25
收起左侧

[技能属性] VATS Freeze Fix 修補生存模式下發生凍結錯誤

[复制链接]

23

主题

677

帖子

8万

积分

游戏VIP联动部

Rank: 16Rank: 16Rank: 16Rank: 16

点赞
105
贡献
112
猫币
5
精华
0
金元
52766
积分
80483
发表于 2018-5-17 02:21:34 | 显示全部楼层 |阅读模式

马上注册领取绝版勋章

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
本帖最后由 drug9_9 于 2018-5-17 02:31 编辑

原址:https://www.nexusmods.com/fallout4/mods/27674/?tab=description
修復生存模式下發生的VATS凍結錯誤。



Overview

This mod should fix the very annoying bug which causes VATS to freeze in survival mode. In the process of creating my first mod Stop The Bleeding, I accidentally discovered the cause of the VATS freezing bug and I was able to fix it by modifying the survival mode manager script. Any mods which overwrite the HC_ManagerScript.pex file will not be compatible with this mod, but I have included the source so any mod author can add the fix to their mod if they wish. This fix is already included with STB and based on feedback from several people it does seem to work, however please note that some mods can still cause the issue to occur, but this fix by its self should remove any VATS freezing issues from the vanilla game.

Mods that may cause freezing:

- Automatic eat or drink mods
- Auto-Stimpak mods


Installing

Use a mod manager and ensure that it overwrites the HC_ManagerScript.pex file or simply replace it manually. Some times it wont work on an existing save, but it should work if you disable then re-enable survival mode or start a new game. If this fix doesn't seem to work on your existing save then disable survival mode and open the console then type cgf "Game.IncrementStat" "Survival Denied" -1 which should allow you to re-enable survival mode.

How It Works

Basically what I discovered is that if the Player.EquipItem() function is called while in VATS it will cause the game to freeze up. The survival mode manager script uses the EquipItem() function to equip "potions" which apply the effects of diseases and other effects such as hunger and thirst, because consuming potions is the only way to make the effects show up in the Pip-Boy. I took this approach when creating STB to make bleeding effects show in the Pip-Boy but I noticed if I got shot in VATS it would freeze, which led me to the cause. To fix the vanilla VATS freeze bug I altered HC_ManagerScript and added a potion queue so that if VATS is active potions are added to the queue instead of being immediately consumed, so they can be safely consumed after VATS has exited, at which point you should become hungry, thirsty, tired, etc.

Info For Mod Authors

If your mod overrides HC_ManagerScript.pex it should be easy to merge the changes from this fix, you can quickly see all changes by examining the diff of the vanilla source code against the source code provided with this mod. The way I detect whether or not VATS is active in this fix is to use RegisterForMenuOpenCloseEvent("VATSMenu") and then toggle a boolean value when OnMenuOpenCloseEvent detects VATS opening or closing (credit to cdante for the tip).

IMPORTANT: If your mod adds something to the game which could cause a potion to be equipped to the player while they are in VATS then it will cause freezing and the solution probably depends on what your mod does. The approach I took with STB was to use IsMovementControlsEnabled() to check whether the player could move because movement is always disabled in VATS, and it makes sense for STB because allowing the player to take bleed damage while they cannot move isn't a great idea.

I used weapon enchantments so that a script gets fired whenever a person or creature is hit by the weapon. The script checks if the player movement is disabled and if it is it will delay equipping the potion by using a timer which checks if movement has been re-enabled periodically and when it has the potion which applies the bleeding effect is equipped. Take a look at the source code provided with STB if you want to see exactly what I did to avoid the bug being triggered by my mod.


Tools Used
Creation Kit
Notepad++









vats

vats

VATS Freeze Fix-27674-0-1-0防凍結.zip

73.61 KB, 下载次数: 975

评分

参与人数 1金元 +20 收起 理由
星辉灬 + 20 鼓励分享

查看全部评分

回复

使用道具 举报

0

主题

728

帖子

4万

积分

游戏终结者

Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15

点赞
0
贡献
1
猫币
0
精华
0
金元
3207
积分
42540
发表于 2018-5-17 03:22:18 | 显示全部楼层
感謝分享
回复

使用道具 举报

6

主题

945

帖子

5万

积分

游戏VIP联动部

Rank: 16Rank: 16Rank: 16Rank: 16

点赞
22
贡献
29
猫币
0
精华
0
金元
32883
积分
55153
发表于 2018-5-17 10:37:00 | 显示全部楼层
没看 明白啊
回复

使用道具 举报

8

主题

349

帖子

3万

积分

游戏终结者

Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15

点赞
81
贡献
68
猫币
0
精华
0
金元
11691
积分
31170
发表于 2018-5-17 16:56:01 | 显示全部楼层
所谓冻结错误是指什么??
回复

使用道具 举报

0

主题

929

帖子

3万

积分

游戏终结者

Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15

点赞
56
贡献
0
猫币
0
精华
0
金元
15577
积分
33166
发表于 2018-5-19 03:57:13 | 显示全部楼层
真的有用吗?试试看,反正被V模式恶心死了。不定时的卡主死机。。
回复

使用道具 举报

1

主题

823

帖子

1万

积分

游戏之神

Rank: 14Rank: 14Rank: 14Rank: 14

点赞
0
贡献
2
猫币
0
精华
0
金元
9275
积分
16518
发表于 2018-6-10 09:24:09 | 显示全部楼层
抱拳儿了哥
回复

使用道具 举报

85

主题

838

帖子

10万

积分

玖大猫MOD汉化组

Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15

点赞
1045
贡献
1017
猫币
0
精华
0
金元
45355
积分
109578
发表于 2018-6-22 17:03:31 | 显示全部楼层
居然有人发现了屏幕冻结的原因, 太好了, 试下.
回复

使用道具 举报

0

主题

50

帖子

2188

积分

高级玩家

Rank: 4

点赞
0
贡献
0
猫币
0
精华
0
金元
938
积分
2188
发表于 2018-6-25 16:30:31 | 显示全部楼层
感谢,希望有用
回复

使用道具 举报

0

主题

55

帖子

4622

积分

游戏达人

Rank: 8Rank: 8

点赞
0
贡献
0
猫币
0
精华
0
金元
1367
积分
4622
发表于 2018-6-27 13:04:05 | 显示全部楼层
试一下 感谢
回复

使用道具 举报

4

主题

221

帖子

1万

积分

游戏之神

Rank: 14Rank: 14Rank: 14Rank: 14

点赞
0
贡献
8
猫币
0
精华
0
金元
5408
积分
16209
发表于 2018-6-27 17:39:30 | 显示全部楼层
插眼,等小白鼠
回复

使用道具 举报

1

主题

329

帖子

8万

积分

不死鸟神教

Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15

点赞
27
贡献
13
猫币
0
精华
0
金元
46208
积分
83882

艾米丽娅纪念勋章雷姆纪念勋章

发表于 2018-6-28 13:31:03 | 显示全部楼层
试一下看看 V模式主打常常死机
回复

使用道具 举报

0

主题

232

帖子

3442

积分

超级玩家

Rank: 6Rank: 6

点赞
0
贡献
0
猫币
0
精华
0
金元
2010
积分
3442
发表于 2018-8-19 15:33:03 | 显示全部楼层
求一下,这个怎么用啊?
回复

使用道具 举报

0

主题

125

帖子

5463

积分

游戏精英

Rank: 9Rank: 9Rank: 9

点赞
0
贡献
0
猫币
0
精华
0
金元
4538
积分
5463
发表于 2018-9-14 23:02:01 | 显示全部楼层
感谢分享
回复

使用道具 举报

42

主题

1300

帖子

6万

积分

游戏VIP联动部

Rank: 16Rank: 16Rank: 16Rank: 16

点赞
0
贡献
184
猫币
0
精华
0
金元
31615
积分
65055
发表于 2018-11-23 17:36:37 | 显示全部楼层
谢谢 被我找到了
回复

使用道具 举报

0

主题

1792

帖子

2万

积分

游戏之神

Rank: 14Rank: 14Rank: 14Rank: 14

点赞
10
贡献
0
猫币
0
精华
0
金元
19459
积分
21351
发表于 2019-1-24 18:01:22 | 显示全部楼层
666666666
回复

使用道具 举报

0

主题

485

帖子

1万

积分

游戏之神

Rank: 14Rank: 14Rank: 14Rank: 14

点赞
2
贡献
2
猫币
120
精华
0
金元
14073
积分
14688
发表于 2019-4-16 21:13:10 | 显示全部楼层
感谢兄弟,上n网找了半天因为看不懂英文没敢下载,你这给明确内容了我就放心了
回复

使用道具 举报

0

主题

285

帖子

2189

积分

高级玩家

Rank: 4

点赞
1
贡献
0
猫币
0
精华
0
金元
1294
积分
2189
发表于 2019-8-31 21:57:18 | 显示全部楼层
非常感谢
回复

使用道具 举报

0

主题

196

帖子

10万

积分

游戏VIP联动部

Rank: 16Rank: 16Rank: 16Rank: 16

点赞
0
贡献
0
猫币
0
精华
0
金元
100682
积分
100878
发表于 2020-3-3 21:07:41 | 显示全部楼层
因为这个至少损失了20多个小时的进度
回复

使用道具 举报

3

主题

643

帖子

2836

积分

高级玩家

Rank: 4

点赞
0
贡献
6
猫币
0
精华
0
金元
2133
积分
2836
发表于 2020-3-12 03:18:35 | 显示全部楼层
佩服!佩服!威武555555555555555555
回复

使用道具 举报

5

主题

875

帖子

1万

积分

游戏之神

Rank: 14Rank: 14Rank: 14Rank: 14

点赞
33
贡献
32
猫币
0
精华
0
金元
15242
积分
16657
发表于 2020-4-20 13:25:18 | 显示全部楼层
so good
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|玖大猫论坛

GMT+8, 2025-3-1 20:55

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.