Airsim: setting.json can not be changed(be rewritten everytime) SOLVED.

Created on 7 May 2018  路  10Comments  路  Source: microsoft/AirSim

The path of the setting.json is C:\Users\chen9\OneDrive\鏂囨。\AirSim.
win10 Home
vs2015 pro3
The problem is only produced in my laptop. My desktop is fine. No matter what I change in setting.json, whenever I run the binary (for example AirsimNH), it would be written as default value like this:
image
Could anyone solve this problem?

bug

Most helpful comment

Thanks for your reply. I have found the solution. Because of the Asian characters in file path, just right click on the "Documents"-"Properties" - "Location" , you will find the path content Asian characters. Just modify it to English, click on "OK". Everything will be fine.
1
3

All 10 comments

I think this is probably happening due to asian characters in file path. Unfortunately we can't reproduce this issue on English versions. You can help s debug this, however. The relevant line of code is here:

https://github.com/Microsoft/AirSim/blob/7bddd5857791f9c164e8eba80c229f199c0babf8/Unreal/Plugins/AirSim/Source/SimHUD/SimHUD.cpp#L270

Thanks for your reply. I have found the solution. Because of the Asian characters in file path, just right click on the "Documents"-"Properties" - "Location" , you will find the path content Asian characters. Just modify it to English, click on "OK". Everything will be fine.
1
3

There might be side effect to this because you are renaming you document folder. For example, other applications which has set its path to location before you renamed might not work properly.

This is the path of my settings.json C:\Users\risheng\Documents\AirSim. Still the problem exists.

The Users folder is currently showing 鐢ㄦ埛, however it is Users when I check the path. I tried to change 鐢ㄦ埛 but it's a default folder and its name can't be changed.

image
Can you copy your path C:\Users\risheng\Documents\AirSim here and enter, check if the folder content settings?

It works, in fact I just changed the display language from Chinese to English so I suppose there shouldn't be any Chinese character in the path?

Yeah, chinese characters have caused errors reported in a few more issues as well. Let's stick to English.
Closing this as it's resolved. please comment/re-open as needed.

I use English and still have the same issue my file part is: C:\Users\4567\Documents\AirSim

Please help!!!

image
copy your path C:\Users\4567\Documents\AirSim here and enter, check if the folder content settings?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vinbo picture vinbo  路  4Comments

Kim-BongSu picture Kim-BongSu  路  3Comments

HereIsPatrick picture HereIsPatrick  路  3Comments

zywOwO picture zywOwO  路  3Comments

Mayankm96 picture Mayankm96  路  4Comments