0 of 0

File information

Last updated

Original upload

Created by

Flueno

Uploaded by

Flueno

Virus scan

Safe to use

Tags for this mod

About this mod

Allows to adjust night/day time duration.

Permissions and credits
Changelogs
  • Tune morning/day/evening/night relative duration on a days time-curve.
  • Friendly to servers/clients with vanilla time-duration since it doesn't change total days duration.
  • Optionally - adjusts wake up time to a 'rescaled' time-curve.

How it works:
Games day lasts for 30 minutes. Config allows you to change time-curve  in an "at X minute of a days gameplay I want Y ingames day-hour to be" fashion. On the chart bellow ingame 7-hours point shifted to occur on 3rd minute (instead of vanillas 6min). by default - symmetrical point for the evening time is calculated.



Configuration options:
- Configure time-curves (first) point by adjusting timePointRealMinute and  timePointDayHour config options. Second point is calculated automatically.
- Set any number of points manually: enable advancedModeEnabled and configure points manually in advancedModePointsStr config option (example is in the config).
- (if you are hosting a game) Adjust wakeup time by enabling wakeUpHourAdjustmentEnabled and setting wakeUpHour config option.

- Recommended: install latest [BepInEx.ConfigurationManager]
- Start the game. Adjust config via ConfigurationManager while playing game (press F1 while in menu or at inventory UI)
- From a config file at `Valheim\BepInEx\config\flueno.TimeScale.cfg`. Requires game restart.

Other notes:
- Default games time-curve is not linear. Mod uses this built-in day-fraction-rescaling concept to work.
- WakeUpHour adjustment will work only for a server/host. If you are not games host or host has the mod but joined player doesnt - you will wake up slightly before or after sunrise point (ingame 6h)
- I've added ability to change days duration but it is NOT recommended:  day-number, sleep-time and weather effects might end up out of synch in multiplayer environment.
- I've tried aedenthorn's time-mod but it produces duplicated mornings and evenings with occasional sharp daylight-shifting. Wanted to come up with a fix but ended up solving time-editing from another angle.
- Input validations are not yet implemented. Potentially you can break something or occasionally inverse a time flow :)
- You can plot configured time-curve by enabling debugEnabled and using csv-ready data points from log file.


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