-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using simEnableWeather(True) causes crash #2988
Comments
So I did have a go at this, it's turning out to be a very tricky bug First, the crash which happens when
Okay, quite straightforward error message, need to run in GameThread. Interesting note, this doesn't happen in the Editor, I even tried calling On Packaging (this is another huge, time-consuming rabbit hole) came the biggest problem, the Weather assets don't get packaged at all! The Packaging tool determines which assets are to be cooked and packaged, and the Weather ones are loaded using the C++ code rather than blueprint using Following some UE4 forum posts, Stackoverflow, tried out different ways, saved the assets again, used Just posting here for others to follow and to get some ideas to how to proceed. Let me know if anyone would like to know more about what did and didn't work, have a look at the code, etc |
@rajat2004 thnx for pointing me out to the right direction mate :) I have solved this issue. I have realized that unreal engine (as you mentioned), due to some reason (maybe because it is a Cpp Add-on on AirSim pluging),cannot reference WeatherFX throughout the project. Therefore it does not cook it or add it in the packaging of the game. However, unreal engine allows adding some unreferenced directories to cooking targets using -CookDir argument (or "Directories to Always Cook" in the GUI/Editor settings). This kind of forces cooking and packaging of the indicated directory/-ies. This way I have managed to cook the weather effects along with the whole project.
|
Oh, didn't know about this that's one way of fixing the problem, thanks for the info! |
Yeah you are right. A fix through AirSim would be great! I am closing this issue as it has been met. |
Given that the cause of this issue wasn't addressed, we are re-opening this to take a fix in the source |
I am using a customly packaged AirSim binary for Blocks environment.
My versions are as follows:
AirSim : 1.3.1 Linux release
UE4 : 4.24
OS : Ubuntu 18.04 LTS
Previously it would not open weather config menu when I press F10. So today I tried to use enable weather effects using the Weather Python API. But as soon as I reach the line where I implement simEnableWeather(True), AirSim crashes with the following messages:
Have anyone faced this problem? And is there anyone that could help?
The text was updated successfully, but these errors were encountered: