Jump to content


- - - - -

77A Night Patch V2.25


  • Please log in to reply
42 replies to this topic

#1 Lee200

Lee200

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,388 posts
  • Gender:Male
  • Sim interest:GPL

Posted Mar 05 2017 - 05:20 PM

I've just completed work on a new patch which I think you will have fun with.  It's called the Night Patch and you can download it from my website located here:

http://gplmotorworks.gplworld.de/

Thanks to the '55 Mod team for their test support and especially to Stefan Roess for hosting the website.

BTW, Stefan has cooked up a nice surprise for everyone too.  :)

https://www.youtube....h?v=zKjjnPRVixg

Enjoy,

Lee

----------

What Is It?:

The Night Patch changes the sky from day to night then back to day in order to simulate a 12 or 24 hour race during any length GPL race.  It works during qualification and race for all mods, all country .exes, and the D3D7v2 and OpenGLv2 rasterizers.

Its most obvious use is to simulate 1967 Sports Car races that ran at night; however, there is nothing wrong with using it elsewhere such as a 1965 F1 race at Monaco or a 1971 CanAm race at Road America.

How Does It Work?:

The Night Patch uses GPL's Fog Effect which, before now, could only apply a fixed density, gray colored fog throughout qualification and race.  This patch not only changes the visibility, but also the fog color to simulate day (light blue), sunset (pink), night (black), and sunrise (light yellow).  Normally, the fog's density and color are constant as set in the track.ini file, but the Night Patch automatically and continuously changes the density and color on-the-fly and track.ini file settings aren't needed.

See the separate Fog Effects Notes file for a history of the Fog Effect in GPL and more techie stuff.

How Do You Use It?:

See this link to my website which contains the link to download the Night Patch and how to add patches:

http://gplmotorworks.gplworld.de

I place the Night patch in one of the Options directories to make it easy to turn on and off with GEM+'s checkbox.

Important--the patch only works with v2 rasterizers!

What Should You Expect To See?:

The Night Patch continuously adjusts the Fog Effect during qualification or race.  It uses an "event time" which is the actual time for a qualification period or an estimated time for a race.  Here is the change schedule:

1.  Day Color:  Begins at qualification and race start.
2.  Day Color To Sunset Color:  Begins at 33% of the event time.  Lasts for 60 seconds.
3.  Night Fade In:  Begins as soon as the day to sunset color change is complete.  Lasts for 60 seconds.
4.  Night Fade Out To Sunrise Color:  Begins at 67% of the event time.  Lasts for 60 seconds.
5.  Sunrise Color To Day Color:  Begins as soon as the night fade out is complete.  Lasts for 60 seconds.
6.  Day Color:  Begins as soon as the sunrise to day color change is complete.  Lasts until the end.

Day to sunset color change and night fade in beginnings are adjusted for longer qualification periods, but the fades and transition durations are fixed at 60 seconds in order for the patch to work during short Novice races.

As an example, assume you are doing a Pro-Short qualification which lasts for 30 minutes.

1.  Qualification Start:  Day color.
2.  20 Minutes Remaining:  Day color to sunset color transition begins.
3.  19 Minutes Remaining:  Sunset color to night fade in begins.
4.  18 Minutes Remaining:  Night begins.
5.  10 Minutes Remaining:  Night fade out to sunrise color begins.
6.  9 Minutes Remaining: Sunrise color to day color transition begins.
7.  8 Minutes Remaining: Day color begins.

For the race, a similar schedule is followed, but the race time is estimated by using the track length and number of laps.  As an example, if you were doing a 100 lap race, the day to sunset color transition would begin about lap number 33.  The night fade out to sunrise color would begin about lap number 67 so you would drive 34 laps at night.  Note that these lap numbers aren't exact as they are based on the race time estimate.

Replays:

The patch works during replays.  All the replay buttons such as fast forward, pause, .etc, and the time slider work normally and the Fog Effect is automatically updated.  If your replay includes qualification and race segments, the patch will automatically recompute the event time accordingly and display the corrected Fog Effect based on the new event time and current elapsed time.  You can use a saved replay as well as the normal qualification/race replay screen.

Other Notes:

1.  It does not work during training.  Training has no time limit so there is nothing on which to base fog changes.
2.  If you enter and exit your car or use the replay time change features, elapsed time and the fog display may no longer be in real time.  Press the "Live Feed" button to synchronize the display.  This is not a bug with the patch, but is a feature of GPL.
3.  To minimize possible frame rate degradation, fog changes are purposely limited to twice per second.  This may create a slight flickering effect when the fog is most dense.
4.  The patch was tested online and all players see the same Fog Effect at the same time even if they join the server at different times.
5.  The Fog Effect is always active so it may partially obscure the horizon at some tracks even during the day.  Some tracks have a distant horizon which makes them more susceptible to the effect.  Tracks with closer horizons, such as Monaco, are not obscured very much.
6.  Don't use the Night Patch at the same time as the Weather Patch as they conflict with each other.

Bugs:  The patch was extensively tested and has one known issue:

1.  It does not work for the Grand Prix race length which has two qualifying sessions.  It works fine for all other race lengths.

Attached Files


Edited by Lee200, Mar 06 2017 - 07:50 AM.


#2 jxeboy

