Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
katherine.lynch.758's avatar
3 years ago
Solved

How to access the DefaultGame.ini on quest 2 (through PC)

Hi, 

I'm trying to access some developer settings I have created in c++ which handles some variables that Id like to be able to change overwriting/saving a new defaultgame.ini file. However, I cant seem to find where it exists. Note: Im using Unreal Engine 5.0.3

The file path I go to after connecting my quest to my pc and allowing debugging, play the project then quit it is:

This PC\Quest 2\Internal shared storage\Android\data\mycompany.myProject\files\UnrealGame\myProject\myProject\Saved\Config\Android

All I can see is GameUserSettings.ini in that folder. I have also looked in all of the other files and cant find the file itself or where I should put it. Ive tried to add in my defaultGame.ini in the similar places where windows contains it, typically saved/config/windows, but nothing changes. (I have literally just a fstring setup in my dev settings which is output on beginplay to show me what the current setting is set to, I want to be able to change this string on the headset by a button click or something later in time). 

Any ideas if this is possible or where I might need to place the folder or where the settings are held on the headset? I'm assuming they are perhaps encapsulated if I cant find them in the files anywhere, or perhaps I'm missing a setting or maybe I havent structured the file in the right way? The image below is what I have tried to add. (These are different from whats in the engine settings before building as I want to get the string to change to see if it works, as ive said, works fine in windows just not in android as I cant find where its supposed to go)

Thanks in advance! If I find a solution I shall comment it here 🙂

  • Answer: Yes you can... you have to put "Game.ini" in the android folder: 
     
    This PC\Quest 2\Internal shared storage\Android\data\MyCompany.MyProject\files\UnrealGame\MyProject\MyProject\Saved\Config\Android
     

     

    These settings will overwrite what you set in the settings before building. 
    NOTE: If you want to do this with other files, its worth doing a windows build and going to the folder: 
     
    WhereverYouBuiltTo\Windows\MyProject\Saved\Config\Windows
     
    In this folder is all of the .ini files you may have edited. I haven't tested it but I'm assuming that if you do the same with any of the files and put them in the android file location above you will get the same result and can edit the settings on the headset.
     

     

    I'm putting this here because "Game.ini" is the same as the engines "DefaultGame.ini", for some reason the builds name it differently. 

1 Reply

Replies have been turned off for this discussion
  • Answer: Yes you can... you have to put "Game.ini" in the android folder: 
     
    This PC\Quest 2\Internal shared storage\Android\data\MyCompany.MyProject\files\UnrealGame\MyProject\MyProject\Saved\Config\Android
     

     

    These settings will overwrite what you set in the settings before building. 
    NOTE: If you want to do this with other files, its worth doing a windows build and going to the folder: 
     
    WhereverYouBuiltTo\Windows\MyProject\Saved\Config\Windows
     
    In this folder is all of the .ini files you may have edited. I haven't tested it but I'm assuming that if you do the same with any of the files and put them in the android file location above you will get the same result and can edit the settings on the headset.
     

     

    I'm putting this here because "Game.ini" is the same as the engines "DefaultGame.ini", for some reason the builds name it differently.