-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Periodic weather events #8
Comments
Love this idea, I think you're right that it can be merged with the proposed in-game region based weather. If we get in-game region based weather working, eg. Barbarian village is raining, on a CSV or JSON feed basis, then we can periodically shuffle that data feed of regional weather to reflect the algorithmic changes you're describing. Then, as you describe, it could be cold in Lumbridge on a given day and all users of the plugin with In-Game-Regional-Weather enabled will get the appropriate cold weather. Now I know there's an appetite for more granular changes between regions I'll program that into any region weather system I build, originally I was going to do the basis on/off for the various effects. Note to readers; The in-game region-based weather proposal is not to be confused with the real-world location aware weather (which is currently awaiting a merge by the Plugin Hub maintainers). EDIT This can work with real-world location matching too but I'd like to let that feature lay untouched for a while as it had some very messy development and hasn't been merged by the Hub maintainers yet. |
Having a JSON map of weather values for the game regions sounds good. We could check for tiles that match a certain region, for reference here is a good region map with IDs overlayed to get an idea of what range of IDs are in a similar geographical region: |
Hi @Billybishop, so I have been working on this (Sorry I'm a year late lmao). I hope to release soon but no promises. I've attached some work in progress videos and screenshots here. I tried Region based weather but it felt strange and too blocky. So I went to Tile based instead. I was really keen to tie it into the world map too, after some real headaches I got the following working using a SimplexNoise algorithm. This algorithm does a great job at generating infinite sets of smooth patterns that mimic real weather forecast maps pretty well. Screen.Recording.2023-06-11.at.19.28.42.mp4Things to note here:
Things I want to do before I'm happy to publish:
Things that could be cool:
|
This should be labeled as an enhancement, also if you want to mark it help wanted then I may be able to contribute a proof of concept when I come into some free time.
To go along with the other enhancement of location-matching, I thought of this idea which would be a great addition to making this plugin more immersive and seamless with the game world.
The goal of this enhancement is to provide a configurable probability section in the plugin's settings. The probability should be tied to some basic weather parameters, with some of them being affected by the location-matching feature. To start with we could use these basic parameters to affect the probability of certain weather events:
There are a few others we could define, which wouldn't add much additional value to the simulation, so to keep things relatively simple and easy to implement I think the only necessary ones are the above listed.
For a description of how this should work:
Due to the nature of this enhancement, depending on which enhancement is completed first (this or the location-matching), the location-based values can use predefined ranges for each parameter that are configurable within the settings to use as a placeholder.
The text was updated successfully, but these errors were encountered: