Got this Problem also with every other thing i set in the Editor.
He doesn’t seem to delete the old line. Just adding a new one.
Maybe need to change the read/write access on it… could be a bug of the Editor.
I don’t think so the securing file against writing is correct solution.
Writing to config files is buggy, for example we got non finished code:
// Check for an array of differing size. This will trigger a full writeout.
// This also catches the case where the property doesn't exist in the source in non-array cases
bool bDifferentNumberOfElements = false;
{
const FConfigSection* SourceSection = NULL;
if( SourceSection )
{
TArray< FString > SourceMatchingProperties;
SourceSection->MultiFind( PropertyName, SourceMatchingProperties );
TArray< FString > DestMatchingProperties;
Section.MultiFind( PropertyName, DestMatchingProperties );
bDifferentNumberOfElements = SourceMatchingProperties.Num() != DestMatchingProperties.Num();
}
}
if( UnprocessedPropertyValues.Contains( PropertyValue ) == false )
{
FString PropertyNameWithRemoveOp = PropertyName.Replace(TEXT("+"), TEXT("-"));
OutText += FString::Printf(TEXT("%s=%s") LINE_TERMINATOR, *PropertyNameWithRemoveOp, *PropertyValue);
}
// We need to remove this element from unprocessed if it exists on the list.
UnprocessedPropertyValues.Remove( PropertyValue );
Solves the duplicated values issue, but probably breaks case when arrays are saved in config files:( I still don’t have good solution for this issue and we need to wait for Epic’s programmers.
I can’t seem to reproduce this bug on my machine. If you know anything that could help me reproduce the bug, let me know and maybe we can find out how to fix it.
However, in the meantime, it sounds like you have a workaround. Also, the doubled lines isn’t a crippling problem because the second one overwrites the first - so long as the second one is correct, the first line doesn’t matter.
Just created new project with starter content and tryed to set project descriptions, etc.
Looking in DefaultGame.ini:
[/Script/EngineSettings.GeneralProjectSettings]
CompanyName=
CompanyName=cool
CopyrightNotice=Fill out your copyright notice in the Description page of Project Settings.
CopyrightNotice=Fill it
Description=
Description=cool description?
Homepage=
Homepage=cool@cool.com
LicensingTerms=
LicensingTerms=lic fill
ProjectID=00000000000000000000000000000000
ProjectName=cool
ProjectVersion=
ProjectVersion=0.0
SupportContact=
SupportContact=support@cool.com
Since different text is being copied (and you don’t seem to be using the same repro steps), I suspect it’s not the same as Pierdek’s issue. Could you make a new thread about this so we can track it more easily?