Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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