jxeboy

    GPLaps

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 199 posts
  • Gender:Male
  • Interests:GPL
  • Sim interest:GPL

Posted Mar 05 2017 - 06:09 PM

Whoa mega, can't wait to try this out!

#3 John Woods

John Woods

    Be Somebody

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 2,198 posts
  • Gender:Male
  • Interests:Too Much Fun
  • Sim interest:GPL

Posted Mar 05 2017 - 06:49 PM

Thanks Lee. Something special yet again.

:D

Just in time for Sebrng!

Coincidence?

#4 Andreh

Andreh

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 190 posts
  • Gender:Male
  • Location:Rio de Janeiro, Brazil
  • Interests:Pre-80's racing
  • Sim interest:GPL

Posted Mar 05 2017 - 07:21 PM

amazing stuff.
I guess we can simulate grand prix race length by increasing lap number to mach pro long redution.
Thanks Lee!

#5 fajanko

fajanko

    Jani Posta

  • GPLLinks Team
  • PipPipPipPipPipPipPipPipPipPip
  • 824 posts
  • Gender:Male
  • Location:Hungary
  • Interests:"I am a semi-professional race car driver AND an amateur tattoo artist."
  • Sim interest:GPL

Posted Mar 05 2017 - 11:55 PM

Great! Many thanks!

#6 Stefan Roess

Stefan Roess

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 1,690 posts
  • Gender:Male
  • Location:Bavaria, Germany
  • Interests:racing :)
  • Sim interest:GPL and P&G

Posted Mar 06 2017 - 12:31 AM

Night Patch for Grand Prix Legends Promotion Movie
https://www.youtube....h?v=zKjjnPRVixg

:wave:

#7 francesco

francesco

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 177 posts
  • Gender:Male
  • Location:COMO (Italy)
  • Interests:GPL
  • Sim interest:GPL

Posted Mar 06 2017 - 01:37 AM

Thank you Lee,a fantastic work. :thumbup:

#8 marco lenarduzzi

marco lenarduzzi

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 106 posts
  • Gender:Male
  • Location:brome lake Quebec, Canada
  • Interests:racing sims,cars, F1,cooking,skiing
  • Sim interest:GPL

Posted Mar 06 2017 - 02:00 AM

Wow ! That's pretty cool ! Downloading . Thanks Lee. :up:

#9 Remy

Remy

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 508 posts
  • Gender:Not Telling
  • Interests:GPL
  • Sim interest:GPL

Posted Mar 06 2017 - 04:04 AM

Many thanks Lee, another great patch from you :thumbup:

#10 Lord

Lord

    Mr. Broken Gearbox

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 126 posts
  • Gender:Male
  • Location:Latina, Italy
  • Interests:Formula 1, Football (Soccer), Grand Prix Legends and rFactor
  • Sim interest:GPL

Posted Mar 06 2017 - 05:26 AM

Who needs Assetto Corsa? Who needs RF2? Who needs pCARS? Only thing we need is a comprehensive modding manual for GPL and even iRacing will be blown out of the water Posted Image

#11 Gartner

Gartner

    Jo Gartner - Helmuth Koinigg - Hermann P. Müller Karl Kling

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 111 posts
  • Gender:Male
  • Interests:GP History, Music
  • Sim interest:GPL

Posted Mar 06 2017 - 08:37 AM

:up:

This is great! Looks like a GTR2 feature in GPL. ;-)
Things like that plus bobblehead plus fullscreen mode are keepin' good old GPL alive! :thankyou:

Edited by Gartner, Mar 06 2017 - 08:39 AM.


#12 efarina

efarina

    Ludovico Scarfiotti

  • Members
  • PipPip
  • 7 posts

Posted Mar 06 2017 - 09:57 AM

thanks lee, there are still people who  love GPL  

:woohoo2:

#13 jxeboy

jxeboy

    GPLaps

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 199 posts
  • Gender:Male
  • Interests:GPL
  • Sim interest:GPL

Posted Mar 06 2017 - 09:57 AM

Lee, is there any way to extend the length of the transition, or do they always take 1 minute between each phase?

#14 jxeboy

jxeboy

    GPLaps

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 199 posts
  • Gender:Male
  • Interests:GPL
  • Sim interest:GPL

Posted Mar 06 2017 - 10:19 AM

View Postjxeboy, on Mar 06 2017 - 09:57 AM, said:

Lee, is there any way to extend the length of the transition, or do they always take 1 minute between each phase?

Also I noticed your note about making it compatible with short races. How about basing it off of a percentage for every session? Do you have the variables available to calculate a percent of time that should be spent in each phase?

#15 Lee200

Lee200

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,388 posts
  • Gender:Male
  • Sim interest:GPL

Posted Mar 06 2017 - 11:52 AM

View Postjxeboy, on Mar 06 2017 - 09:57 AM, said:

Lee, is there any way to extend the length of the transition, or do they always take 1 minute between each phase?

Yes, that is already on the list for a revised version.  However, it took me two months to make this patch as it turned out to be more difficult than I originally thought.  The main difficulty was ensuring that all online players saw the same effect at the same time.

I'm going to wait to see if anyone uses the patch first before making revisions to it.

Edited by Lee200, Mar 07 2017 - 11:13 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Sim Racing Links