meh

Mumble Link plugin released

Recommended Posts

Been working on it in the past few days, and here it is. You can find the source code here and I will upload a README shortly.

 

On a related note, I also worked on a library to simplify writing plugins for Overwolf, you can find it here.

 

If you find any problems please do open issues on the Github repository.

Edited by meh

Share this post


Link to post
Share on other sites

Hey!,

 

First I'd like to say that you reallllllllyy did an awesome job with this! This is just what most poeple need I think!,

 

I just got some problems setting things up and I hope you can help me!

 

In my manifest I added the following:

"plugins": [
      "npMumbleLink.dll"
]

while having added the npMumbleLink.dll in the root folder of my project.(Next to the manifest file)

 

Next I tried to run the following javascript code:

 

function mumble()
{
  return document.getElementById("mumble");
}
alert(mumble().avatar.position.x);

I also added the embed tag just like you said in the README.txt.

 

 

I keep getting the error "Cannot read property position of undefined" while if I try alert(document.getElementById('mumble')) I get a HTMLElement object.

 

Could you mayby help me with this? (Only if you want to!)

 

Christian

Share this post


Link to post
Share on other sites

Can you try adding this line as early as possible?

navigator.plugins.refresh(true);

If that doesn't work can you give me the output of this?

navigator.mimeTypes["application/x-mumble-link"]

Share this post


Link to post
Share on other sites

 

Can you try adding this line as early as possible?

navigator.plugins.refresh(true);

If that doesn't work can you give me the output of this?

navigator.mimeTypes["application/x-mumble-link"]

 

Just tested the sample overwolf app which worked!

 

Now on the way to test the things you said! 10sec!

Share this post


Link to post
Share on other sites

 

Can you try adding this line as early as possible?

navigator.plugins.refresh(true);

If that doesn't work can you give me the output of this?

navigator.mimeTypes["application/x-mumble-link"]

 

The results are the following when running this script:

<script>
    navigator.plugins.refresh(true);
    alert(navigator.mimeTypes["application/x-mumble-link"]);
    alert(document.getElementById('plugin').sampleProperty);
    alert(document.getElementById('mumble').identity);
</script>

And I got a "undefined" and another "undefined", while the middle alert of the plugin works and returns 42.

Edited by GW2_Dolyak

Share this post


Link to post
Share on other sites

The results are the following when running this script:

<script>
    navigator.plugins.refresh(true);
    alert(navigator.mimeTypes["application/x-mumble-link"]);
    document.getElementById('plugin').echo("Hallo", function(){});
    alert(document.getElementById('mumble').identity);
</script>

And I got a "undefined" and another "undefined"

 

There's no `echo` method on `npMumbleLink`, are you sure you aren't mixing the Overwolf's sample in a weird way while trying to test the Mumble Link one?

 

Here is an example app for Mumble Link, just download that and put the `npMumbleLink.dll` with the rest of the files.

Share this post


Link to post
Share on other sites

There's no `echo` method on `npMumbleLink`, are you sure you aren't mixing the Overwolf's sample in a weird way while trying to test the Mumble Link one?

 

Here is an example app for Mumble Link, just download that and put the `npMumbleLink.dll` with the rest of the files.

 

I just ran your sample app!

 

It gave me: Plugin couldn't be loaded?!

 

At the previous test I was indeed mixing both your plugin and the sample app, and the strange thing is that the sample app just worked fine for me. Apperently it doesn't load (I also checked all the navigator.plugins and only the sample one was there before)

 

I wonder what causes it to not load..

Share this post


Link to post
Share on other sites

I just ran your sample app!

 

It gave me: Plugin couldn't be loaded?!

 

At the previous test I was indeed mixing both your plugin and the sample app, and the strange thing is that the sample app just worked fine for me. Apperently it doesn't load (I also checked all the navigator.plugins and only the sample one was there before)

 

I wonder what causes it to not load..

Can you give me some details about your operating system please?

 

Also if you can do what this post says but with the npMumbleLink.dll it would help.

Share this post


Link to post
Share on other sites

Here are the specs of my PC!:

Windows 7 Home Premium 64 Bits
Service Pack 1
6GB Ram (But I don't think that matters right?)

If there's anything else you want to know feel free to ask!

 

Going to look at the link you just provided

Share this post


Link to post
Share on other sites

It didn't give you any warnings when you opened it right? And there's nothing yellow on the bottom panel that's hidden?

 

That's weird, I didn't test on a Windows 7 machine but I'll do that when I get back home, only tested on Windows 8.1 (64 bit).

 

I have a feeling this is the executable flag problem I had in that thread I linked earlier, since I don't know much about Windows (I'm a Linux user since ever, I only use Windows for playing games), can you try wobbling around to figure out if there's a way to check/set if there's no executable flag on the .dll?

Share this post


Link to post
Share on other sites

Got no other ideas to check what's wrong, I'll test it on a Windows 7 machine when I get home, it's 32 bit tho.

 

If anyone else got any other ideas, please share.

Share this post


Link to post
Share on other sites

I will try to compile the project on VS2010, I am just missing the Pimpa.h file. Do you know where I can get it from?

You have to use git and do `git submodule init; git submodule update`.

 

Otherwise download the source from the pimpa repo that's linked in the first post.

 

I didn't compile it with MSVC, so it might not even compile there, used MinGW.

Share this post


Link to post
Share on other sites

It compiled for me when I changed windef.h to windows.h

 

Just got some errors for deprecation and an interesting error:

 

\source\runtime.c(222): warning C4098: 'NPN_Status' : 'void' function returning a value

void
NPN_Status (NPP instance, const char* message)
{
	return _browser->status(instance, message);
}

is that actually possible?

 

Also! I tried it being compiled by VS2012 but that didn't really work...

Share this post


Link to post
Share on other sites

Ok, back home, it doesn't work on my Windows 7 machine either.

 

Can someone with Windows 8.1 verify it works so we can rule out it's my machine doing some magic?

Share this post


Link to post
Share on other sites

YOU'RE BRILLIANT! I got all the data I needed from the Plugin!

 

Sometimes it doesn't recognise the position.x but that's no problem! I already got tons more then I expected!

 

Thank you, thank you, thank you:P

 

Christian

Share this post


Link to post
Share on other sites

YOU'RE BRILLIANT! I got all the data I needed from the Plugin!

 

Cool, now if you beat me at the contest I deserve some -40% condi duration food :P

 

Sometimes it doesn't recognise the position.x but that's no problem! I already got tons more then I expected!

 

Tell me more about this, it may be some issue with the conversion.

 

Thank you, thank you, thank you:P

 

You're welcome.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now