From 51f2455ada5a62b874cd9039ef83c6123f37a0d4 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 10 Jul 2018 13:40:54 +0300 Subject: [PATCH] Added GameAnalytics framework which can be used to collect usage statistics. When starting the game for the first time, the player can select whether they want to send usage data or not. Atm only used to collect crash reports. --- .../BarotraumaClient/BarotraumaClient.csproj | 18 +++++++++ .../BarotraumaClient/Source/GameMain.cs | 37 ++++++++++++++++++- Barotrauma/BarotraumaClient/Source/Program.cs | 19 ++++++++-- Barotrauma/BarotraumaClient/packages.config | 2 + .../BarotraumaServer/BarotraumaServer.csproj | 18 +++++++++ .../BarotraumaServer/Source/GameMain.cs | 7 ++++ Barotrauma/BarotraumaServer/Source/Program.cs | 19 ++++++++-- Barotrauma/BarotraumaServer/packages.config | 2 + .../BarotraumaShared/Source/GameSettings.cs | 23 +++++++++++- 9 files changed, 135 insertions(+), 10 deletions(-) diff --git a/Barotrauma/BarotraumaClient/BarotraumaClient.csproj b/Barotrauma/BarotraumaClient/BarotraumaClient.csproj index 0b21e5e74..c3fbd723d 100644 --- a/Barotrauma/BarotraumaClient/BarotraumaClient.csproj +++ b/Barotrauma/BarotraumaClient/BarotraumaClient.csproj @@ -29,6 +29,8 @@ v4.5 0.7.0.1 + + ..\BarotraumaShared\Icon.ico @@ -231,9 +233,15 @@ + + ..\..\Libraries\NuGet\GameAnalytics.Mono.SDK.1.1.12\lib\net45\GameAnalytics.Mono.dll + ..\..\Libraries\NuGet\MonoGame.Framework.WindowsDX.3.6.0.1625\lib\net40\MonoGame.Framework.dll + + ..\..\Libraries\NuGet\NLog.4.3.8\lib\net45\NLog.dll + False @@ -247,6 +255,9 @@ ..\..\Libraries\NuGet\OpenTK.2.0.0\lib\net20\OpenTK.dll + + ..\..\Libraries\NuGet\GameAnalytics.Mono.SDK.1.1.12\lib\net45\System.Data.SQLite.dll + @@ -324,6 +335,13 @@ + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + +