SpreadSheet not loading types correctly

Discussion and help for Easy Save 3
Post Reply
john
Posts: 2
Joined: Tue Mar 09, 2021 9:27 pm

SpreadSheet not loading types correctly

Post by john »

Hello,

Here is an example script where I'm not able to load the data back.
ES3Spreadsheet sheet;

private void Start()
{
sheet = new ES3Spreadsheet();
}
void Update()
{
if (Input.GetKeyDown(KeyCode.P))
{
sheet.SetCell(0,0,this.transform.position);
Debug.Log("position Value saved");
sheet.Save("Position.csv", false);
}

if (Input.GetKeyDown(KeyCode.L))
{
sheet.Load("Position.csv");
Debug.Log("Load position is " + sheet.GetCell<Vector3>(0, 0));
this.transform.position = sheet.GetCell<Vector3>(0, 0);
}
}


I keep getting the following error
FormatException: Expected ',' separating properties or '"' before property name, found '{'.
I've updated the ES3 asset but the issue persists. Any Info is appreciated thanks.
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: SpreadSheet not loading types correctly

Post by Joel »

Hi there,

Thanks for the clear repro case, I've managed to replicate this at my end. If you private message me your invoice number I'll send over an update to resolve this.

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