Project Zomboid

Project Zomboid

Darkvision
52 条留言
Burryaga  [作者] 1 月 8 日 下午 6:43 
I haven't really come back to play B42 much yet and might not be back that soon, so I unfortunately can't give any realistic update estimations, but anyone who wants to try to port the mod is welcome to take a crack at it.
Mr. J Soda 1 月 8 日 下午 4:46 
Looking forward to seeing this in B42, since it appears that the settings that would use Mod Options are now part of B42
Burryaga  [作者] 2024 年 11 月 8 日 下午 2:59 
Sick, that use case would have never occurred to me!
Npyu System 2024 年 11 月 8 日 下午 2:35 
I use this mod together with the blind trait to fix the immersion breaking loss of "visibility" at night for blind characters (when it shouldn't affect how they percieve their surroundings at all). Thank you for this mod that allows me to do that !
Burryaga  [作者] 2024 年 9 月 20 日 上午 8:49 
Please contact me on Discord and I'll help you build your world properly! :steamhappy:
Grotty 2024 年 9 月 20 日 上午 8:45 
Subscribed, reloaded, but can't find Darkvision anywhere in my mods :(. This is just the kind of mod i need to play this game, too, as I have visual difficulties :/. Any help?
Burryaga  [作者] 2024 年 8 月 23 日 下午 12:20 
Probably but that is beyond the scope of this mod. This is primarily a visual aid mod to help humans see on monitors that make PZ look black and unplayable at night. This is not meant to give players any special powers in the dark other than helping them see well.
Zofrah 2024 年 8 月 23 日 上午 11:49 
Is possible to reduce debuff for foraging, when search in dark?
Burryaga  [作者] 2023 年 12 月 22 日 上午 11:31 
Recently helped upgrade True Music Jukebox with full support for multiplayer and improved menus. I'm thinking everyone who knows my mods will appreciate this one, so I decided it warrants a bit of comment spam. Hope y'all enjoy.
Roddo 2023 年 11 月 25 日 下午 2:23 
I will try to create a patch that makes this trait dynamic, thanks
Burryaga  [作者] 2023 年 11 月 25 日 下午 2:01 
Also, as long as you change the mod ID, I am open to alternative versions of this mod. I am not possessive about my code. Feel free to use this mod as a basis for trying your hand at Dynamic Darkvision if that appeals to you!
Burryaga  [作者] 2023 年 11 月 25 日 下午 1:59 
Yes, but I am unlikely to do it any time soon because a lot of other modding priorities are winning in my existence. HOWEVER, all of my mods are intentionally as easy to extend as they could possibly be, so if anyone wants to release a dynamic patch for this mod, doing so would not be difficult for a decent trait modder.
Roddo 2023 年 11 月 25 日 上午 11:53 
Is there the possibility of making it dynamic?
Wani 2023 年 7 月 15 日 下午 9:20 
aaah ok good to know?
Burryaga  [作者] 2023 年 7 月 13 日 上午 3:26 
@Coyote No, it would be done the same way no matter who wants to do it. You would basically just have an EveryOneMinute event that counted each minute you caught a player outside, store minutes outside in player's mod data, and then if player's time passes a certain threshold during that event, you give them this trait. Any dynamic traits modder will know what to do.

PS: Sorry I accidentally deleted your question. For passersby, I was asked if it matters which dynamic traits mod handles this trait.
Burryaga  [作者] 2023 年 7 月 10 日 上午 12:35 
No, but the Dynamic Traits folks are welcome to incorporate my mod's trait in their shenanigans if they like.
Wani 2023 年 7 月 1 日 下午 9:17 
if you have a dynamic traits mod can you get this trait by staying in the dark?
Burryaga  [作者] 2023 年 5 月 15 日 上午 8:56 
Must have Mod Options (another mod) to access brightness / toggle in-game.
Burryaga  [作者] 2023 年 5 月 15 日 上午 8:55 
(See the sandbox options.)
Burryaga  [作者] 2023 年 5 月 15 日 上午 8:54 
It already is if you enable it without the trait. You can also turn allow people who have the trait (and thus cannot outright disable it) to turn the brightness of the light to 0. I am not modding actively right now, but if you want to add any features beyond that and rerelease the mod, it won't hurt my feelings!
Mana 2023 年 5 月 11 日 上午 3:51 
Amazing mod, but would it be possible to make it togglable during gameplay? Night vision is great for roleplay purposes (i.e playing a vampire, elf, or some mutant-type) but sometimes it's nice to enjoy the ambience of shadows and a cozy fire lighting up the room.
yule 2023 年 3 月 15 日 下午 2:03 
I still use this mod and it's the best thing ever :sothappy:
Burryaga  [作者] 2023 年 2 月 7 日 上午 2:31 
Yes, but you will want to enable it in the MODS menu of the main menu first (not to be confused with Mods in your HOST menu) so that you can see the sandbox options and enable Only Jumpers Survived so that you can use the ability without the trait.
Tatsuya 2023 年 2 月 7 日 上午 2:17 
Can you add and remove the mod midgame?
Burryaga  [作者] 2023 年 2 月 6 日 下午 12:14 
Fixed a bug that caused server to be mistaken about whether players took the Darkvision trait.

Thanks again to Yule for actively spending her time to help me solve this, as well as for reporting it in the first place!
Burryaga  [作者] 2023 年 2 月 6 日 上午 9:27 
Checking my own stats does not seem to be causing any issues. I cannot easily check other players' stats at the moment because I do not have anyone to play with. I am not sure if this mod is the root of your issue or not, but please contact me on Discord if you want to help each other get to the bottom of this.
Burryaga  [作者] 2023 年 2 月 6 日 上午 8:56 
Thanks for letting me know. I have had issues with More Traits in the past, but I cannot say what causes this. I can say that in order to remove a trait, you need to call getPlayer():getTraits():remove("Trait"), and I do not call that function anywhere in any of my mods. Once my traits are added, they stay added until you die (at least from my playtesting). However, I suppose it's possible that this admin tool somehow refreshes a player's trait list and does not see my trait. I have no idea what exactly it does, but I'll try to look into it. Is that a vanilla admin tool or a modded tool?
yule 2023 年 2 月 6 日 上午 2:07 
For me the trait is vanishing from someone when an admin uses "Check Stats" to update their XP. But Im not sure if its this mod's issue or something else with my server (I use More Traits). Thought Id leave a comment about it :steamthumbsup:
Burryaga  [作者] 2023 年 1 月 28 日 上午 3:02 
I will continue to experiment and tweak that feature to work a little better in the future! Thanks for making me aware of the issue.
Droll 2023 年 1 月 27 日 下午 3:08 
Thanks this is almost perfect! There is a slight issue with lights in daytime. Any turned on lights behind me will (I think) still go above the threshold you mentioned making it it look like I have vision there. But honestly that is a minor problem as I can clearly see the other unlit areas behind are not a part of my vision cone.
Burryaga  [作者] 2023 年 1 月 26 日 上午 9:24 
@Droll So I discovered that the issue is that the vision cone fundamentally disappears when the brightness around you crosses a certain threshold, and the light generated by Darkvision can quickly increase the lighting around you beyond that threshold while outdoors during the daytime.

I added a feature that may help you with this issue. Check for it in Mod Options and let me know if it helps!
Droll 2023 年 1 月 25 日 上午 11:35 
The option would at least allow me to configure and mess around with it, right now it's kind of easy for zombies to sneak up on the during the day because I literally don't know what my field of vision is.

Being dark indoors is less of a problem than the outside, cuz I can bump up the indoor light level to compensate, also buildings have lights (and I have a mobile generator).
Burryaga  [作者] 2023 年 1 月 24 日 下午 8:13 
(Unfortunately, a daytime maximum would also limit your visibility in dark indoor areas when it is technically daytime, which is why I originally left that out.)
Burryaga  [作者] 2023 年 1 月 24 日 下午 8:12 
Yes, it does, but I could consider adding an optional daytime maximum.
Droll 2023 年 1 月 24 日 下午 7:21 
Does the brightness increase also apply during the day? I'm finding it very difficult to see where my line of sight is during the day. It's fine during the night.
Droll 2023 年 1 月 19 日 下午 3:34 
Thanks for the comparison
Burryaga  [作者] 2023 年 1 月 19 日 下午 3:33 
I just added a screenshot comparing Darkvision at maximum brightness to Cat's Eyes when night is at its darkest. (Lighting on the edges of the Cat's Eyes photo is from artificial lighting produced by nearby objects.)
Droll 2023 年 1 月 19 日 下午 1:55 
How does this compare to cat-eye? (or whatever the vanilla night-vision trait is called).
Burryaga  [作者] 2023 年 1 月 17 日 下午 12:24 
If anyone (e.g. @Mattsby) would like to contact me on Discord for help uploading an alternate version of Darkvision with modified point costs, I don't mind helping. It wouldn't be terribly difficult or time consuming for me; I really just don't want to clutter this workshop item or my workshop account with a bunch of nearly identical versions of the same mod with literally one variable changed (nor do I want to maintain so many copies if I push updates in the future). Hopefully you understand!
Burryaga  [作者] 2023 年 1 月 17 日 上午 11:10 
After further research, some of the most experienced modders in the community do not seem to be aware of (or at least informing me of) any working solutions for loading server options prior to the definition and insertion of new traits. I can create serverside config options, but I cannot load them clientside before players create characters, so there would ultimately be no point. In lieu of a better solution, I am offering two solutions:

