-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Unity - Confusion about where settings.json file should be located? #1579
Comments
Unity calls for settings.json inside "InitializeAirSim.cs", which is located here:
Unity looks for settings.json inside of Documents\Airsim inside of the project directory. If it can't find either it will build a default settings.json file inside of Documents\Airsim. |
I understand that, but this doesn't explain why I'm getting this error if I do not have a settings.json file in (my case) C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor ? Cannot read settings file C:\Program Files\Unity\Hub\Editor\2018.2.14f1\Editor\settings.json Vehicle=SimpleFlight |
bug fix (microsoft#1604 & microsoft#1579) and SceneSelector bug fix
bug fix (microsoft#1604 & microsoft#1579) and SceneSelector bug fix
bug fix (microsoft#1604 & microsoft#1579) and SceneSelector bug fix
@msb336 Just poking around. I believe the error message in the Unity console is coming from: |
@jasonhbartlett Once I can confirm deleting the executable path read doesn't break the build I'll add it to the PR. Thanks! |
@msb366 Awesome! I'm looking forward to the merge of all new updates folks like yourself are working on. Let me know if there is anything I can do to help. I'm new to AirSim but have a bit of experience with Unity and I'm really hoping Unity will become as well developed as Unreal is now. I know that might be a little ways off yet. Anyhow, thanks for your work on this! |
bug fix (microsoft#1579) and SceneSelector bug fix added caveat for loading scenes.
@jasonhbartlett Is this issue resolved? |
@RVBldr @msb366 |
@jasonhbartlett |
@msb336 I would prefer to only have to worry about making changes to the settings file in one location. |
@jasonhbartlett Unreal build also looks in the executable directory. https://github.com/Microsoft/AirSim/blob/5246acd664c8cf4aeb1070c0e9ea64fdcf442ddd/Unreal/Plugins/AirSim/Source/SimHUD/SimHUD.cpp#L351-L358 I agree, it is confusing to have to monitor two locations for the settings file. My recommendation would be to only have a |
@msb336 FYI There are a couple of other issues I've noticed with the AirSim Unity build. One would be an easy fix: The PC DroneDemo Unity project has an extra empty game object with a 2nd InitializeAirSim script component attached. Should be deleted. Second, is not as easy fix. I mentioned in in Issue #1617 Basically the AirSim/Unity/UnityDemo/Assets/AirSimAssets/Scripts/Utilities/AirSimSettings.cs script need to be updated to be able to read the "Vehicles" data structure. Should I go ahead and open a new issue for this? PS- At some point I hope to be contributor to this project. |
Yes, please open a new issue! If you want to contribute, that would be really great! We're currently low on bandwidth for unity support, so community help will be key in bringing it up to par with the unreal side. We have some guidelines for contributing here |
If we're wrapped up with this issue, I'm going to go ahead and close it. |
Cannot read settings file C:\Program Files\Unity\Hub\Editor\2018.2.15f1\Editor\settings.json Vehicle=PhysXCar I get this error. Does anyone know why? |
Me too! |
any solution yet? |
Not sure though |
Sorry I've gone off this project for a long time. Maybe @msb336 will be able to help. |
Cannot read settings file D:\Program Files\Unity\2022.3.8f1c1\Editor\settings.json Vehicle= |
Win 10 Pro
Unity 2018.2.14f1 - Running in editor (hit Play)
VS Community 2017 15.8.8
SDK 8.1
ref: https://github.com/Microsoft/AirSim/issues/1550
Although it was pointed out in issue #1550 that the settings.json file needed to be placed in the C:\Program Files\Unity\Editor folder, I am confused as to why this is the case? Having no settings.json file there causes the error "Problem in starting AirSim server!!! Please check logs for more information." and kills the Unity editor. This is not the behavior AirSim typically has as typically the file is created automatically if it is missing, albiet it is typically created in the Documents/AirSim folder.
Also if not getting an error (cause if found the file in the editor folder) it WILL STILL create a settings.json file in the Documents/AirSim folder. And I'm led to suspect that this is actually where the project settings are pulled from?
So, where exactly is the settings.json file needed? And where are the settings pulled from?
The text was updated successfully, but these errors were encountered: