Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Variable help please!

  1. #1
    Constant Bitrate Sweet05's Avatar
    Join Date
    Apr 2006
    Posts
    186

    Variable help please!

    In the short time I have been messing with RR I have downloaded a few skins to test out and get ideas from. The one thing I have noticed with most is that you have to go into several different files (rr.ini, ExecTBl.ini, and the skin files themselves) to edit paths and several other options. Well, I would like to make a config screen for my skin that sets variables for all the different paths and other skin settings and I was woundering how to display a variable as a label so I could add a button that when pushed lets the user enter his RR path on the osk and display this path in a label after they have entered it.
    Example:

    (Button1)Set RR path >> (Label1) path to rr
    (Button2)Set winamp path >> (Label2) path to wimamp.
    (Button3)etc. >> (Label3)etc.

    I think this would be very helpful for users to download and go with a new skin instead of spending two days digging through skin files and such try to find everywhere the skin tries to use incorrect paths

  2. #2
    FLAC Chuck's Avatar
    Join Date
    Sep 2003
    Location
    Ellicott City, MD
    Posts
    1,671
    This is for the rr.ini only

    Here is a sample of the way I set a setting in my gps volume control

    Lable "=$speedattvola$"

    Button to bring up NUMosk "NUMOSKTOVAR;speedattvola" or OSKTOVAR for the osk

    Then to save the settimg "SAVETOINI;speedattvola;$speedattvola$"

    Remember I think you have to restart RR for the settings to take effect


    edit
    This is with the test version of RR
    2001 S10 ZR2

    Chucks Skin - to old

  3. #3
    Constant Bitrate Sweet05's Avatar
    Join Date
    Apr 2006
    Posts
    186
    Thanks for getting me started chuck. I tried the Label "=$var$" before but it didn't work must have misspelled the var or something cause it is working fine now. This is what I came up with for the buttons.

    Code:
    "OSKTOVAR;entereddata||SETVAR;musicpath;$entereddata$||SAVETOINI;musicpath;$entereddata$"
    Using the setvar in the middle there makes the changes instant so you don't have to exit to make them correct.

    Again thanks alot

  4. #4
    FLAC Chuck's Avatar
    Join Date
    Sep 2003
    Location
    Ellicott City, MD
    Posts
    1,671
    You better check your save because when you are typing in on the osk the SAVETOINI already saved the old VAR.

    I had to have a separate button for save

    Also with the "SETVAR;musicpath;$entereddata$"
    2001 S10 ZR2

    Chucks Skin - to old

  5. #5
    Constant Bitrate Sweet05's Avatar
    Join Date
    Apr 2006
    Posts
    186
    Hmmm thanks for the tip will definately check it out

  6. #6
    Constant Bitrate Sweet05's Avatar
    Join Date
    Apr 2006
    Posts
    186
    Ok I have run into a small road block it would seem. I have been using some of RR's native variables for tweaking settings in the skin itself but it would appear not all of the settings in the rr.ini file translate into actual variables themselves (example: gpsmode can't be accessed in the skin as a variable but say... musicpath can) Either gpsmode is never converted into a variable inside RR or it is named something else. I would like to be able to display which gps option the user has selected inside the skin and mabye even be able to change it. Any ideas Chuck, Guino, anyone!! HELP!!

  7. #7
    Constant Bitrate Sweet05's Avatar
    Join Date
    Apr 2006
    Posts
    186
    Ok this is wierd. I came up with a little work around using an intermitent variable called mygpsmode. But there is a small problem. When I run this command

    Code:
    "SAVESETTINGS","SAVETOINI;gpsmode;$mygpsmode$||SAVETOINI;mygpsmode;$mygpsmode$"
    It adds another gpsmode entry to the bottom of the rr.ini all the other gpsmode entries are also updated. There is only ever one mygpsmode entry though. I was up to 5 of them before I noticed the "glitch" any ideas?

    Here is a short snippit from my rr.ini:

    ...
    mapcity=
    gpsmode=1
    gpsport=0
    ...
    cddrivepath=d:\
    satscreentouse=1
    gpsmode=1
    gpsmode=1
    gpsmode=1
    mygpsmode=1

    If I change the gpsmode setting in the skin it will change everything and also add another gpsmode entry.

  8. #8
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Seems there's a bug, I'll try to fix it... but for now you should not save variables that end in the same way as other settings.. change your savetoini to gpsmode and mygpsmd for instance and it should always work..
    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."

  9. #9
    Constant Bitrate Sweet05's Avatar
    Join Date
    Apr 2006
    Posts
    186
    Ok thanks will try changing the name of the intermitent variable

  10. #10
    Constant Bitrate Sweet05's Avatar
    Join Date
    Apr 2006
    Posts
    186
    Ok renaming the intermitant variable fixed the problem you were right as always guino thanks.

    Here is the working code:

    Code:
    "SAVESETTINGS","SAVETOINI;gpsmode;$mygpsmd$||SAVETOINI;mygpsmd;$mygpsmd$"

Page 1 of 3 123 LastLast

Similar Threads

  1. found in fperrorlog
    By 510SX in forum FP Bug Reports
    Replies: 3
    Last Post: 09-21-2006, 08:01 AM
  2. CDRip will only rip with variable bit-rate encoding?
    By Silentbob343 in forum Road Runner
    Replies: 1
    Last Post: 02-12-2006, 06:53 PM
  3. yet another frodo install with problems.
    By Marsupial in forum FrodoPlayer
    Replies: 10
    Last Post: 08-27-2004, 06:28 AM
  4. Variable Voltage 5A Regulator
    By AVGeek in forum Power Supplies
    Replies: 1
    Last Post: 08-16-2002, 03:19 AM
  5. advice needed on variable resistors for LCD
    By asteroid in forum LCD/Display
    Replies: 2
    Last Post: 10-16-2001, 12:46 AM

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
  •