Project Zomboid

Project Zomboid

SearchModeAPI
21 Comments
chris.s.clevenger 26 Dec, 2024 @ 3:51pm 
42?
star  [author] 30 Mar, 2024 @ 3:56am 
@Morgan, sure.
@Retrad_, you can make such a mod.
Morgan 28 Mar, 2024 @ 5:57pm 
May I add this to my modpack?
Retrad_ 7 Feb, 2024 @ 5:05pm 
i did not expect a user manual for it, wow!

say, how would you go about making a script that detects clothing and triggers the fog? say... sunglasses, yes, sunglasses
Camoblast 6 Oct, 2023 @ 12:58am 
it wasnt your mod that i was concerned about but i noticed my problem after moving the reading mod in the list is why i used your mod.but yea ill give it a whirl
Camoblast 6 Oct, 2023 @ 12:57am 
Ok cool.ill give that a whirl..i have not had these many problems using most mods really until i cam bak to PZ for a spin and had found MY SON lol who loves PZ had subbed to the Manager Mod because he hated the cursor lag with so many mods in the list normally,without Manager,,IMa fuck it off.and see what happens and put your mod above what ever mod request that when i sub to em..Is the reading mod the only mod this serves..I found it because walk while readin was buggin out...was working then not working..put your mod in and it works..
star  [author] 4 Oct, 2023 @ 9:49pm 
I don't use Load Manager, so I'm not sure. But I think it's better to load this mod first. This mod is just a framework and doesn't conflict. Conflicts between other mods may arise in theory if some mods use this API and others don't. Anyway, it's very specific, and you can treat these notices as warnings.
Camoblast 4 Oct, 2023 @ 8:55pm 
With just Load Manger and Load enhancer enabled and nothing else,when you go into the manage order you will notice Text on top of the Order window,,IT tells you 2 different things,i will try explain....
ok so just enable those 2 mods i said.go into your load order and read the Text above...IT will usually say (You Normally have to change load order to avoid conflicts and errors...NOW..when i attempt to put in any mod after those 2,and that mod would be Mod Options the Text above will change after i refresh and say (You DO have to change this to resolve certain conflicts and errors,as precedence is important in many cases yada yada yada).. I understand what it means but is it telling me this as a reminder or is this part of the functions for the load manger/Enhancer? I mean is it designed to switch between text when mods conflict?
star  [author] 1 Oct, 2023 @ 10:37pm 
@Camoblast, who tells you? "it"?
Camoblast 1 Oct, 2023 @ 10:49am 
So where do you put this in load order? Im using :
Mod Options
Mod manager
Mod Server
when i add SearchModeAPI it tells me i DO have to change order to avoid certain conflicts and errors.cant add anything past Mod :oad Enhancer without getting that message above the Load Panel...even if i leave SearchModeAPI out...any ideas..ive rusubbed to all my subs and even reinstalled PZ but still says same thing...
star  [author] 4 Mar, 2023 @ 2:14pm 
@LineTinzer, yes, you can.
LineTinzer 4 Mar, 2023 @ 11:11am 
Hi! Can I use this mod on my server's modpack? I'll wait on your answer. Thanks.
star  [author] 30 Dec, 2022 @ 2:16pm 
This will work in any version of the game, even 42+, but only until the developers change the game features related to the search fog.
BongoThe 30 Dec, 2022 @ 12:51pm 
this still work?
Temporomandibular Grind 23 Nov, 2022 @ 10:37pm 
Is this mod working?
Zow 21 Nov, 2022 @ 4:19pm 
after i remove the mode i get error when i i start searching how can i fix that with my server some of my friends get the same error some of them not
star  [author] 17 Sep, 2022 @ 9:02pm 
@Kyrox,
if you are not mod author, you can only install and use.
All "search mode" mods should use this API, plus one mod may not use.

Using this API means that a mod takes its place in priority system and won't be mixed with other mechanics. Not using just means that a mod will be at the bottom of priority system and will be mixed with other such mods.
Kyrox 17 Sep, 2022 @ 1:50pm 
How do I add this to Udderly Skillbook XP?
DahakaMVl 21 Aug, 2022 @ 3:26am 
@star Thanks you for the explanation! I'm very new to Project Zomboid modding so I didn't quite understand it. I'll incorporate the changes then :)
star  [author] 21 Aug, 2022 @ 2:00am 
@DahakaMVl,
First, that pull request doesn't require HARD dependency. See the code. It is backwards compatible with no SearchModeAPI.

Second, it's ok if you don't use it. Actually if two mods uses getSearchMode, only one needs this API.
DahakaMVl 21 Aug, 2022 @ 1:32am 
Hi star. I just got a pull request on my repository about the SearchModeAPI and that is how I came to know about this mod/api.

The only incompatibility I've noticed so far is that the read-mode-search radius is slightly bigger after passing out. If this is the only incompatibility, I'd accept that for now to stay without dependencies.
Could there be any other incompatibility?