Read this first!    
 
nonchalant-unilinear
April 24, 2024, 05:44:03 AM +0100 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Series
Recent
Forthcoming
News: Upcoming Events are as follows: 1 - RRE/AC/ACC Sunday - No event ; 2 - GTL Monday - No event 3 - AC Wed - No event 4 - RRE Thursday - No event

RACE SERIES KEY A19=Assetto Corsa, E10=Raceroom Experience, L23=UKGTL GT Legends, LN2=Legacy NoGrip GT Legends, LNE1=Legacy NoGrip GT Legends Endurance races
 
  Start Here      Home   Help Search Calendar Login Register     LM2 Replays Downloads Rules Links Circuits Teams  
Pages: [1]
  Print  
Author Topic: H@L's weather system  (Read 1231 times)
0 Members and 1 Guest are viewing this topic.
H@L9000
Director, UKGTR
SimRacing.org.uk Staff
Sr. Member
****
Posts: 2492



View Profile
« on: June 11, 2011, 10:37:37 PM +0100 »

I have re-done my weather system for GTR2 you can download it here:
http://www.gamefront.com/files/20560782/H_LweatherGenJuly2011_rar

Short description of the system bellow, feel free to comment on any thing, ask questions or give suggestions:

DESCRIPTION OF GENERATION PROCESS

Enter weather details. This is done by the user.

Calculate following parameters to match current conditions in forecast (start conditions, time in weather file =  0.00):
-Start track temp +8 to -3 of user input for ambient temp.
-Start condition based on user input for current condition.
-Decide if rain will occur based on probability of rain.
-Level of rain that will occur based on level of precipitation.
-Initial on path and off path wetness based on level of rain.

Create random number to say how many changes will occur. Range of number created will be between 1 for every 15 mins (race time divided by 15) and race time divided by 3 (race time entered by user).

Generate list of condition values, one for each change that will occur. The list of conditions will meet the forecast input by the user, will not allow unrealistically fast condition changes and will use some or all of the available spread of conditions values possible given race time and difference in start condition and forecast condition (changeability). The condition list generation is done using an optimisation technique known as a ‘Genetic Algorithm’.

Once the list of conditions values has been generated, the temperature changes are determined. The temperatures will be randomly generated in the range of smallest of start and forecast temp to biggest of start and forecast temperatures. The difference from one temperature change to the next is based on the time difference between the two changes. Two times close together will not allow a large difference in temperature but two times far apart will.

The generated values are then written to the weather file. The forecast part of the system then reads the weather file and splits up the weather into 3 separate sectors, early, mid and late race forecast. The weather generation system outputs the forecast for the 3 session (and makes a forecast file) with a slight level of randomness added. The randomness means that the conditions values read can be up to 10% off. This means that it could report slight inaccuracy but not massive inaccuracy.

UPDATE - July 2011 version of weather gen system added. See post bellow for changes.
« Last Edit: July 16, 2011, 06:54:03 PM +0100 by H@L9000 » Logged

Open the Pod Bay door please H@L...
H@L9000
Director, UKGTR
SimRacing.org.uk Staff
Sr. Member
****
Posts: 2492



View Profile
« Reply #1 on: July 16, 2011, 06:56:26 PM +0100 »

The weather system would have given error messages if your copy of Windows was not fully up to date to I have done a few changes to prevent that.

The generation system itself has had no changes so weather files will be the same. If you have the June 2011 version and it works then no need to download the July 2011 version.
Logged

Open the Pod Bay door please H@L...
Pages: [1]
  Print  
 
Jump to:  

Hosted by DaveGymer.com
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.277 seconds with 24 queries.