ES3.Save to List<T>

Discussion and help for Easy Save 3
Post Reply
redgen01
Posts: 2
Joined: Sun May 24, 2020 7:12 pm

ES3.Save to List<T>

Post by redgen01 »

Hi ,When the game start ,I am trying to create and save "mylist.txt".But when I try to save it "my list.txt" always null.Even I have check mission_list.I am pretty sure mission_list has values.It is not null.Is there a trick to save such as List<T> ?

save code:

Code: Select all

  ES3.Save<List<Mission>>("mylist", mission_list, "mylist.txt"); 





"mylist.txt" is here;

Code: Select all

{
	"mylist" : {
		"__type" : "System.Collections.Generic.List`1[[Mission, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]],mscorlib",
		"value" : [
			null,null
		]
	}
}

Thanks your helps
User avatar
Joel
Moodkie Staff
Posts: 4848
Joined: Wed Nov 07, 2012 10:32 pm

Re: ES3.Save to List<T>

Post by Joel »

Hi there,

Please could you private message me a basic project or script which replicates this? It doesn't look like the List is saving incorrectly, but more like the values in the List are null or are not serialisable.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
redgen01
Posts: 2
Joined: Sun May 24, 2020 7:12 pm

Re: ES3.Save to List<T>

Post by redgen01 »

I have sent you my .cs file from private message.But me message stays on Outbox.
User avatar
Joel
Moodkie Staff
Posts: 4848
Joined: Wed Nov 07, 2012 10:32 pm

Re: ES3.Save to List<T>

Post by Joel »

Hi there,

The message remains in the Outbox until the recipient reads it.

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