Results 1 to 7 of 7

Thread: ONCOMMANDINVALID problem

  1. #1
    Maximum Bitrate
    Auto Apps:loading...
    lambosprit's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    809

    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. #2
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    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."

  3. #3
    Maximum Bitrate
    Auto Apps:loading...
    lambosprit's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    809
    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?

  4. #4
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,078
    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."

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    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."

  6. #6
    Maximum Bitrate
    Auto Apps:loading...
    lambosprit's Avatar
    Join Date
    Sep 2006
    Location
    UK
    Posts
    809
    Quote 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.

  7. #7
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Quote 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."

Similar Threads

  1. Lilliput TouchKit problem solved!
    By AAVfReaK in forum LCD/Display
    Replies: 4
    Last Post: 11-07-2010, 08:29 AM
  2. reconnected puter and now audio problem..
    By NYCdesignkid in forum Car Audio
    Replies: 2
    Last Post: 05-30-2006, 11:09 PM
  3. gps navilock and com problem
    By lele67 in forum GPS
    Replies: 0
    Last Post: 04-01-2006, 07:41 PM
  4. Problem with directshow filter and WMP
    By EricE in forum Software & Software Development
    Replies: 0
    Last Post: 03-01-2006, 10:38 AM
  5. Car Idle - power/amp problem?
    By TheFaze in forum Car Audio
    Replies: 1
    Last Post: 12-15-2005, 11: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
  •