Cannot edit default configuration files under source control

Hi,

we have a project that’s shared among team members using Subversion. Everything work fine (more or less) but there’s a big problem: it’s impossible to edit project settings if the project is under source control. For example trying to edit defaultgame.ini results in the message “These settings are saved in defaultgame.ini. Checking file state…” being displayed indefinitely and the file remains locked. I assume that the problem arises because the defaultgame.ini has not been created yet and UE4 cannot determine its status. Manually adding an empty defaultgame.ini to the repository solves the problem (UE4 allows the file to be edited) but trying to change anything results in a crash. All the above tested with UE 4.6.1.

Hi,

DefaultGame.ini should be created when the project is created (in the [PROJECTDIR]/Config directory) and added as part of your project’s initial commit as per these instructions. If you do not have these files (there are more than one Default*.ini config) then you will need to generate them by creating a new project elsewhere (with the same name) and copying the files into your Config directory. You can then add them to source control as normal.

Hi Tom,

thank you for your reply. I’ve already solved the problem disconnecting from source control, changing the configuration files and saving them and then reconnecting to source control. Anyway I’m sorry but UE4 doesn’t create any default configuration files on its own, at least when creating a new “c++ project” without starter content (on 4.6.1, haven’t tried on 4.7). This should be fixed. Thank you.

Ah, I see what has happened now.

DefaultGame.ini is not created until it is edited, as the config system does not think that it has ‘changed’. We should create an empty version of this file on project creation as otherwise the source control integration will not work correctly. Thanks for the report!

Do you have any details of the crash you mention? It would be useful to track it separately. This thread can help you report crashes.

Hi Tom,

I don’t think it’s worth creating a new thread for the crash, it’s not something that can happen without messing with Unreal. Anyway it’s very easy to reproduce: create a new empty DefaultGame.ini in your config folder. Then launch the editor, select “project settings”, edit anything, close the settings window → crash. The same applies to DefaultInput.ini.

Well, thanks for the report anyway - I’ve logged the issue for investigation. It’s a pretty serious user experience issue so we should be able to look at it ASAP.

For now the workaround seems to be to edit the properties that are stored in the Default*ini files with source control disabled so that a valid file is generated on disk, then submit those files to source control.