Skip to content

Commit 065cbfa

Browse files
authored
Merge pull request #23 from ProfBits/Develop
Version 1.3.22
2 parents 423cbcb + 8191f04 commit 065cbfa

File tree

5 files changed

+70
-18
lines changed

5 files changed

+70
-18
lines changed

LogUploader/Data/DataConfig.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
"NameEN": "The Key of Ahdashim",
4444
"NameDE": "Der Schlüssel von Ahdashim",
4545
"AvatarURL": "https://wiki.guildwars2.com/images/2/2d/The_Key_of_Ahdashim_loading_screen.jpg"
46+
},
47+
{
48+
"ID": 8,
49+
"NameEN": "Mount Balrior",
50+
"NameDE": "Berg Balrior",
51+
"AvatarURL": "https://wiki.guildwars2.com/images/8/83/Mount_Balrior_loading_screen.png"
4652
}
4753
],
4854
"StrikeMissions": [
@@ -562,6 +568,45 @@
562568
"AvatarURL": "https://wiki.guildwars2.com/images/8/8b/Mini_Qadim_the_Peerless.png",
563569
"RaidOrgaPlusID": 25
564570
},
571+
{
572+
"ID": 26725,
573+
"NameEN": "Greer",
574+
"NameDE": "Greer",
575+
"FolderEN": "Greer, the Blightbringer",
576+
"FolderDE": "Greer",
577+
"EiName": "Greer, the Blightbringer",
578+
"GameAreaName": "RaidWings",
579+
"GameAreaID": 8,
580+
"DiscordEmote": "<:greer:1312075892419330048>",
581+
"AvatarURL": "https://i.imgur.com/19lr7VM.png",
582+
"RaidOrgaPlusID": 52
583+
},
584+
{
585+
"ID": 26774,
586+
"NameEN": "Decima",
587+
"NameDE": "Decima",
588+
"FolderEN": "Decima, the Stormsinger",
589+
"FolderDE": "Decima",
590+
"EiName": "Decima, the Stormsinger",
591+
"GameAreaName": "RaidWings",
592+
"GameAreaID": 8,
593+
"DiscordEmote": "<:decima:1312075891119099924>",
594+
"AvatarURL": "https://i.imgur.com/EJJRx02.png",
595+
"RaidOrgaPlusID": 53
596+
},
597+
{
598+
"ID": 26712,
599+
"NameEN": "Ura",
600+
"NameDE": "Ura",
601+
"FolderEN": "Ura",
602+
"FolderDE": "Ura",
603+
"EiName": "Ura, the Steamshrieker",
604+
"GameAreaName": "RaidWings",
605+
"GameAreaID": 8,
606+
"DiscordEmote": "<:ura:1312075893878952069>",
607+
"AvatarURL": "https://i.imgur.com/hUdfF7h.png",
608+
"RaidOrgaPlusID": 54
609+
},
565610
{
566611
"ID": 22154,
567612
"NameEN": "Icebrood Construct",

LogUploader/Helper/EliteInsights.cs

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
using System.IO;
44
using System.Diagnostics;
55
using System.Linq;
6-
using System.Text;
76
using System.Threading.Tasks;
8-
using LogUploader.Properties;
97
using System.IO.Compression;
108
using System.Reflection;
11-
using System.Net;
129
using LogUploader.Data.Settings;
1310
using Extensiones.HTTPClient;
1411
using System.Threading;
@@ -27,12 +24,14 @@ internal static class EliteInsights
2724
private const string GitHubApiLink = @"https://api.github.com/repos/baaron4/GW2-Elite-Insights-Parser/releases/latest";
2825
private const string USER_AGENT = "LogUploader";
2926
private const string ZIP_NAME = "NewEI.zip";
27+
private const string EI_EXECUTABLE = "GuildWars2EliteInsights-CLI.exe";
3028

3129
public static string LogsPath { get => BASE_PATH + LOGS; }
3230
private static string TempPath { get => BASE_PATH + TEMP_FOLDER; }
3331
private static string TempOldPath { get => BASE_PATH + TEMP_OLD_FOLDER; }
3432
private static string BinPath { get => BASE_PATH + BIN; }
3533
private static string ZipFilePath { get => BASE_PATH + ZIP_NAME; }
34+
private static string EiPath { get => BASE_PATH + BIN + EI_EXECUTABLE; }
3635

3736
private static string DownloadURLCache { get; set; } = null;
3837

@@ -49,9 +48,9 @@ public static void Init(IEliteInsightsSettings settings)
4948

5049
public static Version UpdateLocalVersion()
5150
{
52-
if (File.Exists(BASE_PATH + BIN + "GuildWars2EliteInsights.exe"))
51+
if (File.Exists(EiPath))
5352
{
54-
var fi = FileVersionInfo.GetVersionInfo(BASE_PATH + BIN + "GuildWars2EliteInsights.exe");
53+
var fi = FileVersionInfo.GetVersionInfo(EiPath);
5554
LocalVersion = new Version(fi.ProductMajorPart, fi.ProductMinorPart, fi.ProductBuildPart, fi.ProductPrivatePart);
5655
}
5756
else
@@ -104,7 +103,7 @@ public static bool UpdateAvailable()
104103

105104
public static bool IsInstalled()
106105
{
107-
return File.Exists(BASE_PATH + BIN + "GuildWars2EliteInsights.exe");
106+
return File.Exists(EiPath);
108107
}
109108

110109
/// <summary>
@@ -190,7 +189,7 @@ public static async Task<Version> Update(IProxySettings settings, IProgress<doub
190189
}
191190
catch (Exception e)
192191
{
193-
Logger.Error("Unkown EI Update error");
192+
Logger.Error("Unknown EI Update error");
194193
Logger.LogException(e);
195194
FolderCleanup();
196195
return LocalVersion;
@@ -220,7 +219,7 @@ public static async Task<Version> Update(IProxySettings settings, IProgress<doub
220219
private static string GetDownloadURL(Newtonsoft.Json.Linq.JObject jsonData)
221220
{
222221
return jsonData["assets"]
223-
.Where(json => (string)json["name"] == "GW2EI.zip")
222+
.Where(json => (string)json["name"] == "GW2EICLI.zip")
224223
.Select(json => (string)json["browser_download_url"])
225224
.First();
226225
}
@@ -252,14 +251,13 @@ public static List<string> Parse(string log)
252251
throw new NotSupportedException($"EliteInsights version too low.\nInstalled {LocalVersion}\nMin required {new Version(2, 24)}\nPlease update EI via the settings.");
253252
}
254253

255-
string destConf = PrepearConfig();
256-
//-p requiered for silent execution!!
257-
var args = $"-p -c \"{destConf}\" \"{log}\"";
254+
string destConf = PrepareConfig();
255+
var args = $"-c \"{destConf}\" \"{log}\"";
258256
var psi = new ProcessStartInfo
259257
{
260-
FileName = BASE_PATH + BIN + "GuildWars2EliteInsights.exe",
258+
FileName = EiPath,
261259
WorkingDirectory = BinPath,
262-
CreateNoWindow = false,
260+
CreateNoWindow = true,
263261
UseShellExecute = false,
264262
RedirectStandardOutput = true,
265263
RedirectStandardError = true,
@@ -304,7 +302,7 @@ private static List<string> ReadLinesFromStream(StreamReader stream)
304302
return lines;
305303
}
306304

307-
private static string PrepearConfig()
305+
private static string PrepareConfig()
308306
{
309307
var defaultConf = $"{Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\Data\EIconf.conf"}";
310308
var destConf = BASE_PATH + "EIconf.conf";

LogUploader/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
// übernehmen, indem Sie "*" eingeben:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.3.21.0")]
36+
[assembly: AssemblyFileVersion("1.3.22.0")]
3737

3838
[assembly: InternalsVisibleTo("LogUploaderTests")]

LogUploaderSetup/LogUploaderSetup.vdproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,15 +882,15 @@
882882
{
883883
"Name" = "8:Microsoft Visual Studio"
884884
"ProductName" = "8:Log Uploader"
885-
"ProductCode" = "8:{807045B6-B2AB-4514-B049-754EF5B084F5}"
886-
"PackageCode" = "8:{D83EADB4-3FE4-4E9B-AD9F-9E0ED45934D9}"
885+
"ProductCode" = "8:{D22837CD-3A56-4F0E-826D-C240F5A4CAD1}"
886+
"PackageCode" = "8:{724D3492-AEED-49DD-90B2-A6E715889934}"
887887
"UpgradeCode" = "8:{3F3DD479-F9CF-48EE-8590-B34CEB67C1B3}"
888888
"AspNetVersion" = "8:4.0.30319.0"
889889
"RestartWWWService" = "11:FALSE"
890890
"RemovePreviousVersions" = "11:TRUE"
891891
"DetectNewerInstalledVersion" = "11:FALSE"
892892
"InstallAllUsers" = "11:FALSE"
893-
"ProductVersion" = "8:1.3.21"
893+
"ProductVersion" = "8:1.3.22"
894894
"Manufacturer" = "8:Bits Inc."
895895
"ARPHELPTELEPHONE" = "8:"
896896
"ARPHELPLINK" = "8:https://github.com/ProfBits/LogUploader2"

ReleaseNotes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
# v1.3.23
2+
13
# v1.3.22
4+
02.12.24
5+
6+
## Features
7+
- Add support for Wing 8 - Mount Balrior
8+
9+
## Bugfixes
10+
- Fix local log parsing for EI 3.0.0 and onward
211

312
# v1.3.21
413
26.10.24

0 commit comments

Comments
 (0)