Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
WorldPreGenerator
Pré-gera zonas do mundo pelo menu ESC ou console, mostra progresso e grade verde/amarela no mapa sem revelar o terreno inexplorado.
CHANGELOG
Changelog
1.0.14
- Fixes the README screenshot links for Thunderstore by using direct HTTPS image URLs.
- Keeps local PNG copies in the package for offline previews and distribution.
1.0.13
- Restricts the map grid to the host or an authorized administrator and keeps the control disabled for other players.
- Adds a plugin handshake before RPCs and sends state only to clients that have the mod, allowing vanilla clients to join without receiving unknown messages.
- Includes permission in the remote state so the grid can be enabled even when the client's Jötunn administrator check has not updated yet.
- Makes the remote grid use a compact snapshot of the server's zone state, keeping
green/yellow colors correct without depending on the client's local
ZoneSystem. - Reapplies the point-of-interest filter after the server updates the icon list, keeping unexplored locations hidden in dedicated and singleplayer worlds.
- Sends progress messages as local chat lines, avoiding a lookup for a missing
UserInfoand displaying the notice on the singleplayer host as well. - Updates the remote modal every 5 seconds.
- Displays generation progress in chat every 30 seconds, using each connected client's selected language.
- Keeps server generation running when the player who started it leaves.
- Cancels the routine safely when the server shuts down, preserving previously saved progress.
- Re-registers RPCs when a new world or network session loads and publishes final state immediately after completion or cancellation.
- Keeps direct-connection delivery during the transition from routed RPCs between scenes.
- Prevents duplicate RPC registration when
ZNetis destroyed and the menu loads, eliminating theAn item with the same key has already been addederror when returning to the menu. - On menu exit, stops the routine without re-entering
SaveWorld; Valheim's normal save remains responsible for the world save and no longer blocks the singleplayer loading screen. - Explicitly answers requests from players without permission so the modal does not remain indefinitely at “Request sent to server”.
- Also uses
ZNet's own administrator check and normalizes identifiers such asSteam_..., including the socket identity received during the handshake, aligning RPC authorization with the administrator status received by the client.
1.0.12
- Uses direct client-server RPC to transport modal requests and state more reliably on dedicated servers.
- Adds diagnostic messages to the server log for each request.
1.0.11
- Loads in the
valheim_server.exeprocess as well. - The modal on clients connected to a dedicated server queries and controls the server generator through RPC without starting generation locally.
- Fixes the version message shown in the log.
1.0.10
- Check zones now re-evaluates host/administrator permission after the server handshake, preventing it from staying disabled when the modal opens before the administration response.
- Also uses Jötunn's administrator indicator when available, without adding a required dependency to the mod.
1.0.9
- Includes the screenshots used by the README (
images/worldpregen-modal.pngandimages/worldpregen-map-grid.png) in the package so they appear on the Thunderstore page.
1.0.0
- Reorganized the modal layout to separate the title, description, actions, progress, and messages.
- Removed grid gaps: generated zones stay green under fog and missing zones stay yellow.
- Menu and modal text follow the language selected in Valheim.
- State is bound to the world name; returning to the menu cancels the routine and clears counters before another world loads.
- Only one generation can run at a time; checking can follow an active generation.
- The icon filter and grid wait for player loading to finish so respawn is not blocked in saves with thousands of locations.
1.0.7
- Separate Cancel and Close buttons; closing the modal no longer stops generation.
- Missing zones appear yellow in the grid, including under fog, without revealing terrain.
- Points-of-interest icons remain hidden until the player explores them manually.
1.0.6
- Added the Map grid toggle to show generated and missing zones only where the minimap has already been explored.
1.0.5
- Added
worldpregen start,check,status, andcancelcommands for dedicated servers. - The Cancel button stops the cascade without discarding already saved progress.
- Faster generation through limited terrain preloading, with back-pressure to keep the server responsive.
1.0.4
- Cascaded generation: small batches, a configurable pause, and retry of the same zone without flooding the terrain generator.
- Host/administrator checking is available during generation without starting a second cascade.
1.0.3
- Restored the modal background to a solid panel.
- Achievements and manual exploration continue to work; protection remains limited to ghost generation.
1.0.2
- Transparent modal, progress updates every 5 seconds, and an estimated time remaining.
- Pre-generation does not register achievement events; discoveries made by the player continue normally.
- Selects the game's font to avoid missing
LiberationSans SDFwarnings.
1.0.1
- Fixed zone counting on the current Valheim build:
GetZoneCenterreturnsVector2s, so the generator now calculates positions with the same formula asGetZonePos.
1.0.0
- First public release.
- ESC menu button with a configuration modal.
- Counts total, generated, and missing zones.
- Per-frame sliced generation using ghost zones.
- Progress bar and periodic/final saving.