Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultAgoraViewportClient.ini settings are lost in builds #1

Open
jeffason opened this issue Jun 10, 2022 · 3 comments
Open

DefaultAgoraViewportClient.ini settings are lost in builds #1

jeffason opened this issue Jun 10, 2022 · 3 comments

Comments

@jeffason
Copy link

We have been enjoying your plugin, thank for all your dev efforts!

We're able to change the configuration in our Project Settings to update the style and text of the overlay. We see those changes saved out to our DefaultAgoraViewportClient.ini file and checked into our repo. Everything works great when testing in Editor even when using the Play as Standalone option. However, when we deploy builds to Steam and devs run the builds on their machines, the first run works ok but in subsequent runs - all our settings are lost and it reverts to the default style and text settings for the plugin.

I found that when users run the build the first time, it creates an empty .ini at Saved/Windows/AgoraViewportClient.ini and it seems like the presence of this file causes the problem to appear. If I remove this file and re-run the game, it works the first time and again after this file appears it subsequently fails.

I decided to test moving the UAgoraViewportClientSettings config settings into Game (UCLASS(config = Game, defaultconfig)) and it seems to work now even on subsequent runs.

@PiotrSquaresMoscicki
Copy link

I've had the same problem. The proposed fix also worked for me.

@ryanjon2040
Copy link
Owner

@jeffason I'm sorry I totally missed this information. I will update it as soon as I get home.

@PiotrMoscicki Yeah there seems to be issue for Unreal to read custom ini files in packaged builds. I'll move it to DefaultGame.ini once I reach home and update on Unreal Marketplace.

@ryanjon2040
Copy link
Owner

ryanjon2040 commented Mar 22, 2023

@jeffason @PiotrMoscicki I've fixed this and pushed the change here in git and additionally added support for setting your custom font with more options. If you are using this plugin from git then please take the newest changes. If you have purchased it from Unreal Marketplace, please wait for a few days for the update as I have not submitted yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants