public static void ErrorWhileLoadingAssets(Exception e) { string text = "ErrorWhileLoadingAssets".Translate(); if (ModsConfig.ActiveModsInLoadOrder.Any((ModMetaData x) => !x.Official) || !ModsConfig.ActiveModsInLoadOrder.Any((ModMetaData x) => x.IsCoreMod)) { text += "\n\n" + "ErrorWhileLoadingAssets_ModsInfo".Translate(); } DelayedErrorWindowRequest.Add(text, "ErrorWhileLoadingAssetsTitle".Translate()); GenScene.GoToMainMenu(); }
public static void ErrorWhileLoadingAssets(Exception e) { string text = "ErrorWhileLoadingAssets".Translate(); if (ModsConfig.ActiveModsInLoadOrder.Count <ModMetaData>() != 1 || !ModsConfig.ActiveModsInLoadOrder.First <ModMetaData>().IsCoreMod) { text = text + "\n\n" + "ErrorWhileLoadingAssets_ModsInfo".Translate(); } DelayedErrorWindowRequest.Add(text, "ErrorWhileLoadingAssetsTitle".Translate()); GenScene.GoToMainMenu(); }
public static void ErrorWhileLoadingGame(Exception e) { string text = "ErrorWhileLoadingMap".Translate(); if (!ScribeMetaHeaderUtility.LoadedModsMatchesActiveMods(out string loadedModsSummary, out string runningModsSummary)) { text += "\n\n" + "ModsMismatchWarningText".Translate(loadedModsSummary, runningModsSummary); } DelayedErrorWindowRequest.Add(text, "ErrorWhileLoadingMapTitle".Translate()); Scribe.ForceStop(); GenScene.GoToMainMenu(); }
public static void ErrorWhileLoadingGame(Exception e) { string text = "ErrorWhileLoadingMap".Translate(); string text2 = default(string); string text3 = default(string); if (!ScribeMetaHeaderUtility.LoadedModsMatchesActiveMods(out text2, out text3)) { text = text + "\n\n" + "ModsMismatchWarningText".Translate(text2, text3); } DelayedErrorWindowRequest.Add(text, "ErrorWhileLoadingMapTitle".Translate()); Scribe.ForceStop(); GenScene.GoToMainMenu(); }
public static void ErrorWhileGeneratingMap(Exception e) { DelayedErrorWindowRequest.Add("ErrorWhileGeneratingMap".Translate(), "ErrorWhileGeneratingMapTitle".Translate()); Scribe.ForceStop(); GenScene.GoToMainMenu(); }