安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






I'll post the code in a discussion page
Load order depends entirely on the player; they're loaded in the order in which they press the "Enable" button in the Mods menu. The one exception to this is if one mod requires another by adding a require=mod_name, the reqiured mod will load first, and the one that specified the requirement will load second. This is why the game refuses to load if two mods require each other; it doesn't know which one to listen to.
Point being that it's conceivable that the player might load our mods in either order, so it's good that both of them are set up to deal with the other :)
That's basically how LetMeThink works. There's a lot of places in the code where it says "don't let the player do anything in this menu if the game is paused" and LetMeThink just takes those parts out.
If you are changing or adding functions, then yes, you can do that without changing the original file. Basically you start a new file that imports the original function and tweaks it. If there are multiple mods that tweak the same function then you'll have to figure out a new patch or whatever, but that's less likely to occur if you're replacing individual functions instead of whole files.
Soul Filcher's Relaxing Times is a pretty good example of a mod that adds functions. I don't have one off the top of my head that does a great job of modifying existing functions, but here's a tutorial about it:
https://github.com/FWolfe/Zomboid-Modding-Guide#overwriting-vanilla-code
-- if the game is paused, we don't show the item context menu
local letMeThink = getActivatedMods():contains("LetMeThink")
if UIManager.getSpeedControls():getCurrentGameSpeed() == 0 and not letMeThink then
return;
end
?
(lines 14-18)
in the file "media\lua\client\ISUI\ISInventoryPaneContextMenu.lua" lines 14 and 15 are currently:
-- if the game is paused, we don't show the item context menu
if UIManager.getSpeedControls():getCurrentGameSpeed() == 0 then
you would just have to change those to
local letMeThink = getActivatedMods():contains("LetMeThink")
if UIManager.getSpeedControls():getCurrentGameSpeed() == 0 and not letMeThink then
Thanks! Let me know if you can't do it :)
I think I can shoot better than player in this game