Description

We started running into issues with the console history not saving after upgrading to 5.2.1. The console history (as in the commands last input into the in-game console) is no longer being saved between runs on packaged builds. After a bit of debugging we have found that UConsole::ConsoleCommand is adding the commands to the history and trying to write out the updated config for itself but the config won't actually write as the Input FConfigFile is marked as 'NoSave'.

From some debugging we believe this is the fault of the EnhancedInput plugin adding it's own Input.ini config file in 5.2. Adding this file is causing the main Input.ini config file to get marked 'NoSave' when the plugin is loaded (FPluginManager::ConfigureEnabledPlugins -> FConfigFile::AddDynamicLayerToHierarchy), this causes the situation described above where UConsole calling SaveConfig ends up doing nothing as it tries to write out the base Input.ini file which is marked as NoSave.

Steps to Reproduce
  • Create a packaged unreal application
  • Run the application, and enter some console commands
  • Observe the lack of console history written to disk

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-194752 in the post.

2
Login to Vote

Cannot Reproduce
ComponentUE - Foundation - Core
Affects Versions5.2.1
Target Fix5.4
Fix Commit27753171
CreatedSep 7, 2023
ResolvedSep 11, 2023
UpdatedSep 11, 2023
View Jira Issue