# Timed Torches Stay Lit

## - By TastyChickenLegs

[Chat with me on Discord](https://discord.com/users/TastyChickenLegs#4818)
 
- Can now individually control Stay Lit and On Timers - See image below
- Turn on your torches using a configured timer and keep them lit
- Server Sync with ability to turn off version check
- Can put on the client or the server or both
- More configuration options and easier to use timer settings



### About the Mod
I wanted my torches to turn on at night and off during the day.  I also did not want to fuel them.

### Configuration
![Settings Image](https://i.ibb.co/1Z68pBL/staylit.png)



The config file is located in "<GameDirectory>\Bepinex\config" (You need to start the game at least once, with the mod installed to create the config file).


### To configure the timer:
 _______
- OnTime - Time of day when torches should turn ON. (The default is set to 4.30pm in-game time)
- OffTime - Time of day when torches should turn OFF. (The default is set to 6.30am in-game time)

- AlwaysOnInDarkBiomes - (Default True) If true, objects listed in AffectedFireplaceSources will always burn in areas that Valheim considers 'always dark'. E.g Mistlands or any biome during a storm.

- AllowAddingFuel - (Default False) If true, fuel can be added and sources will use the timer settings.  If false no fuel is needed to burn torches
 

Note: If OnTime and OffTime is set to the same value, for example 0 and 0 the fireplaces listed in AffectedFireplaceSources will burn 24/7.

The config file is located in "<GameDirectory>\Bepinex\config" (You need to start the game with the mod installed for the config file to be created).
_______
### List of supported objects:
  
|Config Option|Definition
|---|---|
|fe_piece_walltorch_timer | Allow timer fuel for Sconce
|fe_piece_groundtorch_timer | Allow timer for Standing iron torch
|fe_piece_groundtorch_wood_timer | Allow timer for Standing wood torch
|fe_piece_groundtorch_green_timer |Allow timer for Standing green-burning iron torch
|fe_piece_groundtorch_blue_timer | Allow timer for Standing blue-burning iron torch
|fe_piece_brazierfloor01_timer | Allow timer for Standing brazier
|fe_piece_brazierceiling01_timer | Allow timer for Hanging brazier
|fe_piece_jackoturnip_timer | Allow timer for Jack-o-turnip
|fe_custom_instance_timer | Enable Timers for items added by other mods
|fe_piece_walltorch_lit  | Wall Torch Stay Lit
|fe_piece_groundtorch_lit  | Metal Torch Stay Lit
|fe_piece_groundtorch_wood_lit | Standing wood torch Stay Lit
|fe_piece_groundtorch_green_lit | Green Torch Stay Lit
|fe_piece_groundtorch_blue_lit | Blue Torch Stay Lit
|fe_piece_brazierfloor01_lit  | Floor Brazier Stay Lit
|fe_piece_brazierceiling01_lit | Ceiling Brazier Stay Lit
|fe_piece_jackoturnip_lit | Jackoturnip Stay Lit
|fe_custom_instance_lit | Custom Items Stay Lit
|configOnTime Hours and Mins  | Convert desired time to military time (24hr) and /24.  Use the new slider for super simple config
|configOffTime Hours and Mins | Convert desired time to military time (24hr) and /24.  Use the new slider for super sipmle config
|configAlwaysOnInDarkBiomes | Always On In Dark Biomes or storming

- Custom modded items can be added as well.  Example rk_campfire for the smokeless campfire in the Bon Appetit mod.

### Other

New timer settings. Choose the Hour and Minutes with sliders and the mod does the rest.
No need to figure out game seconds or gametime.


### Installation (manual)  
Extract DLL from zip file into "<GameDirectory>\Bepinex\plugins"  
Start the game.

### Version Information
Version 1.3.9

- Updated to fix multiplayer bug.  Game files updated to newest version


Version 1.3.8

- updated for Witch's Bog


Version 1.3.7

- updated for Ashlands

Version 1.3.6

- update for Valheim 0.271.22

version 1.3.5

- cleaned up some wording in the gui when hovering over a torch with "stay lit" feature turned on.


version 1.3.4

- updated for Hildir's Request


version 1.3.3

updated to newest Valheim Version 0.214.300



Version 1.3.2

- Updated to newest Valheim patch



Version 1.3.1


- No changes.  Version bump to match Thunderstore



Version 1.3.0

- Added the ability to individually control Stay Lit and On Timers



Version 1.2.1

- fix for firepits not going out when buried underground
- fix for torches not turning off when out of fuel if configured to take fuel

Version 1.2.0

- Completely rewritten 
- New Configuration options
- New easier to use timer settings
- ability to add custom items

Version 1.1.0

- ServerSync and versioncheck added.
- Fixed Interact bug when not using fuel
- Fix incompatibility with my NoSmokeStayLit mod

Version 1.0.0

- Intial release of mod - complete rewrite of TimedTorches_Fixed.
- Original Timed Torches mod was by Gurrlin.  Listed here for credit as this was originally his idea.

##	Now for the shameless plug

> ### My Other Mods:
>>* [No Smoke Stay Lit](https://valheim.thunderstore.io/package/TastyChickenLeg/NoSmokeStayLit/)
>>* [No Smoke Simplified](https://valheim.thunderstore.io/package/TastyChickenLegs/NoSmokeSimplified/)
>>* [Honey Please](https://valheim.thunderstore.io/package/TastyChickenLegs/HoneyPlease/)
>>* [Automatic Fuel](https://valheim.thunderstore.io/package/TastyChickenLeg/AutomaticFuel/)
>>* [Forsaken Powers Plus](https://valheim.thunderstore.io/package/TastyChickenLeg/ForsakenPowersPlus/)
>>* [Recycle Plus](https://valheim.thunderstore.io/package/TastyChickenLeg/RecyclePlus/)
>>* [Blast Furnace Takes All](https://valheim.thunderstore.io/package/TastyChickenLeg/BlastFurnaceTakesAll/)
>>* [Timed Torches Stay Lit](https://valheim.thunderstore.io/package/TastyChickenLeg/TimedTorchesStayLit/)
