The FIRST time I try to create a new ES3File, I get a nullRefException. Any subsequent attempt works fine. To the point where this is an effective workaround:
Code: Select all
try
{
return new ES3File(Filename(missionType), GameSettings.ES3Settings);
}
catch (Exception e)
{
Debug.Log("Failed, try again: " + e.InnerException);
return new ES3File(Filename(missionType), GameSettings.ES3Settings);
}