安装 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(越南语)
Українська(乌克兰语)
报告翻译问题






While looking at the code I noticed that migrateOldModOptions() forces the sandbox options RandomPower.OnAtNight and RandomPower.InstantPowerShutoff to false the first time a save is loaded (even if they were set differently), but after that they stay as configured in the sandbox for future sessions. I thought it might be useful to mention this in the description or adjust the behavior if that wasn’t intended.
Also, if you ever want RandomPowerChance to correspond exactly to a probability of chance / 100, you could use something like local turnOnRoll = ZombRand(100); if turnOnRoll < chance then ... end, so there are 100 equiprobable outcomes and exactly chance of them are successes.
Thanks again for your work on this mod!
@Bonnie Boestar I'll add that option in a patch soon
@Kaoeutsu It's an interesting mechanic, and would be doable. I will add it if I have time
Is it posible to have this work only when the power is shut down but only for 1/2 weeks?
It's so damn creepy when its all quiet during the night and suddenly the lights turn back and all the tvs are on max volume xD
One idea I had if you ever feel like adding more stuff: the option to set a timer to completely turn off eletricity, so on a long playthrough you have 100% energy at the start, then the randoms on and off and then one day it never turns back on again.
By any chance would this still work with build 41?
Thank you.
@ditoseadio Thank you, glad you like it! The only setting you should be mindful of is the Electricity Shutoff and NOT set it to instant, because then the mod will not work. It will wait until the power is turned off before the mod activates, so you can set it to 0-30 days, 6 months, or any other time.
I will look into adding more options for controlling the intervals and stuff, it's just that this mod is not very high priority for me, but it seems a lot of people like the idea of it so I can see if it's quick to add more options.
I have a question: if I adjust the power settings in the sandbox options, what happens with the in-game setting under the mod tab?
Also, could you include the option to manually adjust how often it checks and how long the power can last? That would be awesome.
I'm migrating the options from mod options to sandbox, it will make the mod compatible when multiplayer is released.
Also added a new option for turning lights on at night and keeping them on until morning
I also found why it doesn't work when you set power turn-off to instant, because when you do it literally just does not create a power-grid in the world, so my function to turn power back on just does not do anything.
I will add a sandbox option where you can enable instant shut-off and still use my mod.
@AJ It would be cool, and should be doable, but it's too much work for me atm
@Ryan I have no idea, I haven't tested this mod much. You could try and see what happens
Will this stop randomly turning power on/off if power is turned on again by another mod?
You'll be able to see if it works if you load a game, save and exit, then open C:\Users\YourUsername\Zomboid\console.txt and search for "Adding OnTicks for Random Power"
If that shows in the console log then it should be working. If you search for "Won't add ticks" and it's found, then it's not working.
I can run some more tests tomorrow and see if I can reproduce and fix the issue
It's possible that I have to add some check, but from what I remember it should already work when starting with no power.
@morgash1989 It would be fun to make a mod like that, but I have so many other ones I'm working on already, I just did this one quickly because it was requested