Plugin no longer saves settings in 5.5

Hi Everyone, I have a free plugin on the marketplace and a user reported that it’s no longer working in 5.5.
I verified that the issue is present, but I really can’t understand what’s causing it or what changed in the engine…

Apparently it’s no longer able to save the changes made to the DefaultEngine.ini file, when you restart the editor everything is gone, any idea on how to solve this? The source code is available on Fab and it should be decently commented.

Thanks in advance to everyone that is going to help!

I have a similar issue. My plugin does save the settings, however it is unable to load them from disk. I output to a custom INI in the [Project]/Saved/Config/[Platform] directory. The file gets updated when changes are made in the editor, but nothing is read from that file.

I use SaveConfig() to trigger the save, however manually calling LoadConfig() doesn’t appear to fix the issue either. No errors are generated, and the GetIni command returns empty values until an edit is made to the setting.

1 Like

Hi, I tested my plugin in 5.5 and it seems to save all settings correctly to DefaultEngine.ini. Maybe you can compare and find out what is different in your plugin.

It’s open source so you can download if you prefer, this is the file with the settings: unreal-engine/Source/PubnubLibrary/Public/Config/PubnubSettings.h at master · pubnub/unreal-engine · GitHub

1 Like

I finally managed to fix the issue, I had to replace every occurrence of

Settings->SaveConfig(CPF_Config, *DefaultConfigFilename);

with:

Settings->TryUpdateDefaultConfigFile(*DefaultConfigFilename)

Not sure if this is a bug or a wanted behaviour but it took me way to much time to fix it!


This function actually seems better because it just updates the section that has been changed but I’m still confused on what changed during the update…