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

Project Settings Override doesn't load #33

Open
ubley09 opened this issue May 11, 2022 · 2 comments
Open

Project Settings Override doesn't load #33

ubley09 opened this issue May 11, 2022 · 2 comments

Comments

@ubley09
Copy link

ubley09 commented May 11, 2022

Godot version:

v3.4.4.stable.official [419e713a2]

OS/device including version:

Android

Issue description:

When I turn on the plugin in the export settings, only android device does not load the "override.cfg". The overwrite file itself is saved, but it does not load when the application starts. The application can read the "override.cfg", it just doesn't load automatically at startup as it should. When the plugin is turned off in the export settings, everything is fine.

Steps to reproduce:

  • Create new project
  • In the Project Settings: "application/config/project_settings_override" = "user://override.cfg"
  • Install Android Build Template
  • Copy the GodotGooglePlayBilling plugin in the android/plugins folder
  • in the Export settings: add android, use custom build, enable "Godot Google Play Billing" plugin
  • Write a script to the main node, what set a project setting to something else and save it by "user://override.cfg"
    sample code:
func _ready() -> void:
    print(ProjectSettings.get_setting("application/config/description"))
    ProjectSettings.set_setting("application/config/description", "Overridden!")
    print(ProjectSettings.get_setting("application/config/description"))
    ProjectSettings.save_custom("user://override.cfg")
  • Run on an android device twice for the results.

Minimal reproduction project:
ProjectSettingsOverride.zip

  • Install Android Build Template to the project
  • Run on an android device twice and the expected wrong results when the plugin is turned on in the export settings:

first run:

Override this text!
Overridden!

second run:

Override this text!
Overridden!
  • The expected results when the plugin is turned off in the export settings:

first run:

Override this text!
Overridden!

second run:

Overridden!
Overridden!
@timoschwarzer
Copy link
Collaborator

At first glance, this seems more like a Godot issue than an issue with the GPB library itself...?

@ubley09
Copy link
Author

ubley09 commented May 11, 2022

I don't know exactly what the problem might be, I just know this plugin is causing the problem. I tried everything that came to my mind that could cause this problem. I finally came to the conclusion that there is a problem with this plugin when I enable it, but I don’t know how to avoid it.

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

2 participants