Connect to Source Control Forgets Settings

Every time we open our project (after a crash, from a fresh launcher instance, double clicking on a project file.) We have to repeatedly enter our Perforce server information into the “Connect to Source Control” dialog.

Hi,

While you will need to enter new credentials if you have created/opened a new project, you shouldn’t have to re-enter them once you have closed down the editor normally. The editor should remember the settings and auto-connect on startup (showing a green icon in the top-right).

What version of the Editor are you running & what platform are you running on?

Are you seeing crashes on shutdown that may be preventing the settings from being saved?

Can you post a shutdown and startup (preferably consecutively) log here so we can further diagnose the issue?

We’re using 4.2.1 (Windows)

No crashes in this case, we are restarting and the settings don’t get carried over. The project is also disconnected from SC (icon doesn’t appear in the top right corner, red nor green.)

I’m not sure which logs you’re asking for. Is there an FAQ for getting at common log file locations?

It’s worth pointing out that this doesn’t happen with every single project.

Are you sure that there is no icon? The icon is what you would click to enter your source control credentials.

Logs can be found in MyProjectDirectory/Saved/Logs. The most recent will be called MyProjectName.log

No, you’re right the red circle is there every time I open the project.

Editing the Saved/Config/Windows/SourceControlSettings.ini and setting the proper values there resolves this issue on the Windows box. For some reason I don’t see this same file on the Mac.

1 Like

When using source control, sometimes files you want to modify locally get set to read-only. In this case the editor cannot write and save these changes to the source control config file and therefore will lose track of these settings when the editor closes. Right clicking on Saved/Config/Windows/SourceControlSettings.ini, selecting Properties… and then unchecking read only should fix this issue.

1 Like

My project editor remembers the wrong values every time, but my SourceControlSettings.ini file is empty?

I’ve been struggling with nuisance this for over a year… thank you so much!

I had to change UseGlobalSettings to False in Saved/Config/Windows/SourceControlSettings.ini (thanks ThomasIngham for that) project to allow my project to set source control.

I had to change Saved/Config/Windows/SourceControlSettings.ini to this:

[SourceControl.SourceControlSettings]
UseGlobalSettings=True

It was set to false prior. Once that was done, I loaded the editor, then set up source control again.

[SourceControl.SourceControlSettings]
UseGlobalSettings=True
Provider=Perforce

[PerforceSourceControl.PerforceSourceControlSettings]
Port=[IP ADDRESS]:[PORT]
UserName=[Username]
Workspace=[Workspace]
HostOverride=

1 Like