You are viewing a potentially older version of this package. View all versions.
TaKeShI-BrighterWisplight-1.2.0 icon

BrighterWisplight

Makes the Wisplight actually light your way. Brightness and range only.

Date uploaded 5 hours ago
Version 1.2.0
Download link TaKeShI-BrighterWisplight-1.2.0.zip
Downloads 3
Dependency string TaKeShI-BrighterWisplight-1.2.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2333

README

Brighter Wisplight

A Wisplight afasta a nevoa das Mistlands, mas ilumina quase nada — voce continua andando no escuro com uma das maos ocupadas. Este mod deixa a luz dela forte o suficiente para enxergar de verdade.

So mexe em luz. Nao altera a nevoa, nao adiciona item, nao muda receita, nao muda cor.

  • Brilho e alcance configuraveis, com teto conservador
  • Sombras opcionais
  • Client-side: nao precisa estar no servidor nem nos outros jogadores

E um mod de conforto, nao de vantagem. Os limites sao apertados de proposito: ele ajuda a enxergar onde voce pisa, sem virar holofote.

Instalacao

Instale pelo Thunderstore Mod Manager / r2modman, ou copie BrighterWisplight.dll para BepInEx/plugins.

Configuracao

BepInEx/config/com.pass-os.brighterwisplight.cfg, gerado no primeiro boot. Da para editar com o jogo aberto (F1 no ConfigurationManager) — as mudancas valem na hora, sem reiniciar.

Opcao Padrao O que faz
Enabled true Liga/desliga. Desligar restaura os valores originais
IntensityMultiplier 1.13 Brilho. 1 = vanilla. Maximo 1.5
RangeMultiplier 4.4 Quao longe a luz alcanca. 1 = vanilla. Maximo 5
CastShadows false Projetar sombras. Bonito, mas custa FPS
SkipCreatures true Ignora wisps presas a criaturas (Hugin, Munin, Mistwalker)
NameFilter vazio Vazio = afeta a wisp carregada e as tochas de wisp. Preencha para restringir
VerboseLogging false Loga os objetos afetados e os valores antes/depois

Por que o alcance sobe mais que o brilho

A luz da wisp e um point light. Aumentar a intensidade estoura a imagem muito antes de resolver o problema — fica um clarao no meio da tela e o resto segue escuro. Aumentar o alcance e o que de fato deixa voce enxergar onde pisa. Por isso o padrao mal encosta na intensidade e e generoso no alcance.

Se voce quer sensacao de tocha (luz forte e perto, com queda rapida), va no caminho contrario: baixe o RangeMultiplier para perto de 1.5 e suba o IntensityMultiplier.

Por que nao da para mudar a cor

Versoes anteriores tentavam. Nao funciona, e vale explicar o porque.

O orbe da wisp brilha por emissao HDR, e o bloom transforma em branco qualquer emissao com os tres canais de cor acima de 1. A cor original escapa disso por acidente: a emissao da wisp e (0, 3.614, 5.340) — o canal vermelho e zero. Ela consegue ser muito brilhante e continuar azul porque um canal fica apagado.

Qualquer cor normal tem os tres canais vivos. Para manter o mesmo brilho, todos precisam ficar altos — e ai vira um borrao branco em volta da wisp. Nao ha ajuste de numero que resolva: e o efeito, nao o valor. Entao o mod nao tenta.

Quero afetar so a wisp que carrego, nao minhas tochas

Ligue VerboseLogging, entre no jogo e olhe o BepInEx/LogOutput.log. Ele lista o nome de cada objeto afetado. Copie o nome para NameFilter — a wisp equipada e Demister, as tochas de wisp sao _enabled.

Compatibilidade

O mod usa o componente Demister apenas para localizar as wisps — nao altera nada nele. Combina sem conflito com mods de nevoa como o MistBeGone, que patcheia MistEmitter e ParticleMist, classes que este mod nunca toca.

Nao mexe em rede, prefab nem receita.

CHANGELOG

Changelog

1.2.1

Documentation only — no code changes.

  • Added before/after screenshots to the readme, side by side.
  • Spelled out that the fog is untouched: the mist-clearing bubble is vanilla sized, only the light reach changed.
  • website_url now points at the mod's folder instead of the monorepo root.

1.2.0

The first version that actually works. Earlier ones never changed the light at all — see "Fixed" below.

Removed

  • Color override (OverrideColor, LightColor, ColorAffectsLight, ColorAffectsOrb). The orb glows through HDR emission, and bloom turns any emission with all three channels above 1 into white. The original color only escapes this because its red channel is zero. Recoloring without blowing out the effect is not possible, so the feature was removed rather than left broken.

Fixed

  • The mod did nothing. The Demister component does not sit on the wisp object: it sits on a child named "Particle System Force Field", which only carries the fog force field. The search for lights started there and went downward, so it always came back empty. It now walks up until it finds the object that actually holds the light.
  • Freeze on world load. Capture read renderer.materials, which CLONES every material on the renderer. That ran inside each wisp's Awake, and a world loads hundreds of them at once. With color gone, the mod no longer touches materials at all.
  • Multiplier compounding on re-equip. The original state was keyed by the Demister, which dies and respawns when you unequip and re-equip, while the lights survive. The new object re-captured already-modified values and treated them as factory defaults. State is now keyed by the visual root.
  • NameFilter never filtered anything. It tested the name of the Demister's object, which is "Particle System Force Field" on every wisp in the game. It now tests the visual root's name.

Changed

  • Defaults: IntensityMultiplier 1.127699, RangeMultiplier 4.397653.
  • Tighter ceilings: intensity max 1.5, range max 5 (both were 20). A comfort mod does not need a ceiling that turns into a gameplay advantage.
  • New SkipCreatures (on by default): Hugin, Munin and the Mistwalker carry a Demister and are left alone.
  • An exception on one wisp no longer propagates into world loading.

1.1.0

  • Wisp color applied separately to the projected light and the visible orb.

1.0.0

  • Configurable brightness and range for the Wisplight.
  • Optional light color and shadows.
  • Config reloads while the game is running.