Made exception logging less verbose

This commit is contained in:
Bitl 2022-09-14 07:22:33 -07:00
parent 5060062da9
commit 0778a193e3
6 changed files with 22 additions and 46 deletions

View File

@ -707,9 +707,8 @@ class CharacterCustomizationShared
{ {
box.SelectedItem = item; box.SelectedItem = item;
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
box.SelectedItem = defaultitem + ".rbxm"; box.SelectedItem = defaultitem + ".rbxm";
} }

View File

@ -74,9 +74,8 @@ namespace NovetusLauncher
MeshDetail = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "maxMeshDetail", XMLTypes.Float)); MeshDetail = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "maxMeshDetail", XMLTypes.Float));
GraphicsMeshQuality.Value = MeshDetail; GraphicsMeshQuality.Value = MeshDetail;
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsMeshQuality.Enabled = false; GraphicsMeshQuality.Enabled = false;
} }
@ -85,9 +84,8 @@ namespace NovetusLauncher
ShadingQuality = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "maxShadingQuality", XMLTypes.Float)); ShadingQuality = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "maxShadingQuality", XMLTypes.Float));
GraphicsShadingQuality.Value = ShadingQuality; GraphicsShadingQuality.Value = ShadingQuality;
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsShadingQuality.Enabled = false; GraphicsShadingQuality.Enabled = false;
} }
@ -96,17 +94,15 @@ namespace NovetusLauncher
MaterialQuality = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "WoodQuality", XMLTypes.Token)); MaterialQuality = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "WoodQuality", XMLTypes.Token));
GraphicsMaterialQuality.SelectedIndex = MaterialQuality; GraphicsMaterialQuality.SelectedIndex = MaterialQuality;
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
try try
{ {
MaterialQuality = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "TrussDetail", XMLTypes.Token)); MaterialQuality = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "TrussDetail", XMLTypes.Token));
GraphicsMaterialQuality.SelectedIndex = MaterialQuality; GraphicsMaterialQuality.SelectedIndex = MaterialQuality;
} }
catch (Exception ex2) catch (Exception)
{ {
Util.LogExceptions(ex2);
GraphicsMaterialQuality.Enabled = false; GraphicsMaterialQuality.Enabled = false;
} }
} }
@ -116,9 +112,8 @@ namespace NovetusLauncher
AA = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "Antialiasing", XMLTypes.Token)); AA = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "Antialiasing", XMLTypes.Token));
GraphicsAntiAliasing.SelectedIndex = AA; GraphicsAntiAliasing.SelectedIndex = AA;
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsAntiAliasing.Enabled = false; GraphicsAntiAliasing.Enabled = false;
} }
@ -139,9 +134,8 @@ namespace NovetusLauncher
break; break;
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsAASamples.Enabled = false; GraphicsAASamples.Enabled = false;
} }
@ -150,9 +144,8 @@ namespace NovetusLauncher
Bevels = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "Bevels", XMLTypes.Token)); Bevels = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "Bevels", XMLTypes.Token));
GraphicsBevels.SelectedIndex = Bevels; GraphicsBevels.SelectedIndex = Bevels;
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsBevels.Enabled = false; GraphicsBevels.Enabled = false;
} }
@ -161,9 +154,8 @@ namespace NovetusLauncher
Shadows_2008 = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "Shadow", XMLTypes.Token)); Shadows_2008 = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "Shadow", XMLTypes.Token));
GraphicsShadows2008.SelectedIndex = Shadows_2008; GraphicsShadows2008.SelectedIndex = Shadows_2008;
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsShadows2008.Enabled = false; GraphicsShadows2008.Enabled = false;
} }
@ -171,17 +163,15 @@ namespace NovetusLauncher
{ {
Shadows_2007 = Convert.ToBoolean(RobloxXML.GetRenderSettings(doc, "Shadows", XMLTypes.Bool)); Shadows_2007 = Convert.ToBoolean(RobloxXML.GetRenderSettings(doc, "Shadows", XMLTypes.Bool));
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
// try doing march 2007. // try doing march 2007.
try try
{ {
Shadows_2007 = Convert.ToBoolean(RobloxXML.GetRenderSettings(doc, "shadows", XMLTypes.Bool)); Shadows_2007 = Convert.ToBoolean(RobloxXML.GetRenderSettings(doc, "shadows", XMLTypes.Bool));
} }
catch (Exception ex2) catch (Exception)
{ {
Util.LogExceptions(ex2);
GraphicsShadows2007.Enabled = false; GraphicsShadows2007.Enabled = false;
} }
} }
@ -213,9 +203,8 @@ namespace NovetusLauncher
Style2007FolderFinder.Enabled = false; Style2007FolderFinder.Enabled = false;
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
Style2007.Enabled = false; Style2007.Enabled = false;
Style2007FolderFinder.Enabled = false; Style2007FolderFinder.Enabled = false;
} }
@ -225,9 +214,8 @@ namespace NovetusLauncher
QualityLevel = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "QualityLevel", XMLTypes.Token)); QualityLevel = Convert.ToInt32(RobloxXML.GetRenderSettings(doc, "QualityLevel", XMLTypes.Token));
GraphicsLevel.Value = QualityLevel; GraphicsLevel.Value = QualityLevel;
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsLevel.Enabled = false; GraphicsLevel.Enabled = false;
} }
@ -252,9 +240,8 @@ namespace NovetusLauncher
} }
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsFullscreenResolution.Enabled = false; GraphicsFullscreenResolution.Enabled = false;
} }
@ -279,9 +266,8 @@ namespace NovetusLauncher
} }
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
GraphicsWindowResolution.Enabled = false; GraphicsWindowResolution.Enabled = false;
} }