1) Join in a vote for the default value THIS version of the mod will cost.

2) Feel free to reupload new versions of this mod with alternate trait point costs. Please treat this code as copyleft; be prepared to share with others anything that you borrow from me. I don't care if you link to my version of the mod. Have fun.
Burryaga  [作者] 2023 年 1 月 17 日 上午 7:25 
@UdderlyEvelyn Thanks for the protips! I am aware in theory that I could probably have servers load the trait cost from a file, but I'm not yet sure how to write a serverside-only config file.

I sort of count submods as "whole new mods" in my head since they show up as extra mods in the Mods window... I don't love the idea of adding competing or conflicting submods to this workshop item because it makes installation slightly more complicated and confusing for normal users...
UdderlyEvelyn 2023 年 1 月 16 日 下午 10:16 
You can make copies of the mod with different costs as submods if you want to, or you can make it load the cost from a patchable location so that others can patch it with their own private server mod.
Burryaga  [作者] 2023 年 1 月 16 日 上午 11:42 
@Mattsby I am honestly unsure of how this can be done without making a whole new mod, unfortunately. I have tried pulling sandbox options at the time of character trait selection, and the game didn't seem to allow me to access SandboxVars in time to base the addition of a trait on my selected options. I will continue experimenting and update you if I find a solution. I have another mod where I hoped to make the trait entirely sandbox-optional; tried for quite a long time and couldn't figure out how to do it. Seemed impossible, but that could easily have been my ignorance playing tricks on me!
Mattsby 2023 年 1 月 16 日 上午 6:29 
Wicked mod! Would it be difficult to implement option or version that costs more? Something like 8 points would work well on my MP server. Great mod either way!
Burryaga  [作者] 2023 年 1 月 12 日 下午 4:08 
De nada! Hope the mod serves you well and keeps you alive.
Evil Dead 2023 年 1 月 12 日 上午 6:01 
@Burryaga
Thank you!
Burryaga  [作者] 2023 年 1 月 11 日 下午 9:14 
I am not sure, but probably, because it simply uses the game's built-in trait manager to add an extra trait to the game. I guess perhaps if THEY add a trait called "Darkvision" it would overwrite the cost of Darkvision, but as long as the trait called Darkvision exists on a player, they will have access to the ability. A conflict would surprise me.
Evil Dead 2023 年 1 月 11 日 下午 6:07 
@Burryaga
I agree, good work! Is there compatibility between this and More Traits and LSKDJFLSK? ( I cant for the life of me remember the mod, but it changes what all traits do, adds more negative and positive effects for traits lol)
Burryaga  [作者] 2023 年 1 月 11 日 下午 6:05 
You can also enable it without a trait via Mod Options if you first enable that freedom in Sandbox Options!
Burryaga  [作者] 2023 年 1 月 11 日 下午 6:04 
4 points! It's a lot stronger than Cat's Eyes...