Jump to content

Errors when starting "new" weather profile without "Weather FX Data"


mroshaw
Go to solution Solved by Josh,

Recommended Posts

Hello!

 

I'm trying to create some new weather profiles. I've started off simple, and gone for a cloudy day with a bit of light fog:

 

  1. Create > Procedural Worlds > HDRP Time of Day > Create Empty Weather Profile
  2. Name the profile "Cloudy Weather"
  3. In HDRP Time of Day component, Weather Settings > Add New Weather Profile
  4. Drop the empty profile asset into the profile
  5. Click "Copy Settings Over" and tweak fog and clouds
  6. Build and Run
  7. Click "Start Weather" for the new "Cloudy Weather"

 

Lots of errors:

NullReferenceException
UnityEngine.Object.Instantiate[T] (T original) (at <c6b52566f59b49fc861a7812a1ea2f6b>:0)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.StartWeather (System.Int32 weatherProfile) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1014)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayEditor.WeatherSettings (System.Boolean helpEnabled) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/Editor/HDRPTimeOfDayEditor.cs:1121)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayEditor.WeatherPanel (System.Boolean helpEnabled) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/Editor/HDRPTimeOfDayEditor.cs:520)
PWCommon5.EditorUtils.Panel (UnityEngine.GUIContent panelLabel, System.String helpKey, System.Action`1[T] contentMethod, UnityEngine.GUIStyle labelStyle, System.Boolean ignoreGuiChange, System.Boolean defaultStatus, System.Boolean showVersionNumber, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
PWCommon5.EditorUtils.Panel (UnityEngine.GUIContent panelLabel, System.String helpKey, System.Action`1[T] contentMethod, System.Boolean ignoreGuiChange, System.Boolean defaultStatus, System.Boolean showVersionNumber, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
PWCommon5.EditorUtils.Panel (System.String nameKey, System.Action`1[T] contentMethod, System.Boolean defaultStatus, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayEditor.OnInspectorGUI () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/Editor/HDRPTimeOfDayEditor.cs:84)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <77cfaa957c26445e8d2fa87bf3ff3fa6>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

 Weather was not setup with the starting values please call SetupStartingSettings() before calling Apply weather
UnityEngine.Debug:LogError (object)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayWeatherProfileData:ApplyWeather (ProceduralWorlds.HDRPTOD.HDRPTimeOfDayComponents,bool,bool,single,single) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayWeatherProfile.cs:33)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:ProcessWeather (bool) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1333)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:866)

MissingReferenceException: The object of type 'VisualEffect' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
ProceduralWorlds.HDRPTOD.InteriorControllerManagerData.SetWeatherParticleCollisions (System.Boolean value, ProceduralWorlds.HDRPTOD.HDRPTimeOfDayInteriorController controller) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayInteriorController.cs:234)
ProceduralWorlds.HDRPTOD.InteriorControllerManagerData.Apply (System.Boolean value, System.Boolean inMainBounds, ProceduralWorlds.HDRPTOD.HDRPTimeOfDayInteriorController controller) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayInteriorController.cs:64)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.CheckInteriorControllers () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1978)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:909)

 Weather was not setup with the starting values please call SetupStartingSettings() before calling Apply weather
UnityEngine.Debug:LogError (object)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayWeatherProfileData:ApplyWeather (ProceduralWorlds.HDRPTOD.HDRPTimeOfDayComponents,bool,bool,single,single) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayWeatherProfile.cs:33)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:ProcessWeather (bool) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1333)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:866)

MissingReferenceException: The object of type 'VisualEffect' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
ProceduralWorlds.HDRPTOD.InteriorControllerManagerData.SetWeatherParticleCollisions (System.Boolean value, ProceduralWorlds.HDRPTOD.HDRPTimeOfDayInteriorController controller) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayInteriorController.cs:234)
ProceduralWorlds.HDRPTOD.InteriorControllerManagerData.Apply (System.Boolean value, System.Boolean inMainBounds, ProceduralWorlds.HDRPTOD.HDRPTimeOfDayInteriorController controller) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayInteriorController.cs:64)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.CheckInteriorControllers () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1978)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:909)

 Weather was not setup with the starting values please call SetupStartingSettings() before calling Apply weather
UnityEngine.Debug:LogError (object)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayWeatherProfileData:ApplyWeather (ProceduralWorlds.HDRPTOD.HDRPTimeOfDayComponents,bool,bool,single,single) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayWeatherProfile.cs:33)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:ProcessWeather (bool) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1333)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:866)

 

I'm guessing that I'm not allowed to have a Weather profile without "Weather FX Data" - is that right?

 

Many thanks again!

 

  • HDRP Time of Day: 1.1.0
  • Gaia Pro 2021: 3.3.0
  • GeNa Pro: 3.3.20
Link to comment
Share on other sites

  • Solution
18 hours ago, mroshaw said:

Hello!

 

I'm trying to create some new weather profiles. I've started off simple, and gone for a cloudy day with a bit of light fog:

 

  1. Create > Procedural Worlds > HDRP Time of Day > Create Empty Weather Profile
  2. Name the profile "Cloudy Weather"
  3. In HDRP Time of Day component, Weather Settings > Add New Weather Profile
  4. Drop the empty profile asset into the profile
  5. Click "Copy Settings Over" and tweak fog and clouds
  6. Build and Run
  7. Click "Start Weather" for the new "Cloudy Weather"

 

Lots of errors:

NullReferenceException
UnityEngine.Object.Instantiate[T] (T original) (at <c6b52566f59b49fc861a7812a1ea2f6b>:0)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.StartWeather (System.Int32 weatherProfile) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1014)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayEditor.WeatherSettings (System.Boolean helpEnabled) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/Editor/HDRPTimeOfDayEditor.cs:1121)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayEditor.WeatherPanel (System.Boolean helpEnabled) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/Editor/HDRPTimeOfDayEditor.cs:520)
PWCommon5.EditorUtils.Panel (UnityEngine.GUIContent panelLabel, System.String helpKey, System.Action`1[T] contentMethod, UnityEngine.GUIStyle labelStyle, System.Boolean ignoreGuiChange, System.Boolean defaultStatus, System.Boolean showVersionNumber, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
PWCommon5.EditorUtils.Panel (UnityEngine.GUIContent panelLabel, System.String helpKey, System.Action`1[T] contentMethod, System.Boolean ignoreGuiChange, System.Boolean defaultStatus, System.Boolean showVersionNumber, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
PWCommon5.EditorUtils.Panel (System.String nameKey, System.Action`1[T] contentMethod, System.Boolean defaultStatus, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayEditor.OnInspectorGUI () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/Editor/HDRPTimeOfDayEditor.cs:84)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <77cfaa957c26445e8d2fa87bf3ff3fa6>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

 Weather was not setup with the starting values please call SetupStartingSettings() before calling Apply weather
UnityEngine.Debug:LogError (object)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayWeatherProfileData:ApplyWeather (ProceduralWorlds.HDRPTOD.HDRPTimeOfDayComponents,bool,bool,single,single) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayWeatherProfile.cs:33)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:ProcessWeather (bool) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1333)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:866)

