Skip to content

How to change settings.json? It become default setting when I turn on. #3005

Closed

Description

Hi. I'm using windows, python version 3.8, unreal version 4.24.1

I'm doing some work at making auto-driving safety algorithm and, I'm learning airsim.

By the way, I want to change camera location and direction.
So I tried changing settings.json, but it returns to default setting when I turn on airsim in unreal engine.
I even tried saving it with encoded with ASCII Code, but it doesn't work... How can I change my settings.json?

Activity

  1. GimpelZhang commented on Sep 7, 2020

    @GimpelZhang
    Contributor

    The default path to the setting file is: /Documents/AirSim/settings.json

    So are you changing this setting file? If so, please ignore my comment.

  2. nabeelsherazi commented on Sep 22, 2020

    @nabeelsherazi

    Either change the file in the Documents/Airsim folder, or, if you are trying to create a custom settings.json in the executable folder, make sure that it is in the same folder as the actual executable. This is not the same as the top level executable in the binary folder. E.g. if you are using the Blocks environment, the settings.json file should be placed in ...\Blocks\Blocks\Binaries\Win64

  3. nabeelsherazi commented on Sep 25, 2020

    @nabeelsherazi

    @shkim1030 When you start Airsim, it should list the location that it is pulling the settings.json file from in the top left corner logs. Can you see where that location is for your setup?

  4. jonyMarino commented on Nov 6, 2020

    @jonyMarino
    Collaborator

    Hi @shkim1030! The place searched for the settings.json is (in my windows machine) C:\Program Files\Epic Games\UE_4.24\Engine\Binaries\Win64\settings.json.
    if that doesn't help, try debugging here please:

    bool ASimHUD::getSettingsText(std::string& settingsText)
    {
    return (getSettingsTextFromCommandLine(settingsText)
    ||
    readSettingsTextFromFile(FString(msr::airlib::Settings::getExecutableFullPath("settings.json").c_str()), settingsText)
    ||
    readSettingsTextFromFile(FString(msr::airlib::Settings::Settings::getUserDirectoryFullPath("settings.json").c_str()), settingsText));
    }

  5. locked and limited conversation to collaborators on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions