Jagh

Develop new Overwolf plugin?

Recommended Posts

Is there a way to develop a new Overwolf plugin(like the TS plugin), that would add new functions to the JavaScript API?

 

Hi, there most certainly is.

 

Check out https://github.com/overwolf/simple-io-plugin and https://github.com/overwolf/overwolf-sample-plugin

 

Here is the documentation for the I/O plugin http://developers.overwolf.com/overwolf-io-plugin/

 

I believe the simple I/O plugin is one that is actually shipped with Overwolf so you can see how that interacts with Javascript. They also have sample apps you can check out. The second one is a simple example that you can build upon.

 

They are programmed in C++

Edited by Jasonfran

Share this post


Link to post
Share on other sites

I'm in the process of writing an NPAPI plugin for Overwolf but I'm having quite a hard time getting things to work.

 

For instance, trying the sample app at https://github.com/overwolf/overwolf-sample-plugin.git results in a "no method 'echo'" in the console.

 

It seem like Overwolf is failing to actually load the plugin (same is happening with my own plugin).

 

I'm on  0.78.38.0 developer version.

 

EDIT: the same happens with the simple I/O example. I'm running on Windows 8.1, 64 bit.

EDIT2: tested on Win7 32 bit, and the sample plugin works, gonna test my own, but I think it's fairly clear the problem lies in the 64 bit helpers or something

Edited by meh

Share this post


Link to post
Share on other sites

Hi-yoosh Meh,

I don't think it has to do with the helpers.

 

Maybe the plugin is dependent on a file that doesn't exist on the system.

If you could test the following on the failing 64bit machine:

 

- Download dependency walker: http://www.dependencywalker.com/depends22_x86.zip

- run it and load the failing plugin

- on the left pane (the tree) - see if you have elements highlighted in yellow or any other color - please let me know.

 

Thanks!

Share this post


Link to post
Share on other sites

So you run our app (the Sonic the Hedgehog one) and in the Task Manager you don't see an OverwolfBrowser with type=plugin?

I'll check that, but the plugin is not loaded at all, `navigator.mimeTypes` doesn't contain the sample plugin MIME type.

Share this post


Link to post
Share on other sites

I can confirm there is an OverwolfBrowser process with the plugin. When I attach gdb it makes gdb crash, but that's another story.

 

And now the property is present on `navigator.mimeTypes`. But still, there's no method `echo` or `add` method on `plugin()`. `plugin().sampleProperty` also returns undefined.

Share this post


Link to post
Share on other sites

Does the teamspeak plugin work for you?

Yes, it works, and that's what puzzles me most, I know it uses NPAPI.

 

Just to let you know - I am running on a fresh new Win 8 64bit computer and it is working.  This is why I'm asking all these questions.

Sure, anything that can help identifying what the issue on my system is, it's driving me nuts.

Share this post


Link to post
Share on other sites

One difference would be that the teamspeak plugin is signed and this one isn't.  Maybe you have some anti-virus blocking it? maybe avast?

Nope, no antivirus on my machine, aside from the standard one that comes with Windows, I'll try to look into that and disable it.

Share this post


Link to post
Share on other sites

I figured it out, the issue was with cygwin being a turd, if I run the Overwolf app from a directory inside the cygwin path, it doesn't work, if I take it out somewhere else, it works.

 

Actually it's not the path, it's some kind of hidden permission or whatnot, since I can't develop on Windows because the tools just suck hard for me I ssh back into the Windows laptop from my dev machine, and cygwin's sshd must have broken something permission/owner wise, which is causing the issue.

Edited by meh

Share this post


Link to post
Share on other sites

Maybe it was a loading problem.

 

Did you, by any chance, try to reload the plugin from the overwolf://packages page?  I know it is late to ask now :)

Tried now, same results. But yeah, at least we know it's not Overwolf doing something funky, the rest is on me to figure out why cygwin is acting like that.

 

Thanks a lot for the help!

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