Closed AngelusMortiel closed 2 years ago
Seems very plausible from your investigation. If you have the time, you could try contributing a fix for this. Otherwise, it may take a while for me to get around to this.
@Medallyon I'm getting around to playing with this, although I'm not well-versed on C#... As I mentioned before, my experience comes from PowerShell (very different, but with similar elements). I'll run with the theory I posed originally to see if that works.
The change I'll be testing looks like this:
<!--StartFragment-->
if (this.EsoIsRunning)
{
this.EsoRanOnce = true;
if ((bool)this.Settings.Get("CloseLauncher"))
{
processes = Process.GetProcessesByName("Bethesda.net_Launcher");
if (processes.Length > 0)
{
<!--Adding Thread.Sleep() method here-->
Thread.Sleep(10000);
processes[0].Kill();
}
}
if (!this.JustMinimized)
{
this.JustMinimized = true;
this.Minimize();
}
this.UpdateStatusField("ESO is running!\nYour status is being updated.", Color.LimeGreen);
}
<!--EndFragment-->
Let me know if the newest release fixes this behaviour for you!
@Medallyon So, yes, the issue appeared resolved with the 0.4.4 update.
Unfortunately, more recent updates have broken the client in different ways that are unrelated to this particular bug report. I opened a new issue report for that.
Hey @Medallyon,
I'm trying to see if I can capture some kind of evidence about what is happening here exactly on a technical level, but to explain the layman's observation on what I see happening:
This does not happen under two conditions:
My theory here is that the function that kills the ESO launcher may need to simply have a delay added after the game is launched. I don't know C# very well specifically and don't know the inner workings of ESO, but I do know from my experience PowerShell scripting that sometimes adding a pause is needed to give time for a "launcher" application to pass an authentication/license token of some kind into the application proper before killing the launcher (e.g. verifying game is "authentic"). It could be that my system is possibly a bit slow and the DRP client kills the launcher before the ESO application received a "token" from the launcher. Thus, the ESO application suspends itself indefinitely, awaiting that "token" from the now-closed launcher.
Thoughts?