Project Zomboid

Project Zomboid

67 个评价
自定义发电机
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
159.316 KB
2023 年 8 月 18 日 上午 11:15
2023 年 9 月 3 日 上午 4:55
5 项改动说明 ( 查看 )

订阅以下载
自定义发电机

描述
注意
如果你在9月3日之前安装了此mod,在更新mod之后需要重新执行安装流程,否则可能会导致新功能无效。

功能
支持通过沙盒配置,应用于所有发电机。
  • 半径,1-100,原版为20。
  • 楼层距离,0-8,原版为3,0代表只在当前楼层生效。解释: 例如地面或者说1楼为level=0,在原始版本中将发电机放在5楼(level=4)地板,发电范围为2楼(level=1)到8楼(level=7),地面没有电力。
  • 最大油量,10-1000,原版为100。在发电机信息面板可以看到当前油量,例如设置最大油量为200,充满油后显示200%
  • 为了真实性考虑不允许设置太大,未来会以其他方式支持超大设置的发电机。

安装方法(非常重要)
由于需要改动系统功能,与一般mod不同,此mod的安装需要执行以下操作。
如果你不知道如何找到僵尸毁灭工程的根目录,在Steam上点击 库->右键僵尸毁灭工程->属性->已安装文件->浏览 打开僵尸毁灭工程的根目录,例如D:\Steam\steamapps\common\ProjectZomboid或者E:\SteamLibrary\steamapps\common\ProjectZomboid(如果你将游戏移动到E盘),那么steamapps之前的目录为Steam根目录。
如何安装
  • 关闭僵尸毁灭工程
  • 订阅此mod
  • 等待mod下载完成
  • 打开 ${Steam根目录}\steamapps\workshop\content\108600\3022147060\mods\GreaterRangeGenerator
  • 复制 zombie 文件夹
  • 打开 ${Steam根目录}\steamapps\common\ProjectZomboid
  • 粘贴并选择覆盖或者替换文件,会有名为 IsoGenerator.class 和 IsoChunk.class 以及更多的文件被覆盖
  • 启动僵尸毁灭工程
  • 启用mod并启动游戏

如何卸载
你可以选择在安装之前备份 zombie 文件夹,或者按照一下步骤。
  • 在Steam上点击 库->右键僵尸毁灭工程->属性->已安装文件->验证游戏文件的完整性
  • 取消订阅此mod
此方法会重新下载安装过程中被覆盖的文件。注意如果有其他mod也是通过类似的方法安装,此卸载方式可能会让他们一起失效,可以选择备份 zombie 文件夹的方式来卸载。

支持模式
  • 在41.78单机模式中测试通过。
  • 在41.78联机模式中测试通过。
  • 支持在新存档或者已有存档中加入此mod。

与其他mod兼容性

更新
  • version 0.0.5 更新于9月3日。
    • 修复实际生效半径小于设置半径。
    • 半径可设置最大值 60 -> 100。
    • 最大油量可设置最大值 400 -> 1000。
    • 支持捷克语。感谢 @MeNameDanny 的帮助。
    • 没有重新安装导致Java与Lua版本不一致时会有提示。
      注意:此次更新需要重新执行安装方法。
  • version 0.0.3 更新于9月2日。
    • 添加版本检测,防止从0.0.1版本更新到0.0.2版本时没有重新执行安装流程导致错误。
  • version 0.0.2 更新于8月27日。
    • 支持沙盒配置,应用于所有发电机。
      • 半径,1-60,原版为20。
      • 楼层距离,0-8,原版为3,0代表只在当前楼层生效。
      • 最大油量,10-400,原版为100。在发电机信息面板可以看到当前油量,例如设置最大油量为200,充满油后显示200%。
      • 为了真实性考虑不允许设置太大,未来会以其他方式支持超大设置的发电机。
    • 增加两种修改发电机参数的方式
      • 调用generator:setRadius、generator:setLevelDistance、generator:setMaxFuel修改当前发电机参数,不影响其他发电机。
      • 调用generator:setDefaultRadius、generator:setDefaultLevelDistance、generator:setDefaultMaxFuel修改所有发电机参数。
      注意:此次更新需要重新执行安装方法,并且添加了lua脚本,所以需要启动mod之后开启游戏,建议重新阅读以上的安装方法。
  • version 0.0.1 发布于8月19日。
    • 更大范围发电机,应用于所有发电机。
      • 半径 20 -> 40。
      • 楼层距离 3 -> 5。

Workshop ID: 3022147060
Mod ID: GreaterRangeGenerator
78 条留言
Alter 10 月 13 日 下午 10:22 
To anyone having issues, such as the need to reinstall the mod message, read the installation instructions, additionally backup the zombies folder in case you want to uninstall the mod
Geronimo 8 月 19 日 下午 6:44 
how to remove this mod it always comes back no matter how you remove it
继续盗 再来再来 8 月 6 日 上午 3:40 
然而这个mod貌似现在并不生效了,不只是什么原因
łysy -13 @bandit 5 月 19 日 下午 2:23 
can i make generators dont decay with this mod?
SoldierSniper 4 月 24 日 上午 10:16 
Please update
Only Farms 2 月 22 日 下午 10:08 
Please update
yamanth 2 月 2 日 上午 7:46 
I have same issue like @leonx132...
Message is also displayed on many other things like sinks etc.
I tryed to reinstall it, I tryed to change settings but nothing solve issues :(
And also the czech language is broken, the files are saved in UTF-8 but they must be for full compatibility with diacritics saved in ANSI. Please repair it...
河南y237号补给站的饺子 1 月 17 日 上午 2:35 
求更新
[FF] leon 2024 年 12 月 30 日 下午 5:10 
need to reinstall customizableGenarator constantly displayed, i have a dedicated host
Anach 2024 年 8 月 2 日 上午 5:03 
Use a program called Jonesoft Generic Mod Enabler (JSGME), for PZ and many other titles. It's perfect for this sort of installation, and extremely simple.

The quick way to have compatibility with Visible Generator Range. In the VGR mod, for Solar, just change line #a13 of ISAStatusWindow_patch.lua, and for standard generators, change line #5 in ISGeneratorInfoWindow_Patch.lua, from -

This:
local generatorRange = 20

To this:
local generatorRange = SandboxVars.CustomizableGenerator.Radius

Which will take the setting directly from the custom range in sandbox settings.