View File

@ -753,9 +753,8 @@ namespace NovetusLauncher
StartGame(ScriptType.Server, false, false, true); StartGame(ScriptType.Server, false, false, true);
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
StartGame(ScriptType.Server, false, false, true); StartGame(ScriptType.Server, false, false, true);
} }
break; break;
@ -783,9 +782,8 @@ namespace NovetusLauncher
StartGame(ScriptType.Studio, false, false, true); StartGame(ScriptType.Studio, false, false, true);
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
StartGame(ScriptType.Studio, false, false, true); StartGame(ScriptType.Studio, false, false, true);
} }
break; break;
@ -811,9 +809,8 @@ namespace NovetusLauncher
Util.ConsolePrint("Please specify 'save', 'load', or 'reset'.", 4, ConsoleBox); Util.ConsolePrint("Please specify 'save', 'load', or 'reset'.", 4, ConsoleBox);
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
Util.ConsolePrint("Please specify 'save', 'load', or 'reset'.", 4, ConsoleBox); Util.ConsolePrint("Please specify 'save', 'load', or 'reset'.", 4, ConsoleBox);
} }
break; break;
@ -851,9 +848,8 @@ namespace NovetusLauncher
Util.ConsolePrint("Alternate Server IP set to " + vals[1], 4, ConsoleBox); Util.ConsolePrint("Alternate Server IP set to " + vals[1], 4, ConsoleBox);
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
Util.ConsolePrint("Please specify the IP address you would like to set Novetus to.", 4, ConsoleBox); Util.ConsolePrint("Please specify the IP address you would like to set Novetus to.", 4, ConsoleBox);
} }
break; break;

View File

@ -109,9 +109,8 @@ public partial class ClientinfoEditor : Form
label9.Text = curversion + " (v" + GlobalVars.ProgramInformation.Version + ")"; label9.Text = curversion + " (v" + GlobalVars.ProgramInformation.Version + ")";
ConvertedLine = SecurityFuncs.Base64DecodeNew(file); ConvertedLine = SecurityFuncs.Base64DecodeNew(file);
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
label9.Text = "v1 (v1.1)"; label9.Text = "v1 (v1.1)";
ConvertedLine = SecurityFuncs.Base64DecodeOld(file); ConvertedLine = SecurityFuncs.Base64DecodeOld(file);
} }
@ -168,9 +167,8 @@ public partial class ClientinfoEditor : Form
} }
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
if (!label9.Text.Equals("v1 (v1.1)")) if (!label9.Text.Equals("v1 (v1.1)"))
{ {
label9.Text = "v2 Alpha (Last used in v1.2 Snapshot 7440)"; label9.Text = "v2 Alpha (Last used in v1.2 Snapshot 7440)";
@ -228,9 +226,8 @@ public partial class ClientinfoEditor : Form
SelectedClientInfo.CommandLineArgs = commandargsver2; SelectedClientInfo.CommandLineArgs = commandargsver2;
} }
} }
catch (Exception ex) catch (Exception)
{ {
Util.LogExceptions(ex);
//Again, fake it. //Again, fake it.
SelectedClientInfo.ClientLoadOptions = Settings.ClientLoadOptions.Client_2008AndUp; SelectedClientInfo.ClientLoadOptions = Settings.ClientLoadOptions.Client_2008AndUp;
SelectedClientInfo.CommandLineArgs = cmdargsorclientoptions; SelectedClientInfo.CommandLineArgs = cmdargsorclientoptions;

View File

@ -59,7 +59,6 @@ namespace NovetusLauncher
} }
catch (Exception ex) catch (Exception ex)
{ {
Util.LogExceptions(ex);
MessageBox.Show("Cannot join server (" + ex.GetBaseException().Message + ").", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show("Cannot join server (" + ex.GetBaseException().Message + ").", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }

View File

@ -25,7 +25,6 @@ namespace NovetusURI
} }
catch (Exception ex) catch (Exception ex)
{ {
Util.LogExceptions(ex);
MessageBox.Show("Failed to register. (Error: " + ex.Message + ")", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show("Failed to register. (Error: " + ex.Message + ")", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
form.Close(); form.Close();
} }