I have an issue with a blueprint. I got a project from one of my friend and have all the assets in it. But when I try to run it, the blueprint error is coming for the weather assets. In the project there is a weather.umap which I don’t know where to use. Is the error is coming due to the non-usage of the weather map ?if so, where can i use it.
Hey there @ronyshaji1! Looks like the weather BP is trying to run but doesn’t have it’s variables set correctly. This could be that there’s a specific way to set up the BP_Weather that wasn’t followed initially. You may have to open up the BP itself and see where/how those variables are set and make sure they get set appropriately.
@SupportiveEntity But the issue is that I can’t able to find the BP_weather in the level. I searched in the world outliner and can’t find the weather blueprint.
But I accessed the BP_Weather through the error log and I was able to find that some variables (for eg:sunlight) has no default map. As I said earlier, I have a weather.umap. Is there any chance that the values for the variables in BP_Weather is available in the weather.umap ?
@SupportiveEntity I can see the BP_Weather while playing the game. So is it a dynamic weather or not ? and how to link the weather.umap with BP_weather ?
Hi,
First if your BP_Weather is not instanced in the level you’ll need to find where it is spawned from.
Might be in the gamemode but sometime people tend to put this in strange places, player controller, or even characters … Use the reference viewer to find where your BP_Weather is spawned from. (right click on the asset and reference viewer)
When you find the spawn function send the pointer of the sun object to your BP_Weather after it is created. You can use a find actors of class (Sun) in order to get your sun actor at runtime.
It all depends on how your project is implemented and you’ll have to dig around to see how it works on your side.
You’re going to have to find where the weather system is being spawned in the map. As Jnat recommended, you can use the reference viewer to figure out what’s spawning it.
To address the map itself, if the weather BP does require it to be in that map, you may need to stream in the level if the BP is looking for it’s specific pieces, or you will have to adjust the BP itself and replace the references with your level’s equivalents.
It seems that the CarlaGameMode is the place where the BP_Weather in Spawned in.
Find the SpawnActorOfClass function that is referencing your BP_Weather in the gamemode and set the Sun variable to you actual sun Actor.
Another way to do it without modifying the game mode is to implement functions in the begin play of the BP_Weather blueprint so it will find and fill the variables it needs to work (sun etc.)
FindActorOfClass function is your friend here.
I have not that much info on how your project is implemented so I am just happy guessing what you have to do here.
@SupportiveEntity Yes, When i check the gamemode it shows nothing…I think the weather assets are full messed up and i was not able to get the correct connection.
That’s an actor reference so it’s for an actual reference to the in game object, so you can’t set it’s defaults because the gamemode isn’t bound to a specific game space until it’s generated. It’s being spawned and the variable itself is being set in the gamemode from somewhere, run the game mode through the reference viewer as well if you can, we might see what references it.