Fix story autosave

This commit is contained in:
Michael 2017-06-04 21:07:43 -04:00
parent 5e40ae4e29
commit 3e11eca704
3 changed files with 3 additions and 10 deletions

View file

@ -155,13 +155,7 @@ namespace ShiftOS.Server
Console.WriteLine("FUCK. Something HORRIBLE JUST HAPPENED.");
};
AppDomain.CurrentDomain.UnhandledException += (o, a) =>
{
if(server.IsOnline == true)
server.Stop();
System.Diagnostics.Process.Start("ShiftOS.Server.exe");
};
server.OnReceived += (o, a) =>
{
var obj = a.Data.Object;
@ -208,7 +202,6 @@ namespace ShiftOS.Server
task.Wait();
*/
RandomUserGenerator.StartThread();
while (server.IsOnline)
{

View file

@ -368,7 +368,7 @@ namespace ShiftOS.WinForms.Stories
SetProgress(i);
Thread.Sleep(100);
}
Story.Start("downloader");
SaveSystem.CurrentSave.StoriesExperienced.Add("downloader");
SetProgress(0);
SetStatus("Dependencies installed.");
Thread.Sleep(2000);

View file

@ -154,7 +154,7 @@ namespace ShiftOS.Engine
Method = mth,
AutoComplete = true,
};
SaveSystem.CurrentSave.Password = Context.Id;
SaveSystem.CurrentSave.PickupPoint = Context.Id;
Context.OnComplete += () =>
{
StoryComplete?.Invoke(stid);