Announcement

Collapse
No announcement yet.

ONCOMMANDINVALID problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • ONCOMMANDINVALID problem

    Can some one tell me how RR decides to invoke the ONCOMMANDINVALID event. I'm trying to help someone who's having trouble with my mobilephone.NET plugin but I dont understand why its not working.
    As far as I'm concerned the command is valid so why does RR think its not?


    RR debug has the following

    02.06.2009 23:47:29: Enter Exec: False, mobilephone.skin, "ONBTNPRESS||mobilephone_dial", False
    02.06.2009 23:47:29: Que Exec: True, mobilephone.skin, "ONBTNPRESS||mobilephone_dial", False
    02.06.2009 23:47:29: Que Exec: True, mobilephone.skin, "mobilephone_dial", False
    02.06.2009 23:47:34: Executing: mobilephone_dial
    02.06.2009 23:47:34: Command not executed: mobilephone_dial
    02.06.2009 23:47:34: Que Exec: True, mobilephone.skin, "ONCOMMANDINVALID", False
    02.06.2009 23:47:34: Executing: ONCOMMANDINVALID

    thanks in advance

  • #2
    I really wish that this forum had a bug tracking feature!~! Then maybe when ppl post a bug, we wouldn't constantly have to ask....

    What RR ver you running?

    If the cmd thats trying to be executed is NOT: Std RR cmd ,a cmd matching any found in the Exectbl.ini files(rr's and skins), or a plugin cmd then thats event is fired.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

    Comment


    • #3
      Didn't think I was posting a bug , I was just asking a question.

      I'm using 01/04/09 version.

      So how does RR know what a valid plugin command is?

      Comment


      • #4
        It doesn't if the PI was incorrectly coded. If you process a cmd in a plugin(PI), you have to return a value so that RR knows what happened inside the PI. Under normal circumstances, if you process a cmd completely and don't need RR to further process it, you return a 2. If you changed the passed "CMD" string parameter, then you need to return 3.
        RideRunner...The #1 FE, PERIOD.

        Current Project: DFXVoice [v1.0 Released]
        Next in line: RRMedia v2.0

        DFX 5.1.1 Skin
        Appstore Link

        My RideRunner Plugins
        RRMedia
        RRExtended
        DFXVoice

        "There are no bugs - only undocumented features."

        Comment


        • #5
          if you're getting a command not executed/oncommandinvalid response (for the mobilephone_dial command), then either the plugin is not loaded correctly (setup issue) OR the plugin is not returning a processed command response code (plugin issue). If this is an isolated issue, then it's likely to be the first case.
          Ride Runner RR's Myspace

          "Being happy is not about having what you want, it's about wanting what you have."
          "The best things in life are always free - but that doesn't mean money can't buy you good things."

          Comment


          • #6
            Originally posted by guino View Post
            if you're getting a command not executed/oncommandinvalid response (for the mobilephone_dial command), then either the plugin is not loaded correctly (setup issue) OR the plugin is not returning a processed command response code (plugin issue). If this is an isolated issue, then it's likely to be the first case.
            thanks guino. Its a really strange issue. The guy can see the plugin in the plugin manager. If he sets all the commands to lowercase some of them work (he can load and see the custom list) but one doesn't. If he sets the commands to uppercase lots of them dont work. My code allways converts the commands to lowercase before checking them.

            For every command my plugin returns a command number , all 2 I think. The commands he's sending I've triple checked to make sure I send back a 2. and he's the only one to report this issue.

            I'll get him to re-install but any other ideas? particularily why lowercase works but not upper.

            Comment


            • #7
              Originally posted by lambosprit View Post
              I'll get him to re-install but any other ideas? particularily why lowercase works but not upper.
              RR will pass the command to the plugin as it is in the .skin file -- you should take steps to convert it to upper/lower case before comparisons to avoid a casing issue when processing a command (The example plugins use lcase/uscase to do that in the select statements). Other than that, there should be no difference for upper/lower case commands.
              Ride Runner RR's Myspace

              "Being happy is not about having what you want, it's about wanting what you have."
              "The best things in life are always free - but that doesn't mean money can't buy you good things."

              Comment

              Working...
              X