Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Plugin starter code and/or documentation

  1. #1
    Variable Bitrate
    Join Date
    Feb 2006
    Posts
    393

    Plugin starter code and/or documentation

    I have been searching the forum for hours and I am beginning to suspect that the temperature control I bought is not supported in RR.
    See: http://www.mp3car.com/road-runner/14...ml#post1437063

    If it isn't then I'll have to write my own plugin. How do I get started? I read the sticky on how to write/update plugins but there is not much help there. All it really says is you just need to put the dll in the plugins directory and register it.

    Is anyone willing to send me (or provide a link to) some starter code (I code in C#).
    Reading a temperature sensor and displaying it in a label in RR should be really easy but I have to get past the basics of RR plugin development first.

    Thanks in advance.

  2. #2
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,256
    its part of the rr installer.... there is a c# example

    RRExtension Plugin Examples
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  3. #3
    Variable Bitrate
    Join Date
    Feb 2006
    Posts
    393
    Sweet. I'll see if I can figure it out.
    Thanks.

  4. #4
    Variable Bitrate
    Join Date
    Feb 2006
    Posts
    393
    ...not able to figure it out. I grabbed the sample c# code, added a label return, changed the 3 GUIDs. Changed nothing else. I took the compiled dll and put it in a directory off the riderunner\plugins\ directory. When I load RR it does not see the dll (looking at the debug.txt). I tried to register it but it errors out saying it has no entry point. What else should I have done before testing it?

  5. #5
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,256
    right its not going to work that way...

    you have to regasm it

    for debuging sakes, you can set visual studios path to where u want the plugin, and vs will regasm it for you for , debugging sakes

    ie
    plugins/mycoolplugin


    .net dlls are regasmed not regsvred
    and u have to create tlb

    regasm /tlb mycoolplugin.dll
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  6. #6
    Variable Bitrate
    Join Date
    Feb 2006
    Posts
    393
    Thank you. It took me another hour but I got it to compile and RR is recognizing that the plugin is there and "using" it. I am not able to read the label in a skin though. I wonder if I am doing anything wrong.

    I added "case "MyTest"" to the following code.
    public string ReturnLabel(string LBL, string FMT)
    {
    string s = "";

    switch (LBL.ToLower())
    {
    case "boo":
    s = "I'm Scared";
    break;
    case "MyTest":
    s = "Weeeee";
    break;
    }

    return s;
    }

    Now if I just put "MyTest" in the code section of a label on a skin it should return "Weeeee" right?

    ---------- Post added at 01:32 PM ---------- Previous post was at 01:26 PM ----------

    I got it working. I made MyTest lower case and did same in skin and it works.
    Thanks again.

  7. #7

  8. #8
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,256
    Quote Originally Posted by EricE View Post
    Thank you. It took me another hour but I got it to compile and RR is recognizing that the plugin is there and "using" it. I am not able to read the label in a skin though. I wonder if I am doing anything wrong.

    I added "case "MyTest"" to the following code.
    public string ReturnLabel(string LBL, string FMT)
    {
    string s = "";

    switch (LBL.ToLower()) {
    case "boo":
    s = "I'm Scared";
    break;
    case "MyTest":
    s = "Weeeee";
    break;
    }

    return s;
    }

    Now if I just put "MyTest" in the code section of a label on a skin it should return "Weeeee" right?

    ---------- Post added at 01:32 PM ---------- Previous post was at 01:26 PM ----------

    I got it working. I made MyTest lower case and did same in skin and it works.
    Thanks again.


    i highlighted your issues, just so others can see and learn
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  9. #9
    Newbie
    Join Date
    Sep 2008
    Location
    SoCal
    Posts
    34
    Quote Originally Posted by EricE View Post
    Thank you. It took me another hour but I got it to compile and RR is recognizing that the plugin is there and "using" it. I am not able to read the label in a skin though.
    I got it working. I made MyTest lower case and did same in skin and it works.
    Thanks again.
    Where did you find the skin? The "MyExtension" example includes code to build the DLLs but there are no skin files for it that I could find...

  10. #10
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,256
    plugins dont have skins...

    they can, but dont have to...

    so if you make labels and indicators and such and such, you need to make your own DEMO skin

    RR is NOT CF, where everyone uses the same skin!
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

Page 1 of 2 12 LastLast

Similar Threads

  1. Plugin Code Examples?
    By fatejd in forum CF Plugins
    Replies: 1
    Last Post: 10-23-2006, 05:03 PM
  2. Replies: 25
    Last Post: 09-19-2006, 03:51 PM
  3. Sample C# Code For Centrafuse Plugin
    By buurin in forum CF Plugins
    Replies: 0
    Last Post: 01-27-2006, 05:10 PM
  4. Winamp Plugin Source Code
    By Rob in forum Software & Software Development
    Replies: 0
    Last Post: 10-14-2001, 04:04 PM
  5. Keypad plugin source code
    By brandondere in forum General MP3Car Discussion
    Replies: 0
    Last Post: 12-28-2000, 09:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •