You are viewing a potentially older version of this package. View all versions.
Cartur-Carturs_Flooring-1.1.2 icon

Carturs Flooring

Floor tiles count as roof, so a floor overhead shelters the room below from rain. Fires, smelters and kilns place on floor tiles instead of only bare ground. Floors take no rain damage, so an open deck stops rotting. Each part toggleable.

Date uploaded a month ago
Version 1.1.2
Download link Cartur-Carturs_Flooring-1.1.2.zip
Downloads 95
Dependency string Cartur-Carturs_Flooring-1.1.2

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

Cartur's Flooring

Floors count as a roof, fires and smelters can be placed on them, and floors stop rotting in the rain.

Cartur's Flooring

What it does

Build a second storey out of wood and the room underneath still counts as open sky. Rain gets in, the fire goes out and you stand indoors with the wet debuff. The cause is that wooden, ashwood and iron floor pieces ship with their colliders tagged leaky, which the game's roof checks skip over. Stone and grausten floors are not tagged that way, which is why those always sheltered you. This mod clears the tag on floor pieces, so shelter, rain damage and fire wetness all follow the floor as a roof.

Campfires, hearths, bonfires and braziers normally refuse to leave bare ground. Three flags on the prefab cause that (m_notOnWood, m_groundOnly and m_groundPiece), and the mod clears all three on any piece the game counts as a fire. Smelters, charcoal kilns and blast furnaces get the same treatment. The rule is applied to every piece with a Smelter component, which also includes the windmill, the spinning wheel and the bathtub, and to modded pieces built on it. Stone stations also lose their no-support-wear flag, because otherwise the game would demolish a stone smelter in one tick for standing on a wooden plank.

A floor with open sky above it is wet forever, and the game charges rent for that: a deck, a jetty or a bridge loses health to rain it can never get out of. Floor pieces are exempt from that rain damage. They still darken when it rains, they still collapse without support, and snow, ash and fire wetness behave as before. Only the rot is gone.

The changes are made to the prefabs before anything spawns from them, so floors already standing behave the same. You do not need to rebuild. Other placement rules are not changed.

Settings

Config file: BepInEx/config/com.jekkle.valheim.carturflooring.cfg.

Setting Default What it does
FloorsAreRoofs true Floor tiles shelter the room below.
FiresOnFloors true Fireplace pieces place on floors as well as bare ground.
SmeltersOnFloors true Smelters, kilns and blast furnaces place on floors.
FloorsDontDecay true Floor tiles take no rain damage.

The first three are applied once to the shared prefabs at world load, so those toggles take effect after a game restart. Turning one off mid-session cannot put the prefab back. FloorsDontDecay is read as the game runs and takes effect immediately.

ConfigurationManager makes the file easier to edit from the F1 menu. It is optional.

Compatibility and known issues

Every player on a server needs the mod. Each client edits its own copy of the prefabs, and wear is calculated by whoever owns the piece. A smelter, kiln or windmill on a floor owned by a player without the mod still takes wear and breaks, and that player still sees rain through their floors.

Smoke still matters. A fire indoors with no outlet will still choke you.

Mods that add their own floors or fireplaces are covered automatically, as long as they use the game's own floor flag or a Fireplace component. Iron grates do not carry the game's floor flag, so the mod does not treat them as roof. The mod logs the pieces it changed at world load, and warns about any piece named like a floor that is still leaky because it lacks the floor flag.

Install

Use a mod manager (r2modman, Thunderstore or Gale) and it pulls in BepInEx for you. To install by hand, drop CarturFlooring.dll into BepInEx/plugins.


Free, and always will be. If it improved your game you can tip me on Patreon.

Discord: bug reports, install help, and mod requests. Bug reports get their own thread so nothing is lost in a chat scroll, and requests are voted on.

More from Cartur: HD Blood · Map Pins · Compass and Clock · Safe Stamina · Follow Command · UI HUD · Waste Management · Feeding Trough · Combat Text

CHANGELOG

Changelog

1.1.4

  • New icon in the Cartur's Mods style. The mod itself is unchanged from 1.1.3 (BepInEx still reports 1.1.3).

1.1.3

  • In-game screenshots in the README. No code changes.

1.1.2

  • New icon, and the README is rewritten: a fuller description of what the mod does, every setting and default checked against the code, and image captions that match the pictures. No code changes.

1.1.1

  • Listing only, no code change. The README now says that every player on a server needs the mod (floor wear runs on whoever owns the piece), corrects which pieces the smelter rule covers, and links the Discord.

1.1.0

  • Smelters, kilns and blast furnaces place on floors. Same three placement flags as the fire pieces, on a different set of prefabs; the Smelter component is the selector. Freeing the flags alone was not enough - WearNTear.UpdateWear deals damage = 100f when m_noSupportWear is set and support is short, which is a full health bar in one tick, and a stone piece needs 100 support where wood tops out at 100 and loses a share per link. m_noSupportWear is cleared on those prefabs too, so the game stops demolishing a smelter the moment it stands on a plank. New SmeltersOnFloors setting.
  • Floors take no rain damage. A deck, a jetty or a bridge has nothing overhead, fails the roof check forever and rots forever. The rain branch of WearNTear.UpdateWear only bites when sixty seconds have passed on m_rainTimer, so that timer is held at now for floor pieces and the branch never reaches its damage line. Clearing the prefab's m_noRoofWear would have been simpler and wrong: the same flag drives the wet sheen, and a floor that cannot rot should still darken when it rains. Support collapse, snow, ash and fire wetness all behave as before. New FloorsDontDecay setting, and this one is read live - no restart.

1.0.1

  • Hearths and braziers now place on floors. 1.0.0 picked fire pieces by the Fireplace component and cleared notOnWood and groundOnly; those two carry groundPiece instead, which fails the same heightmap test and returns before the other checks are even reached. All three flags are cleared now, and a piece counts as a fire if it has a Fireplace or its comfort group is Fire.
  • iron_grate was listed as sheltering the room below. It never did — grates do not carry the game's Floor usage flag, so the mod does not touch them. Documentation fix only, no behaviour change.

1.0.0

First release.

Floor pieces no longer count as leaky, so a floor overhead shelters the room below — rain damage, fire wetness and the shelter status all follow. Fireplace pieces have notOnWood and groundOnly cleared, so fires place on floor tiles instead of only bare terrain. Each feature has its own config switch.