You are viewing a potentially older version of this package. View all versions.
nbusseneau-Fuel_Daylight_Saving-0.4.0 icon

Fuel Daylight Saving

Disables fuel-based fireplaces in daylight. Configurable exception list (default: never disable campfires and hearths, for cooking and comfort purposes), enforceable server-side.

Date uploaded 3 weeks ago
Version 0.4.0
Download link nbusseneau-Fuel_Daylight_Saving-0.4.0.zip
Downloads 301
Dependency string nbusseneau-Fuel_Daylight_Saving-0.4.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202
ValheimModding-Jotunn-2.20.3 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.20.3

README

Fuel Daylight Saving™

Very simple Valheim mod that disables fuel-based fireplaces in daylight. Configurable exception list (default: never disable campfires and hearths, for cooking and comfort purposes), enforceable server-side.

showcase

Video showcase

https://github.com/nbusseneau/FuelDaylightSaving/assets/4659919/9d8dd94b-0af3-4770-9ce5-ebd5b0f6bd50

Features

  • Fuel-based fireplaces are disabled in daylight, except those specified in a configurable exception list.
  • By default, the exception list includes campfires and hearths, as these are necessary either for cooking stations or as comfort providers (usually temporarily for campfires, and permanently for hearths as top of their comfort group).
  • Uses Valheim's daylight detection mechanism, which means fireplaces may still stay lit during the day if the environment / weather is dark enough that it's not "daylight" (e.g. during rains or thunderstorms).
  • Infinite (no fuel) fireplaces are ignored and stay enabled at all times (e.g. Haldor / Hildir fire pits).

But why?

Fuel Daylight Saving™ helps you reduce your CO₂ emissions save on precious fuel and reduce the frequency of annoying refueling rounds. Incidentally, it also helps you fight against climate change save on FPS when in daylight, as lit fireplaces are resource hogs in Valheim.

Compatibility

With vanilla clients / clients not using the mod

Fireplaces are managed by the current zone owner (usually the first person to enter a zone). In other words, if multiple players are in the same zone:

  • Fireplaces will be disabled in daylight if the zone owner uses the mod, regardless of if anyone else uses the mod.
  • Fireplaces will not be disabled in daylight if the zone owner does not use the mod, even if absolutely everyone else uses the mod.

With other mods

Fuel Daylight Saving™ hooks onto the Fireplace component itself and should work transparently with all mods, including those that add new fireplaces. However, it cannot automatically detect if any modded fireplace should be added to the exception list. While you can always configure it yourself, if you are a mod author or user and think a modded fireplace should be added to the default exception list, please do contact me: I'm more than happy to extend it. Feel free to report any issue you find.

Install

  • This is a client-side mod, which can also be installed server-side.
    • While possible, mixing clients using the mod and clients not using the mod on the same server is not recommended, as it will result in an inconsistent experience (see above for details).
  • If installed on the server, server configuration will be enforced to all clients, however clients will not be forced to have the mod installed.

In other words:

  • This mod can be installed on servers intended for Xbox crossplay, and all clients will still be able to join.
  • This mod can be installed on your side as a client, and you will still be able to join any server (even vanilla ones). However, since this mod is not only cosmetic but impacts gameplay, you should probably ask the admin and other players first out of courtesy.

Thunderstore (recommended)

  • [Prerequisite] Install r2modman.
  • Click Install with Mod Manager from the mod page.

Manually (not recommended)

  • [Prerequisites]
  • Download nbusseneau-Fuel_Daylight_Saving-0.4.0.zip.
  • Extract the archive and move everything to your BepInEx/plugins/ directory. It should look like this:
    BepInEx/
    └── plugins/
        └── nbusseneau-Fuel_Daylight_Saving/
            ├── CHANGELOG.md
            ├── icon.png
            ├── manifest.json
            ├── plugins/
            └── README.md
    

Special thanks

Fuel Daylight Saving™ is a reimplementation of a mod initially created by warpalicious. Check out their POI content mods, you won't regret it 👍

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

0.4.0 - 2024-10-31

Changed

  • Support for 0.219.13 (The Bog Witch).
  • Update Jotunn to 2.21.2.

0.3.2 - 2024-07-31

Changed

  • Further increase margin for sunrise / sunset.

0.3.1 - 2024-07-30

Changed

  • Further increase margin for sunrise / sunset.

0.3.0 - 2024-07-28

Changed

  • Add small margin to day time detection to account for low light during sunrise and sunset.

Fixed

  • Fix missing server-side Thunderstore tag.

0.2.0 - 2024-06-24

Added

  • Add server config enforcement with Jotunn.
  • Add video showcase to README.

Changed

  • Improve README, notably clarifications around compatibility.

0.1.1 - 2024-06-22

Changed

  • Minor changes to README.

Fixed

  • Only parse exception list on startup and when it changes.

0.1.0 - 2024-06-22

  • Initial version.