MissingReferenceException: The object of type 'VisualEffect' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
ProceduralWorlds.HDRPTOD.InteriorControllerManagerData.SetWeatherParticleCollisions (System.Boolean value, ProceduralWorlds.HDRPTOD.HDRPTimeOfDayInteriorController controller) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayInteriorController.cs:234)
ProceduralWorlds.HDRPTOD.InteriorControllerManagerData.Apply (System.Boolean value, System.Boolean inMainBounds, ProceduralWorlds.HDRPTOD.HDRPTimeOfDayInteriorController controller) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayInteriorController.cs:64)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.CheckInteriorControllers () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1978)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:909)

 Weather was not setup with the starting values please call SetupStartingSettings() before calling Apply weather
UnityEngine.Debug:LogError (object)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayWeatherProfileData:ApplyWeather (ProceduralWorlds.HDRPTOD.HDRPTimeOfDayComponents,bool,bool,single,single) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayWeatherProfile.cs:33)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:ProcessWeather (bool) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1333)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:866)

MissingReferenceException: The object of type 'VisualEffect' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
ProceduralWorlds.HDRPTOD.InteriorControllerManagerData.SetWeatherParticleCollisions (System.Boolean value, ProceduralWorlds.HDRPTOD.HDRPTimeOfDayInteriorController controller) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayInteriorController.cs:234)
ProceduralWorlds.HDRPTOD.InteriorControllerManagerData.Apply (System.Boolean value, System.Boolean inMainBounds, ProceduralWorlds.HDRPTOD.HDRPTimeOfDayInteriorController controller) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayInteriorController.cs:64)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.CheckInteriorControllers () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1978)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay.Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:909)

 Weather was not setup with the starting values please call SetupStartingSettings() before calling Apply weather
UnityEngine.Debug:LogError (object)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDayWeatherProfileData:ApplyWeather (ProceduralWorlds.HDRPTOD.HDRPTimeOfDayComponents,bool,bool,single,single) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDayWeatherProfile.cs:33)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:ProcessWeather (bool) (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:1333)
ProceduralWorlds.HDRPTOD.HDRPTimeOfDay:Update () (at Assets/Procedural Worlds/HDRP Time Of Day/Scripts/HDRPTimeOfDay.cs:866)

 

I'm guessing that I'm not allowed to have a Weather profile without "Weather FX Data" - is that right?

 

Many thanks again!

 

  • HDRP Time of Day: 1.1.0
  • Gaia Pro 2021: 3.3.0
  • GeNa Pro: 3.3.20

 

Hey thanks for bringing this to our attention i have checked and can confirm that weather fx data is currently required, i will be working on this to not be the case in the next update and there will be some new improvements and features in the next update. Will keep you posted when the ETA might be for this.

 

Josh

Link to comment
Share on other sites

Hey Josh,

 

That's awesome, thank you!

 

I was wondering, actually, if you might consider adding some additional "weather" setups out of the box, alongside rain, snow and sandstorm. Just some simple things like "cloudy day" or "light fog", something like that?

 

Just a suggestion, of course, and I imagine you've got plenty other stuff on your backlog that is priority.

 

Thanks again and all the best!

 

Oli

Link to comment
Share on other sites

54 minutes ago, mroshaw said:

Hey Josh,

 

That's awesome, thank you!

 

I was wondering, actually, if you might consider adding some additional "weather" setups out of the box, alongside rain, snow and sandstorm. Just some simple things like "cloudy day" or "light fog", something like that?

 

Just a suggestion, of course, and I imagine you've got plenty other stuff on your backlog that is priority.

 

Thanks again and all the best!

 

Oli

 

Yes i do have plans to allow belding from one weather profile to another so you could go from cloudy, to overcast then to rain and back to overcast/cloudy then back to normal TOD.

It is up there of my to do list something like this would take a bit more time as would require some code shuffle to support this feature but it will be awesome and allow more realstic weather setps to go from nothing to raining or storm.

 

Josh

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...