UE 4.22 - SetCurrentAssetGroupCulture not working in packaged game

Hi, I have huge issues with AssetGroupCultures which drive me crazy because i am 99% sure it worked well for months before in packaged game on steam and now at some point in time it broke for no reason and cannot make it work again.

I set my text language and my audio language using setup as below on the screen. Both those settings worked in runtime correctly before, now only SetCurrentLanguagAndLocale works and SetCurrentAssetGroupCulture does not work at all in runtime and most of the times even restart does not help - it only seems to work when i set both settings to the same culture AND restart - which is clearly incorrect behavior for me.

In UserGameSettings i do not find any config entry related to AGC but i see that game persists that data from one launch to another - if i switch both settings to same culture and restart game it most of the times loads at start correct AGC and stays that way forever until i change both cultures and restart again.

I am pasting my code for changing text language, audio language (asset group), my DefaultGame.ini confing any my UserGameSettings in packaged game (shipping). I tried everything and i feel helpless now with this, i am pretty sure it worked few months ago and i am almost sure changed nothing to that part of the application. I debugged the culture setting and i know that culture and locale itself is set correctly - i print the ACG after changing it and get expected culture.

And the text only translation settings work flawless and at runtime without need to restart the game.

1 Like

Ok i found a workaround a bit specific to the architecture of my game for anyone interested - looks like engine ignores AssetGroupCulture at start (Ii still dont know where he keeps that setting, but he definitly does as he can load it using GetCurrentAssetCultureGroup node) and just loads everything base on culture setting - text and other localized assets. Then at runtime i can change text localization but not the assets - those are loaded only once at start base on the startup culture.

What i did is i keep my own saved configuration of what text language and audio language is selected in options. At the end of the game, just before exit i switch the culture to the one audio setting points so at next start it loads what was selected at previous exit of the game - then i quickly set culture to what text language is, the audio option is taken also from my setting

As text localization works at runtime and SetCurrentAssetGroupCulture does not - that solution is fine.