New tool in v1.1 to add custom modded weather states (for mod developers)... Change weather states at any time, as well as force your chosen state on game launch... With optional toggle to force during questing...
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
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 must get permission from me before you are allowed to use any of the assets in this file
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
This author has not provided any additional notes regarding file permissions
File credits
rmk1234 for being the first to make a weather select menu with their Weathermancer mod Psiberx for Cron.lua (used for delay timers) CET dev team for making CET
Donation Points system
This mod is opted-in to receive Donation Points
Changelogs
Version 1.3
Added 3 custom window themes to choose from in the settings tab (CET default theme is still the default option)
Version 1.2
Updated dev tools in the script to simplify the process for mod authors to add custom states... Now, the exported script will only include buttons that the user assigns names to in this mod's interface, instead of including all 10 buttons and requiring the user to manually delete unused ones from the exported script...
Version 1.1
Added button in settings tab to generate a new tab that mod developers can use to add custom weather states... The mod dev can export as an entire new CET script in .txt format (the file will be name init.lua.txt)... This new script will add a new permanent tab to this mod's window with buttons for your custom states... All you need to do is change the file extension and put it in it's own CET mods folder with a unique name, then publish and require this mod as a dependancy... You will also need to delete any unused buttons from the script before publishing (I plane to eventually make this more flexible so it's not necessary)...
Version 1.0
Increased "priority" of forced weather states to make them affect all areas of the game and quests better (of course, still only affects quests if you toggle the option)
Version 0.420
Added reset weather button to "Buttons" tab in CET overlay... Also added a Native Settings UI mod menu... Both the CET and Native menus can be hidden with toggles in each other's menus...
Version 0.2a
Updated main file to include the "Buttons" menu from the old optional version in a new tab of the same window... Script will save which tab was active last and set it as the default tab on game launches...
Version 0.1b-buttons
Added alternate version with buttons instead of a drop-down menu for weather state selection... I may end up combining the 2 versions and make a toggle to swicthc between the drop-down menu and the buttons all in one window...
Version 0.1b
Added "Apply" button instead of automatically setting the state when selected
Version 0.1a
Initial Release - Currently still a WIP (will be updated to v1.0 when I consider it fully complete)... From my testing, it works fine, but I haven't played through the entire story to ensure that 10 minutes is a long enough delay timer for all quest objectives (and it likely isn't, but I think it will work well enough)... Also, I would like to eventually find a way to swap the weather back without the timer (may not really be possible, though)...
It adds a menu to CET overlay that allows you to select weather states, and force them for the remainder of your play session
It also adds a new menu to Native Settings UI's mods menu (contains same settings as CET window)
Each menu (the CET overlay and NativeUI menu) has a toggle to hide the other menu, and I suggest to hide the one that you don't intend to use...
Unlike other mods that allow swapping weather, this will automatically swap when you start/load a game
Also unlike other mods, this has a toggle to disable the forced weather altogether while questing (mostly, at least)
Lastly, as of v1.1, this includes what is basically a visual scripting tool that will allow mod authors to add a new temporary tab to this mod's window, then build an actual permanent tab inside of it, which can be exported as a full new script... The mod author will only need to change the file extension to .lua and move in into it's own CET mods folder... This new script can then be published and the author can require this mod as a dependency to add the tab to this mod's window... Note that this does not currently add options to the NativeUI menu, but I may make it do so in the future... As such, you (mod authors) should mention in your addon mod's description that the user should use the CET overlay window...
How does it detect questing to reset weather and how does it set it back after done questing?
It detects that you are questing by detecting when your current quest objective is updated (meaning that you finished an objective)...
When it detects this, it resets the weather for a set amount of time (adjustable in the menu), then forces your selected weather state again
The timer selection is in seconds... The lowest timer is 60 seconds (1 minute), and the highest is 600 seconds (10 minutes)
The default timer is set to 300 seconds (5 minutes)... Adjust this depending on how long you usually take to complete an objective (should be set a bit higher than you actually would normally take)... If you rush through the game, lower timers may be fine, but if you like to explore during quests, you may want a higher timer... I have kept this at default for my testing and so far has been good, but I have been rushing (through Phantom Liberty storyline)...
Most objectives in the game are only around 0-3 minutes apart for the average player (trick used by a lot of games to keep up player engagement), so this should work pretty good...
After the timer runs out and the weather sets back to your selection, it will not revert to default again until your objective changes again... Due to this, it is possible that it could swap while you are still questing, so higher delay timers are strongly recommended... If it does still end up swapping when you don't want it to, you can always use the menu to reset or force another state...
Installation:
Extract to main CP77 install folder or install with Vortex
Uninstallation:
Delete the "ForceWeatherOnLaunch-OptionalForcedQuests-CET" folder from your [CP77>bin>x64>plugins>cet>mods] folder or uninstall with Vortex
Note: The overlay window starts out fairly large, but is resizable and CET will save the size for future game launches
Credits to u/rmk1234 (creator of Weathermancer) for being the first to make a weather select menu... Also thanks to Psiberx for Codeware so this is possible at all...