Skip to content

Commit

Permalink
More verbose logging to help track new issue a user is having. 7z is …
Browse files Browse the repository at this point in the history
…now 64-bit. MEM updated to 142.
  • Loading branch information
Mgamerz committed Jul 21, 2017
1 parent 6e4e5d2 commit e52c76e
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 8 deletions.
Binary file modified AlotAddOnGUI/7z/7z.dll
Binary file not shown.
Binary file modified AlotAddOnGUI/7z/7z.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion AlotAddOnGUI/AlotAddOnGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ if $(ConfigurationName) == Release (copy "$(SolutionDir)ReleaseBuilder.ps1" "$(T
<Output TaskParameter="Assemblies" ItemName="Targets" />
</GetAssemblyIdentity>
<ItemGroup>
<VersionNumber Include="@(Targets->'%(Version)')" />
<VersionNumber Include="@(Targets-&gt;'%(Version)')" />
</ItemGroup>
</Target>
</Project>
20 changes: 18 additions & 2 deletions AlotAddOnGUI/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Configuration;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

Expand All @@ -30,13 +31,28 @@ public App() : base()

void OnDispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
string errorMessage = string.Format("An unhandled application exception occurred. This exception is not being handled, only logged: {0}", e.Exception.Message);
string st = e.ToString();
string errorMessage = string.Format("ALOT Addon GUI has encountered an uncaught error! This exception is not being handled, only logged for debugging:");
string st = FlattenException(e.Exception);
Log.Error(errorMessage);
Log.Error(st);
//MetroDial.Show(errorMessage, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
//e.Handled = true;
}

public static string FlattenException(Exception exception)
{
var stringBuilder = new StringBuilder();

while (exception != null)
{
stringBuilder.AppendLine(exception.Message);
stringBuilder.AppendLine(exception.StackTrace);

exception = exception.InnerException;
}

return stringBuilder.ToString();
}
}

}
6 changes: 3 additions & 3 deletions AlotAddOnGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ private async Task FetchManifest()
AddonFilesLabel.Content = "Downloading latest installer manifest";
try
{
await webClient.DownloadFileTaskAsync("https://rawgit.com/Mgamerz/AlotAddOnGUI/master/manifest.xml", @"manifest-new.xml");
await webClient.DownloadFileTaskAsync("https://raw.githubusercontent.com/Mgamerz/AlotAddOnGUI/master/manifest.xml", @"manifest-new.xml");
File.Delete(EXE_DIRECTORY + @"manifest.xml");
File.Move(EXE_DIRECTORY + @"manifest-new.xml", EXE_DIRECTORY + @"manifest.xml");
Log.Information("Manifest fetched.");
Expand All @@ -494,7 +494,7 @@ private async Task FetchManifest()

readManifest();

Log.Information("Manifest read. Switching over to user control");
Log.Information("readManifest() has completed. Switching over to user control");

Install_ProgressBar.IsIndeterminate = false;
HeaderLabel.Text = "Download the listed files, then drag and drop the files onto this window.\nOnce all items are ready, build the addon.";
Expand Down Expand Up @@ -938,7 +938,7 @@ private bool ExtractAddons(int game)
}
}
}

Log.Information("Completed staging.");

InstallWorker.ReportProgress(0);

Expand Down
4 changes: 2 additions & 2 deletions AlotAddOnGUI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[assembly: AssemblyCulture("")]

// Version informationr(
[assembly: AssemblyVersion("1.2.31.97")]
[assembly: AssemblyFileVersion("1.2.31.97")]
[assembly: AssemblyVersion("1.2.35.107")]
[assembly: AssemblyFileVersion("1.2.35.107")]
[assembly: NeutralResourcesLanguageAttribute( "en-US" )]

Binary file modified AlotAddOnGUI/memodder/MassEffectModder.exe
Binary file not shown.

0 comments on commit e52c76e

Please sign in to comment.