It is currently April 24th, 2024, 10:16 am

Plugin documentation?

Share and get help with Plugins and Addons
User avatar
Yamajac
Posts: 134
Joined: June 30th, 2014, 8:44 am

Plugin documentation?

Post by Yamajac »

Is there any good documentation on making a plugin? Like a tutorial or example for a hello world plugin?

I'm having trouble with getting my skin to actually receive any kind of information from the plugin. I'm trying to return "test" in GetString, and 5.3 in Update, just to see what information goes where.

But all that's happening is my skin is displaying a 0 wherever I would hope to see test, or at worse 5.3.

I've looked through code of other plugins, and they all have so much going on, I can't really pinpoint exactly what I'm doing differently that would be screwing it up.

From what I can see, what you return through the Update and GetString functions is the information that the skin measure receives, but that doesn't appear to be the case, unfortunately.
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Plugin documentation?

Post by .raptor »

Yamajac wrote:Is there any good documentation on making a plugin? Like a tutorial or example for a hello world plugin?

I'm having trouble with getting my skin to actually receive any kind of information from the plugin. I'm trying to return "test" in GetString, and 5.3 in Update, just to see what information goes where.

But all that's happening is my skin is displaying a 0 wherever I would hope to see test, or at worse 5.3.

I've looked through code of other plugins, and they all have so much going on, I can't really pinpoint exactly what I'm doing differently that would be screwing it up.

From what I can see, what you return through the Update and GetString functions is the information that the skin measure receives, but that doesn't appear to be the case, unfortunately.
That is exactly the case.
http://docs.rainmeter.net/developers#CreatePlugin

When i started, all i did was modify the SystemVersion plugin. Just remember that the plugin needs to know what its supposed to return aswell (In SystemVersion it is Type=*type name here*).
Template projects and examples: https://github.com/rainmeter/rainmeter-plugin-sdk
User avatar
Yamajac
Posts: 134
Joined: June 30th, 2014, 8:44 am

Re: Plugin documentation?

Post by Yamajac »

.raptor wrote: That is exactly the case.
http://docs.rainmeter.net/developers#CreatePlugin

When i started, all i did was modify the SystemVersion plugin. Just remember that the plugin needs to know what its supposed to return aswell (In SystemVersion it is Type=*type name here*).
Template projects and examples: https://github.com/rainmeter/rainmeter-plugin-sdk
Well now, I managed to resolve my problem. And this is mighty embarassing, I'd far prefer to remain ignorant and just brush it off like this never happened.

But in the odd case somebody else is here having the same problem (dear god, please nobody be as dumb as me), try double checking whether you're compiling for a 32 or 64 bit OS.


I'm gonna go cry in a corner now. Please bring me ice cream.
onedeed
Posts: 3
Joined: September 17th, 2014, 11:44 am

Re: Plugin documentation?

Post by onedeed »

I was getting 0s as well.

In my case, I attempted to manually remove the #if ... #endif around the GetString function vs. using the #define statement at the top of the C# PluginEmpty project.

For future reference, uncomment the define statement for GetString (it's literally the 2nd line of the PluginEmpty.cs file) as there are multiple preprocessor statements that need to be removed in order for GetString to work.

Mind if I join you in the corner?