From the scientists who brought you the Weather Machine, introduce Ambient light. Ambient Light is an alternative lightweight mod that only includes the popular Ambient Light Feature. Ambient Light allows you to experience various atmospheric effects in-game based on current physical weather conditions
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou are not allowed to use assets from this file under any circumstances
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
In order to be considered for access to any of my mod's source code, you must reach out to me via PM and provide some specific information about your project and you'll be asked to sign a Software License and a Non-Disclosure Agreement.
After these documents are signed and there aren't any questions, you will be provided an API key to access the backend for development purposes.
Note: Creating add-ons to the SDVWM Platform does not require a software license agreement and can be forked from here directly. https://github.com/SixthTitan/SDVWM_Example_Addon
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is opted-in to receive Donation Points
Changelogs
Version 2022.7.31
You can now use Time cheat mods like CJB Cheats Menu to change the time in game, when the time is changed through cheats Ambient Light will instantly change the daylight cycle to the newly changed time instead of getting offset from dependence of Game Time Events.
Added final preparations to the backend for Ambient Light.
Removed Fog Overlay from the code (It's been causing more harm than good)
Reduced lines of code
Rewrote DayLight Cycle code to support more weather conditions in one single function instead of separately.
Fixed an error where an exception is thrown when the user Returns to the Title screen.
Added Krobus as a location not to run Ambient Light to prevent time from skipping while inside.
Version 2022.6.25
Implemented a mod-wide backend change to further harden mod security on the client-side. (Other mods will follow suit later this summer)
Added Light Config: Players can now manually select their desired light configuration from 1-5. (See Main page for options)
Ambient Light will now get forecast data when EnableRealTime = False every day instead of just at game launch.
Version 2022.6.12
Resolved "Constant orange hue in all areas"
Restored Ambient Light indoors (The ambience feels more seamless when it's already indoors vs going outside and having it applied after an x amount of ms)
Reduced the amount of contrast for Overcast weather condition for the spring season.
Updated the ambient day/night cycle for Overcast weather conditions for the spring season.
Fixed versioning issue in the mod's manifest file.
Version 1.08.4-Release
Fixed manifest.json versioning issue.
Version 1.08.3-Release
Added a new custom color scheme for the winter season (The light will be more darker during the morning and night time will start sooner in comparison to the warmer season)
Updated to support SMAPI 3.12.x
Ambient Light will now properly color the world during a snowstorm. (This means that the world will be colorized throughout the day regardless if it's snowing or not. Note: This doesn't work for Rain and Thunderstorm conditions due to the constant flickering issue.
Ambient Light will now take over the fog and condition overlay functions that were originally part of the SDVWM_Environment package. The SDVWM_Environment package is being decommissioned and it's primary functions will be integrated to each of my current mods. (I need to keep the amount of mods I manage at a reasonable amount)
When it snows, rains, overcast, or thunderstorm; Ambient Light will apply an overlay which will bring an additional amount of realism to the game in addiction to the color.
Added Overcast and Clear Light Ambience colors for the Winter season.
Fixed an issue where Ambient Light would flicker constantly when the player is in the Secret Woods.
Fixed missing condition clock check for 6-8am hours during the winter season for Clear.
Ambient Light will no longer run when the player is in the Movie Theater.
Ambient Light will stop running while time is at a paused state to ensure that the time lapse of lighting is accurate and following current time.
Added new color overlay for rain condition.
Updated Logic to check built-in game boolean values for determining the season from previous string values.
Cleaned up old code.
Ambient Light will no longer run while indoors.
Added support for additional weather condition types.
Color overlays will now only render when it matches the specific weather condition and if it's also raining, snowing, or lighting in the game. It will no longer render if both of these conditions are not met. (This is to ensure that the color overlays do not blend with each other when there's a different weather condition and it's also snowing, raining, or thundering out)
Added missing summer clear weather condition (It wasn't implemented yet in the preview builds)
Fixed an issue where the light contrast would suddenly change between 5-6pm in such a high difference that it would ruin the color immersion of the game play.
Added missing summer overcast weather condition (It wasn't implemented yet in the preview builds)
Rewrote the color sequence for Spring overcast
Made the Fall Overcast colors a little brighter to make the game feel more immersive.
Add variations of Light types based on the current season in game (Completed)
Version 1.08.3-4
The Flickering issue has now been resolved (I've identified and fixed the bug, I can confirm that the game will no longer flicker during rain, thunderstorm, and snowstorm events) A special thank you to the following users who have helped me get to the root of the issue (Theisgood1, iridiumbat, MinecraftDragon9, VAVAAVRAE)
Cleaned up and removed a lot of old code that's no longer in use.
Ambient Light will no longer be active when it's snowing in addition to raining and thunder storms.
Ambient Light will no longer rely on checking the time whether to stay active; when the game night time event is triggered the mod will simply stop running and if a new game day begins the mod will start up again unless certain weather types is active.
Temporarily removed draw lighting and global lighting settings for light contrast to help determine if it will resolve bug issue "Stuck at Dawn"
Version 1.08.3-3
Ambient Light will no longer be active during festival events
Updated manifest versioning to match previous build numbers
Moved Preview builds into Updates
Night time scheme will now last through 3am instead of 2am
Ambient Light will no longer run when it's raining or thundering in game regardless of condition being shown in the ini file
Removed duplicate cast with OneSecondUpdate Tick event and OneSecondUpdate Ticked event
General Code Cleanup
Version 1.08.3-2
Added support for Clear color scheme
Addressed a fix for black flickering during certain weather events (Rain, Thunder, Snow)
Clear Weather Conditions will have varying amounts of time before the morning sunlight fades as the day progresses. Currently for colder seasons the sunlight will slowly transition to a brighter state after 8am while for warmer seasons this transition begins sooner after 7am.
Clear Weather Conditions will have night time lighting happen sooner in the colder seasons (4pm) while in the warmer seasons will have longer day light periods before transitioning slowly to a night time color scheme (5pm)
The setting EnableRealTime has been re-enabled and weather conditions now get returned from our in-house provider and SDWVM.
When EnableRealTime is disabled, the condition will be set to Clear by default instead of Cloudy.
Version 1.08.3-1
Fixed an issue that caused a dramatic change in light contrast between 5-6pm
Fixed an issue where the mod would fail to maintain contrast after 6pm in the spring and summer seasons
Rewrote Ambient Light to now slowly apply contrast changes every 10th in game minute rather then every in game hour.
Ambient Light will now slowly move to a friendly night time ambient color scheme and no longer applies the standard stardew valley night time color scheme.
Fixed an issue where Ambient light would lose color focus after 7pm in game time.
Removed all other condition types for the time being (They will be back at the next major update!)
Modified the timing sequence to make the transition between contrast easier and seamless.
Fall and Winter months will have a darker color tone to reflect the change of season
Spring and Summer months will have a lighter color tone
Color changes will happen instantly rather than every 10th minute to ensure the contrast stays constant
Version 1.08.2
Fixed an issue where condition codes would not get returned if SDVWM wasn't installed. (I overlooked this and apologize, this was supposed to be in the code)
Removed InfoLog (I realized this may have came across as annoying for some users, so I've disabled this for the time being)
Improved File I/O Handling (Credit goes to PathsoChild for helping me with this)
Farmers can now disable the dynamic real-time weather reporting used by Ambient Light to get the condition code and set the Light type, by setting EnableRealTime to false. This will cause Ambient Light to fall back to Overcast condition code light type until this setting has been returned to true.
Version 1.08
Added additional condition codes
Added support for built-in house API Provider
Zipcodes are no longer required when using our Builtin provider
Adjusted the color for Cloudy conditions
IPGeo is no longer required when using our Builtin provider
Fixed an issue when running Ambient Light and SDVWM side by side for the first time; Where sometimes you would see Ambient Light throw a standalone mode notification in the console.
Version 1.07
General Bug fixes, replaced OpenWeatherMap with DarkSky and additionally enabled the option for users to use their zipcode to obtain weather data.
Version 1.06
Added the option for users to enter their own API key.
Added additional trial api keys
Finished the integration with SDVWM 2.0
Version 1.05
Added a custom Extension Manager:
Ambient Light will now communicate with future versions of The Weather Machine to get data rather than run duplicate reports.
Fixed a bug that always returned 801 code, was meant for debugging.
Version 1.01
Added Time Lapse seamless lighting for Cloudy weather Conditions and fixed numerous bugs.
Version 1.00
Initial Release
Donations
Both straight donations and premium membership donations accepted
Summary: Ambient Light has the same mechanics used in the Weather Machine, it's an alternative lightweight mod that only includes the popular Ambient Light Feature. Ambient Light allows you to experience various atmospheric effects in-game based on current physical weather conditions.
Important Announcements:
1/16/23: I will have limited availability during the grad semester. I have not abandoned my mods and will still be able to answer questions and work on updates. My response times however will be slow until the semester is over. I plan to work on releasing a couple of big updates when I have more time available in the Summer.
Upcoming Upgrades to the Backend: There will be scheduled upgrades to the backend later this July in order to further harden sensitive information such as geographical ip addresses's and weather forecast data. The backend will re-issue new key's and service urls. Currently only Ambient light is prepared for this change, SDVWM and Real Weather will be ready for the backend upgrades before this major change is made. (Once this change is implemented and there will be enough time in advance to make ready for it, all versions prior to 2022.07.31 will no longer return weather forecast data after these upgrades are complete.
Note: There will be no downtime during these upgrades as they will happen over the air.
State of the Mod Plans for 2021-2023:
Finish adding in the remaining weather condition light types (WIP)
Add an additional config option to tweak the level of contract based on current season in game
Add ability to set our own lighting configurations (Partially Completed)
Ambient Light Ambient Light is an add-on for the Weather Machine, it can either be used as a stand alone, or as a direct add-on to the Weather Machine. When ran in stand alone mode, the mod will function independently and allow you to experience various colorful seamless atmospheric affects in-game based on the user's physical location. It does this by getting a local weather report based on your area and then uses that data to determine how to set the lighting colors in game.
When ran directly along side the Weather Machine, Ambient Light will communicate with the Weather Machine and get the data directly from it, rather than manually get the data independently. This means that Ambient Light gets the local weather data from the Weather Machine rather than directly and then uses that data to function. You can either run this as a mod or you can run this along side the Weather Machine, it's entirely up to you. The color affects the game throughout the entire in-game day from morning to late at night. It allows you to experience a realistic color shading game play, based on real world events.
Best of all, this mod is directly supported by it's users, feedback is encouraged and helps me improve the mod and add the features you want to see. If you have a question or would like to suggest a new possible feature, head to the forums comment section and tell me how we can make Ambient Light better. Although, I may not be able to implement every feature requested. I will consider any feature request and depending on the length of time, amount of research required, and or whether it's free or not. I may be able to make this a future feature. or If you just want to tell me how am doing, hey that works too.
Main Features:
Mod Configuration: Users can tailor Ambient Light to their liking when the game first boots up a config.json will be generated automatically in the mod folder with the following settings:
EnableRealTime: Set to true to have Ambient Light fetch the latest condition from the back end, this allows the mod to set the type of Light in game. Set to false to not have Ambient fetch any data and therefore, use the standard Overcast light type. This setting is set to true by default.
LightConfig: 1=Cloudy, 2=Mist, 3=Fog, 4=Rain, 5=Snow (Currently only 1-3 are functional at this time)
Note: EnableRealTime must be set to False in order for LightConfig to take affect.
Ambient Light is currently supported for the following physical weather conditions:
Cloudy (Supported)
Mist (Partially supported)
Haze (Coming soon!)
Fog(Partially supported)
Overcast (Supported)
Clear (Supported)
Thunderstorm (Supported)
Rain (Supported)
Blizzard (Supported)
Snow (Supported)
Sleet (Supported)
Additional weather conditions will be supported in the near future.