Source-checkedQuality of life & UI

SearchModeAPI

by star · for Project Zomboid

Framework for "search fog" mods compatibility, e.g. [url=https://steamcommunity.com/sharedfiles/filedetails/?edit=true&id=2845952197]Read While Walking How to use (for modders):…

710KDownloads
23 mo agoLast updated
Steam WorkshopSource

About SearchModeAPI

From Steam Workshop

Framework for "search fog" mods compatibility, e.g. [url=https://steamcommunity.com/sharedfiles/filedetails/?edit=true&id=2845952197]Read While Walking How to use (for modders):…

Framework for "search fog" mods compatibility, e.g. Read While Walking

How to use (for modders):


SearchModeAPI.Register("my_mod_name", 0.5) -- only once! the second parameter is your priority

.............
-- low priority mods will be igonred
SearchModeAPI.Lock("my_mod_name")  -- you're the ruler, locks the fog for you
..........
SearchModeAPI.Unlock("my_mod_name") -- you don't need fog anymore


................
-- your code must be marked:
SearchModeAPI.Activate("my_mod_name") -- all stuff now is related to your mod
local mode = getSearchMode():getSearchModeForPlayer(0)
getSearchMode():setEnabled(0,true)
mode:getBlur():setTargets(0.5, 0.5)
mode:getDesat():setTargets(0.5, 0.5)
mode:getRadius():setTargets(3,  3)
mode:getDarkness():setTargets(0.1, 0.1)
SearchModeAPI.Deactivate("my_mod_name") -- end of code from your mod

The priority is the number. You need high values if your mechanics is very specific, e.g. you enables it only on certain actions. And you need low values if your mechanics is common, e.g. you use the fog all the time. This concept allows to lock searchmode manager for some/all mods.

Some values of priority: -100: default value for all unknown mods, also is applyed to vanilla search mode. 10: Read While Walking mod.

P.S. It was quite hard to make this mod.

Workshop ID: 2851764922 Mod ID: SearchModeAPI41

Highlights

From source data

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 23 mo ago.

SearchModeAPI on Nxeon

From our catalogue
One-click install
Supported on Nxeon Project Zomboid servers. We download it from Steam Workshop, place it, and restart the server.
Server load
light
Smallest plan we suggest
Project Zomboid — 6 GB (6 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2024-12-27, released 2024-12-27

Game versions by loader

LoaderGame versionsNewest
Workshop

From 1 recorded build of SearchModeAPI.

Run SearchModeAPI on a Project Zomboid server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Steam Workshop as “QoL”

Quality of life & UI

Small conveniences, tweaks and interface improvements players notice straight away.

Compatibility

Game
Project Zomboid

Verified at the source

  • ✓Steam WorkshopOfficial listing, checked 2026-11-01Open ↗
  • ✓Authorstar, as published on Steam Workshop
  • ✓LicenseNot published by the sourceFree

SearchModeAPI, answered

Generated from the mod’s own source data.

Is it free?

Yes. SearchModeAPI is free to download from Steam Workshop.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run SearchModeAPI on a Project Zomboid server.

Deploy in about a minute from $9.00 a month, then add SearchModeAPI in one click.