FormatException: Missing closing brace detected, as end of s

Discussion and help for Easy Save 3
Post Reply
PabloAM
Posts: 26
Joined: Tue Nov 18, 2014 8:43 pm

FormatException: Missing closing brace detected, as end of s

Post by PabloAM »

I get this error:

Code: Select all

FormatException: Missing closing brace detected, as end of stream was reached before finding it.
ES3Internal.ES3JSONReader.ReadElement (Boolean skip) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3JSONReader.cs:301)
ES3Reader.Skip () (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3Reader.cs:92)
ES3Internal.ES3JSONReader.Goto (System.String key) (at Assets/Plugins/Easy Save 3/Scripts/Readers/ES3JSONReader.cs:202)
ES3.KeyExists (System.String key, .ES3Settings settings) (at Assets/Plugins/Easy Save 3/Scripts/ES3.cs:724)
ES3.KeyExists (System.String key) (at Assets/Plugins/Easy Save 3/Scripts/ES3.cs:692)
MainGame.Awake () (at Assets/Scripts/MainGame.cs:128)
And is when I call this function:
if (ES3.KeyExists("CombuUSERINFO"))
Whole function code:
void Awake()
	{
        
     	//NEW
		Globals.isPaused = true;	
        //Particles for SuperSpeed
        particles = particlesBackground.GetComponentsInChildren<ParticleSystem>();
       SuperSpeedCountDown.ShowIt(false);

        if (ES3.KeyExists("CombuUSERINFO"))
            MainGame.instance.userInfo = ES3.Load<UserInfo>("CombuUSERINFO");
    
        Debug.Log("CURRENT LENGUAJE: " + LocalizationManager.CurrentLanguage);
    
        SceneManager.sceneUnloaded += HideTopMenu;
        SceneManager.sceneLoaded += SceneManager_sceneLoaded;
    }
I have cleared path folder and also added Type with the ES3 Window Tool.

What could I do?

Thanks!
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: FormatException: Missing closing brace detected, as end

Post by Joel »

Hi there,

Please could you PM me a project and instructions to replicate this? If you could point me towards where data is saved in the project that would also be helpful.

Also have you manually modified any ES3Type files? More often than not, FormatExceptions are caused when ES3Type files are modified incorrectly.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply