MOD介绍:
这个小模型是我努力弄清楚游戏如何在Creation Club的生存模式DLC中实现特定功能的努力的结晶。
有问题的特征是你必须睡觉才能升级,并且升级菜单会在睡觉后自动打开。
我希望将这个功能包含在我正在处理的另一个模块中,但我无法在生存模式脚本中找到与之相关的任何内容,这让我很难过。
我确信他们将这个功能融入了.exe,这意味着它实际上并不是生存模式的一部分,而是一个仅由生存模式激活的隐藏功能。
经过多次试验和错误,我已经确认了我的假设,并想出了如何欺骗游戏来启用此功能。
因此,我向你呈现生存欺骗。
安装此mod后,“生存模式”复选框将出现在游戏设置菜单中。
默认情况下将启用该选项,因此您无法在不睡觉的情况下升级。
切换似乎完全正常(如果禁用它,您将能够正常升级)。
TL; DR:
- 这个mod不包含任何生存模式
- 您不需要安装生存模式
- 它所做的就是欺骗游戏思考生存模式的安装
- 您将无法访问任何生存模式功能(“睡眠升级”除外)
技术细节:
我发现游戏使用默认对象管理器来查找三个全局变量,告诉它启用生存模式复选框,以及是否启用了mod。通常,生存模式的主要脚本有一堆函数,它们根据不同的条件设置这些全局变量,但实际上并不是必需的。我只是创建了一个新的插件,创建了三个全局变量,将它们全部设置为值1,并将它们插入默认对象管理器以对应三个生存模式检查。这样可以让游戏启用复选框并启用任何生存模式功能,这些功能都会被烘焙到.exe中(AFAIK,睡眠升级是唯一的)。听起来很简单,但是男孩做了这件事让我很头疼。
——————————————————————————————————————————————————
This small mod is the culmination of my efforts attempting to figure out how the game implements a particular feature in the Creation Club's Survival Mode DLC.
The feature in question being how you must sleep in order to level-up, and that the level-up menu will automatically open after sleeping.
I wanted to include this functionality in another mod I am working on, but I was unable to find ANYTHING relating to it in the Survival Mode scripts, which stumped me.
I became convinced that they baked this feature into the .exe, which means it's not actually part of Survival Mode, but a hidden feature that is only activated by Survival Mode.
After much trial and error, I have confirmed my hypothesis, and figured out how to trick the game into enabling this functionality.
Thus, I present to you Survival Spoof.
With this mod installed, the Survival Mode checkbox will appear in your game settings menu.
The option will be enabled by default, so you won't be able to level up without sleeping.
The toggle seems to be fully working (if you disable it, you'll be able to level up normally).
TL;DR:
-This mod does NOT contain anything from Survival Mode
-You do NOT need Survival Mode installed
-All it does is trick the game into thinking Survival Mode is installed
-You will NOT have access to any Survival Mode features (other than "sleep to level-up")
Technical Details:
I figured out that the game uses the default object manager to look for three global variables which tell it to enable the Survival Mode checkbox, and whether or not the mod is enabled. Normally, the main script of Survival Mode has a bunch of functions which set these global variables depending on various conditions, but none of it is actually necesssary. I simply made a new plugin, created three global variables, set all of them to a value of 1, and plugged them into the default object manager to correspond to the three survival mode checks. This tricks the game into enabling the checkbox and turning on any survival mode features baked into the .exe (AFAIK, the sleeping to level up is the only one). Sounds simple, but boy did it take me a lot of headache to figure out.
资源查找:
回复区
昵称:
邮箱:
内容: