People who liked this post

  • Community
  • Log In
Sim is running...
General MFN Discussion
  • ‹
  • 1
  • 2
  • ›
BleastMlode
Re: Sim is running...
by BleastMlode @ 2/08/2022 3:00 pm
Weather Data

One aspect of creating a football simulation that is easy to take for granted but quickly becomes challenging is how to create realistic weather patterns for your games. Especially if you have a league where cities are close together, if you have a major snow storm during a home game in Denver but have a beautiful sunny day in Colorado Springs, that just feels unlikely. (Actually, growing up in Denver, I do realize it's probably more likely than I am giving it credit) Actually, it's entirely possible to build an entire league within a single city, and if that is the case, you should expect every game to have similar weather as theoretically they would be being played within a few miles of each other.

So with those restrictions in mind, I didn't want to just randomly generate weather for each game based on typical weather patterns for that location. No, I needed something more robust than that. I decided to map each league season to a real, historical year, and pull weather data for the actual day in that year. For example, year 2046 for League 1 might be mapped to 1995, so a game on September 23 in Denver should look up September 23, 1995, resulting in a cloudy day at 56 degrees with 8mph winds. Precipitation is taken from the precipitation probability for that day, and then a dice roll is performed to determine whether there is precipitation. Then, if there is precipitation, the type of precipitation (rain or snow) is determined by the temperature.

MyFootballNow uses the Visual Crossing API to look up the historical weather data for the selected date, which is fantastic because they provide historical weather data from around the world, instead of just the United States (which many services are limited to). This enables us to produce realistic weather for any city in the world.
BleastMlode
Re: Sim is running...
by BleastMlode @ 2/08/2022 3:00 pm
Weather Data

One aspect of creating a football simulation that is easy to take for granted but quickly becomes challenging is how to create realistic weather patterns for your games. Especially if you have a league where cities are close together, if you have a major snow storm during a home game in Denver but have a beautiful sunny day in Colorado Springs, that just feels unlikely. (Actually, growing up in Denver, I do realize it's probably more likely than I am giving it credit) Actually, it's entirely possible to build an entire league within a single city, and if that is the case, you should expect every game to have similar weather as theoretically they would be being played within a few miles of each other.

So with those restrictions in mind, I didn't want to just randomly generate weather for each game based on typical weather patterns for that location. No, I needed something more robust than that. I decided to map each league season to a real, historical year, and pull weather data for the actual day in that year. For example, year 2046 for League 1 might be mapped to 1995, so a game on September 23 in Denver should look up September 23, 1995, resulting in a cloudy day at 56 degrees with 8mph winds. Precipitation is taken from the precipitation probability for that day, and then a dice roll is performed to determine whether there is precipitation. Then, if there is precipitation, the type of precipitation (rain or snow) is determined by the temperature.

MyFootballNow uses the Visual Crossing API to look up the historical weather data for the selected date, which is fantastic because they provide historical weather data from around the world, instead of just the United States (which many services are limited to). This enables us to produce realistic weather for any city in the world.
BleastMlode
Re: Sim is running...
by BleastMlode @ 2/08/2022 3:00 pm
Weather Data

One aspect of creating a football simulation that is easy to take for granted but quickly becomes challenging is how to create realistic weather patterns for your games. Especially if you have a league where cities are close together, if you have a major snow storm during a home game in Denver but have a beautiful sunny day in Colorado Springs, that just feels unlikely. (Actually, growing up in Denver, I do realize it's probably more likely than I am giving it credit) Actually, it's entirely possible to build an entire league within a single city, and if that is the case, you should expect every game to have similar weather as theoretically they would be being played within a few miles of each other.

So with those restrictions in mind, I didn't want to just randomly generate weather for each game based on typical weather patterns for that location. No, I needed something more robust than that. I decided to map each league season to a real, historical year, and pull weather data for the actual day in that year. For example, year 2046 for League 1 might be mapped to 1995, so a game on September 23 in Denver should look up September 23, 1995, resulting in a cloudy day at 56 degrees with 8mph winds. Precipitation is taken from the precipitation probability for that day, and then a dice roll is performed to determine whether there is precipitation. Then, if there is precipitation, the type of precipitation (rain or snow) is determined by the temperature.

MyFootballNow uses the Visual Crossing API to look up the historical weather data for the selected date, which is fantastic because they provide historical weather data from around the world, instead of just the United States (which many services are limited to). This enables us to produce realistic weather for any city in the world.
Blondie1977
Re: Sim is running...
by Blondie1977 @ 2/08/2022 6:26 pm
raidergreg69 wrote:
What in the world of spam is this ****? Several posts copying and pasting league pages/rules.

No idea. Clearly I'm not in on this joke.
Liked by raidergreg69
Hellbringer
Re: Sim is running...
by Hellbringer @ 2/08/2022 8:30 pm
Need to do something during "60" minute spin cycle of way over 60 minutes
Liked by Blondie1977
Blondie1977
Re: Sim is running...
by Blondie1977 @ 2/08/2022 9:01 pm
Hellbringer wrote:
Need to do something during "60" minute spin cycle of way over 60 minutes

Well after the D&D sim tonight (which still hasn’t finished) I get it.
raidergreg69
Re: Sim is running...
by raidergreg69 @ 2/08/2022 9:07 pm
Blondie1977 wrote:
Hellbringer wrote:
Need to do something during "60" minute spin cycle of way over 60 minutes

Well after the D&D sim tonight (which still hasn’t finished) I get it.

The circle on my screen goes round and round, round and round, round and round

The circle on my screen goes round and round all night long
Liked by Hellbringer, Blondie1977
  • ‹
  • 1
  • 2
  • ›
Copyright ©2013-2026 Catalyst Productions | Weather data powered by Visual Crossing
Website Version ca52262
Terms & Conditions | Privacy Policy