Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#909 Overlay does not work with Guild Wars 2

1.2.5
closed
Kissaki
5
2013-12-25
2012-09-05
Anonymous
No

The overlay doesn't work with Guild Wars 2.

Discussion

1 2 > >> (Page 1 of 2)
  • CamEL
    CamEL
    2012-09-07

    Guild Wars 2 launcher problem, workaround solution you may append options in gw2 shortcut:
    e.g.
    -email youremail -password yourpassword -nopatchui

     
  • Kissaki
    Kissaki
    2012-10-19

    Confirmed. We are aware of this.

    Thank you for reporting. And esp. for the work-around.

     
  • Nicos Gollan
    Nicos Gollan
    2012-10-19

    I'll just add what I found so far, can't hurt to have it in here.

    The launcher uses some Flash-based framework, which creates a D3D device. When running dbgview, I get messages about DXGI which appear to come from the D3D10 overlay.

    After the launcher runs, the 3D context is recreated for the game proper, which uses "pure" D3D9 (not Ex) which should not have an issue with the overlay. However, the overlay doesn't detect any of that anymore after it has been triggered by the launcher. That is probably the reason why "hacking around" the launcher makes things work.

     
  • James Orr
    James Orr
    2013-01-10

    Just a note that while the work-around works, you can no longer access the trading post in the game if you use it due to authentication errors.

     
  • Tarun
    Tarun
    2013-03-25

    Do not use this "workaround".

    This will show your account name and password in plain text. Anyone who gets access to your computer could easily get this information. It's not worth the security risks.

     
  • James Orr
    James Orr
    2013-03-25

    Well, I'd say that's a judgement call. If you are the only person with physical access to your computer it's not really a risk.

    Anyway, there's a better work-around now so this is unnecessary. If you start another program such as Bandicam or Overwolf before mumble, the mumble overlay will work. I guess the mumble overlay is going on top of the bandicam overlay.

    The trading post still works using this method.

     
    • Tarun
      Tarun
      2013-04-01

      And should your computer get infected with malware it can very easily get that information from the shortcut(s) used. It really is not worth the risk.

      Kissaki has said they are working on it. I just wonder if there's any ETA for the fix.

       
  • The work-around now breaks any in-game web actions requiring authentication (trading post, etc). I have a patch that fixes this in mumble properly. I will submit it as soon as I reduce it to be minimally invasive.

    The actual problem is not "device recreation". Rather, the game loader spawns a new thread for the actual game. Both loader and game use directx. When the loader thread quits, the reference count drops to zero and directx is unloaded. It is then reloaded by the main game. However, mumble does not rerun HardHook.setup for the reloaded directx DLL. Adding a reference to directx after hooking it solves the problem, but changes the visible interface to the game, so I am currently testing a better solution which detects the reload of the DLL and only then repatches the entry functions.

    I will attach a finished patch later today.

     
  • Ok. Things worked out more or less exactly as I'd hoped. I've attached a patch that gets GW2 overlay working as cleanly as possible.

    Note: the hook check before library load is needed because unfortunately d3d9.dll is the very first DLL loaded by the new thread.

    For reference, I tried hooking FreeLibrary, but that doesn't work because the library loses references by the thread exiting. Also, trying to track the d3d9.dll reference count seems quite fragile to me. I briefly considered also hooking DllMain of d3d9.dll to watch for DETACH, but chickened out. The approach taken should be fairly robust to the manner in which the DLL gets unloaded. Also, since the new code only triggers if the DLL was unloaded, it is likely only GW2 will be affected.

     
  • In case anyone needs GW2 mumble overlay working already, I've put a prebuilt installer up at https://roguestoriches.org.uk/mumble.msi Seems to work for our GW2 guild until there is a mumble release incorporating this fix.

    Don't use the server in that MSI as it has no ICE support.

     
  • Kissaki
    Kissaki
    2013-04-20

    Thank you for your contribution!

    First of all:
    It works!

    I will commit your patch under your displayed sf name here (as author) and do a follow-up commit. It will land in the after-1.2.4 branch.
    Again, thank you for your fix!

     
  • Thank you for your contribution!

    Well, thank you for mumble. ;-)

    It will land in the after-1.2.4 branch.

    Ok. That means that the upcoming 1.2.4 release will still be broken with GW2, right?

    Again, thank you for your fix!

    I was a bit surprised it hadn't been fixed by someone else earlier. I'd been using mumble since before the release of GW2 and just expected someone else to solve it. Eventually, my pain threshold was reached and I found your nice wiki page on how to build mumble, so I decided to take a crack at it. Was quite straight-forward to fix really.

     
    Last edit: Wesley W. Terpstra 2013-04-21
    • Kissaki
      Kissaki
      2013-04-21

      Yes, it will still be broken for 1.2.4. But after 1.2.4 is out of the door, the follow-up snapshots should work just fine. :)

      (reposted as reply, for tree-view)

       
  • James Orr
    James Orr
    2013-04-21

    I have reports from my guild members that this patch doesn't work with windows 8.

     
  • Hmm. I only have Windows 7, so I can't test that. However, I don't see any reason why it would depend on the Windows version. It seems more likely that something else is wrong. Did they enable the overlay and whitelist GW2 in the settings, for example. In case it really is Windows 8, though, I'll see if I can find a guinea pig to test it.

    Also, I know from one of our guild members that a custom d3d9.dll in the GW2 folder will break the overlay. SweetFX is an example that places one.

    If the problems persist, have them create a file called "debugoverlay" (no file extension) in their GW2 folder and post the output of the "Dbgview" program when starting GW2.

     
    Last edit: Wesley W. Terpstra 2013-04-21
  • James Orr
    James Orr
    2013-04-21

    I'm trying to get them to post here directly. As I understand it mumble is crashing with a dll error.

    They do have the overlay working when loading bandicam or enjin first.

     
    • Kissaki
      Kissaki
      2013-04-21

      What did they test with?
      Did they build themselves? Or download the installer Wesley linked to?

      And as Wesley pointed out, debugoutput would be very useful.
      Also with bandicam started first; it may show why it works then.

      (reposted as reply, for tree-view)

       
  • James Orr
    James Orr
    2013-04-21

    They downloaded the installer.

     
  • Pestered here by James. I've tried using the installer as he mentioned and everything seems to install fine. Later trying to run the program I get an immediate error that kernelbase.dll isn't found and to attempt to reinstall; needless to say that doesn't help either.

    Currently running Vista Home Premium SP2. Doing a quick google search it seems most kernelbase.dll problems are in Win7, but I can find tangential references to it maybe being used in Vista as well. The file does not exist in C:\Windows\System32 where it seems it should be, though.

    Not sure how to provide a debugoutput. If that's part of the program crash message it doesn't even appear to be starting. I'm also not certain that this is the same problem that others in the guild are experiencing.

     
    • Kissaki
      Kissaki
      2013-04-21

      Does your GW2 crash?
      Mumble stays open and responsive?
      This is an issue only with the packaged build the installer was linked to in an earlier post?
      The issue does not occur with the current version of Mumble (the 1.2.4 RC)?

       
      • GW2 remains open and fine. Mumble doesn't start at all.
        It only happens with the packaged build provided, downloading the normal version of the client runs fine.

         
        • Kissaki
          Kissaki
          2013-04-22

          So it happens when you have GW2 running before launching Mumble?
          At what point does Mumble crash? Launch-up? Connecting to a server? X-Time?

          I just tried launching GW2 first, then Mumble with my build. It works fine.
          Without showing the overlay though ofc.

           
          Last edit: Kissaki 2013-04-22
          • It happens no matter when I try to start Mumble. And the crash is instant when I attempt to run, none of the Mumble gui ever appears. It seems to be looking for this kernelbase.dll, a file that I don't have and haven't ever needed before, to run the program.

            I've included the error messages I've gotten in a .jpg to try and make things clearer. They appear in sequence as soon as run the program. Running in Admin mode did not help, either.

            http://tinyurl.com/c9jop7f

             
            • Kissaki
              Kissaki
              2013-04-22

              Mh well yeah, wait for an official snapshot. :)

               
            • This is more than likely a build issue with the linked MSI, and unlikely to do with this patch/fix. If you're up for the task, consider building your own copy of Mumble from the after-1.2.4 branch and see if it launches.

               
1 2 > >> (Page 1 of 2)