0 of 0

File information

Last updated

Original upload

Created by

DefenTheNation

Uploaded by

defenthenation

Virus scan

Safe to use

Tags for this mod

About this mod

This mod adds the ability to change how long each 10 minute increment occurs. Two new commands are added to the SMAPI console to enable/disable this mod and to change the multiplier. Want to double your day? Change the multiplier to 0.5. Want time to progress at double speed? Change the multiplier to 2. Customize your experience.

Requirements
Permissions and credits
Requires:
SMAPI 3.1+

To use this mod, start the farm (single player or co-op). When the farm is fully loaded, go to the SMAPI console and use the following commands:

time_multiplier_toggle - enables/disables the time multiplier
Usage: time_multiplier_toggle

time_multiplier_change - sets the time multiplier
Usage: time_multiplier_change 0.8

The config is saved automatically after each command. The config file is unique for each character. The mod works for multiplayer, but the host has to enable the mod and set the multiplier.


FAQ

Do I have to set the time multiplier when I start a new farm or add this mod to an existing farm?
Yes, farms must be configured just once. Once configured, the mod will take care of the rest, including loading your multiplier when you load the farm!

Do I have to set the time rate every time I load my farm?
No, the mod handles all that for you based on what you set when you initially configured the farm.

Do clients need the mod for it to work in multiplayer?
No, only the host needs the mod as the clock is handled by the host. Clients do not even need the mod installed. Because of this, the mod won't make changes if you are a client.

How does the mod work?

StardewValley.Game1.gameInterval is an integer that increments based on the game clock (XNA GameTime object) and after 7000 milliseconds, the game clock is incremented by 10 minutes. Game1.gameInterval is then reset to 0.

This mod captures the gameInterval on the tick and compares it with the gameInterval from the previous tick. The delta (change) is then multiplied by the multiplier set by the player. The new delta is then added to the last tick's interval to create this tick's interval.

This is a bit of a hack in order to get into the time mechanics, but the 7 second limit is hardcoded into the function, and this was the only way to hook into the time mechanic of the game.

Source