Announcement

Collapse
No announcement yet.

Game.ini & DefaultGame.ini Issues - Possibly Related to custom UDeveloperSettings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Game.ini & DefaultGame.ini Issues - Possibly Related to custom UDeveloperSettings

    Hi, There Fellow Unreal Peoples!

    I am experiencing a bizarre issue with my C++ project inside 4.11.2.

    The steps I follow to replicate my issue is as follows:

    Edit -> Project Settings -> Description
    Home Page: https://binaryshepherd.wordpress.com/
    Press Enter
    Text Is Highlighted in blue so it seems like it has saved

    Edit -> Project Settings -> Game -> XGame Settings
    Account Server Url: http://127.0.0.1:1234/
    Press Enter
    Text Is Highlighted in blue so it seems like it has saved

    Hit all the save buttons I can find in the editor multiple times! Spam click them save buttons so stuff is saved!

    Close the project and re open it and the results is as follows:
    Click image for larger version

Name:	config issue.png
Views:	1
Size:	41.6 KB
ID:	1181112

    The only not standard stuff I have is the following implementation:

    Source->UnsungHeroes->Public->Globals->XGameSettings.h
    Code:
    #include "Engine/DeveloperSettings.h"
    #include "XGameSettings.generated.h"
    
    /**
     * Global Game Related Settings
     */
    UCLASS(config = Game, defaultconfig)
    class UNSUNGHEROES_API UXGameSettings : public UDeveloperSettings
    {
    	GENERATED_BODY()
    	
    public:
    
    	UXGameSettings(const FObjectInitializer& ObjectInitializer);
    
    	FORCEINLINE FString GetAccountServerUrl() const
    	{
    		return this->AccountServerUrl;
    	}
    	
    private:
    
    	/** Account Server Address */
    	UPROPERTY(config, EditAnywhere, Category = "Servers")
    	FString AccountServerUrl;
    	
    };
    Source->UnsungHeroes->Private->Globals->XGameSettings.cpp
    Code:
    #include "UnsungHeroes.h"
    #include "XGameSettings.h"
    
    UXGameSettings::UXGameSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
    {
    	// this->AccountServerUrl = TEXT("http://127.0.0.1:6969/");
    }
    I have deleted the Intermediate and Saved folder inside the project and recompiled it in Visaul Studio 2015. I do not get any compile errors or warnings. The project works 100% except for the fact that these two fields lose their values.

    I have tried compiling with the launcher binaries as well as the release build from github.

    My main expertise is C# so maybe I am doing something dumb inside my C++!

    Any assistance would be greatly appreciated!

    project was created using a blank C++ project template using visual studio 2015 update 2 on unreal 4.11.2

    Best Regards!

    Shepherd

    ps: for those wanting some answer points: https://answers.unrealengine.com/que...elated-to.html
    Last edited by Shepherd; 04-26-2016, 03:46 AM. Reason: added link to answer hub

    Always Active Technologies
    {Binary_Shepherd}
    /** the only losers are those who give up. */

    #2
    Anyone? Nobody? Epic??

    Always Active Technologies
    {Binary_Shepherd}
    /** the only losers are those who give up. */

    Comment


      #3
      *Bump* - does any of the epic staff have an answer for me please?

      Always Active Technologies
      {Binary_Shepherd}
      /** the only losers are those who give up. */

      Comment

      Working...
      X