Announcement

Collapse
No announcement yet.

Any way to set persistent variables other than rr.ini?

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

  • Any way to set persistent variables other than rr.ini?

    I've read the Skin Commands and I know you can define and save variables to rr.ini and be able to use them on the next startup w/o having to redefine it all over again.

    However, if I edit rr.ini using RR config and save, any custom additions made to rr.ini would be lost.

    Is there a way to define variables RR can use outside of rr.ini?

    I'm sure someone has done this before, but I can't seem to put the right keywords together in a search.

    If someone could point me in the right direction, that'd be great.

    TIA!
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  • #2
    have you looked at the SETVAR command set. SETVAR, SETVARBYCODE etc etc
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

    Comment


    • #3
      you can run RRConfig and not loose any of the custom entries you've defined. If that is happening to you there is a bug somewhere, ive never seen it overwrite the whole file.

      What you want is skin.ini
      its treated the same as rr.ini but is located in your skins dir.

      you can save info to this file using
      SAVETOSKIN
      OSKTOSKIN
      and a few other commands, check the latest beta version of RR for the release that supports this and also the skincommands.txt that has all the commands.
      01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
      01101101 01101111 01101011 01100101

      beer replenishment fund
      http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
      mp3car live search

      i have joost invites, just hit me up for one.

      Comment


      • #4
        Yeah, I have. SETVARs are not persistent. Once you close RR, I lose the definition and have to redefine again via OSKTOVAR.

        What I'm trying to accomplish is to be able to specify drive paths for different removeable media and browse music/video using RR on-the-fly w/o having to hard code drive paths into specific buttons into the skin itself. This way, I have one button to set the drive, one to browse.

        I want to be able to set it and leave it until I need to change it again w/o having to exit RR w/o the use of a text editor and KB.
        Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

        Comment


        • #5
          Originally posted by liquid_smoke View Post
          you can run RRConfig and not loose any of the custom entries you've defined. If that is happening to you there is a bug somewhere, ive never seen it overwrite the whole file.

          What you want is skin.ini
          its treated the same as rr.ini but is located in your skins dir.

          you can save info to this file using
          SAVETOSKIN
          OSKTOSKIN
          and a few other commands, check the latest beta version of RR for the release that supports this and also the skincommands.txt that has all the commands.
          I'm on RR build 11/12/06 and RR Config doesn't overwrite the whole file. I've set 3 custom variables. When I edit and save rr.ini using RR Config, I lose 2/3 variables I've set and it's always the first 2 variables.

          I don't think I've seen those commands in 11/12 Skin Commands, but I can't be sure. Right now, my 1 of 2 test machines is only on 10/8 build. My other test machine is down and don't have the update handy.

          I'll go poking around for the latest beta.

          Thanks!
          Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

          Comment


          • #6
            the latest beta is 1/22/07
            01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
            01101101 01101111 01101011 01100101

            beer replenishment fund
            http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
            mp3car live search

            i have joost invites, just hit me up for one.

            Comment


            • #7
              To use the SAVETOSKIN command, you need to be using the LATEST RR

              Also, you need to use a Variable that is not used by RR already. This is why it may be overwriting your var when you save from the RRConfig utility.

              For instance, I think everyone has seen this, you change the skin from within the skin itself. Then if you load and save with the RRConfig, it will revert to the original skin, by writing it to the rr.ini.

              Try using something like MyMusicPath instead of MusicPath.
              Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

              My Fiero Build Thread

              Comment


              • #8
                Originally posted by JohnWPB View Post
                To use the SAVETOSKIN command, you need to be using the LATEST RR

                Also, you need to use a Variable that is not used by RR already. This is why it may be overwriting your var when you save from the RRConfig utility.

                For instance, I think everyone has seen this, you change the skin from within the skin itself. Then if you load and save with the RRConfig, it will revert to the original skin, by writing it to the rr.ini.

                Try using something like MyMusicPath instead of MusicPath.
                Sadly, that wasn't the case. Here are my variables:
                cddrivepath
                flashdrivepath
                cameradrivepath

                None of which were being used by rr.ini. What I have found is that after rr.ini gets saved, it "ENTERs" two blank lines after the last line. Those two lines are the location of the new set variables. It doesn't matter the order in which it is defined, it's always the first two that gets deleted.

                I just found the beta, as well, and am gonna try it out.
                Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                Comment


                • #9
                  Cool. That did it.

                  Thanks guys!
                  Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                  Comment


                  • #10
                    Hi Sal R,

                    have you looked at using a BROWSE.RRL file in your Music Path. This is a simple file that allows you to define Virtual drives, mine is defined like this

                    C:\Documents and Settings\johnstonek\My Documents\My Music\MP3;Main Music Directory
                    D:\;CD / DVD
                    E:\;USB Drive

                    This is displayed in the browse window like the attached.

                    OOPs ! Didn't spot your response !

                    Anyways, one for reference.
                    cheers
                    KPJUK
                    Attached Files
                    M1000, 512MB, 512MB CF, 6GB Disk (4200rpm),
                    DVD/RW, Dynamix 8" screen, M2-ATX, Custom case,Too many hours building and rebuilding and rebuild.......

                    Comment


                    • #11
                      Originally posted by kpjuk View Post
                      Hi Sal R,

                      have you looked at using a BROWSE.RRL file in your Music Path. This is a simple file that allows you to define Virtual drives, mine is defined like this

                      C:\Documents and Settings\johnstonek\My Documents\My Music\MP3;Main Music Directory
                      D:\;CD / DVD
                      E:\;USB Drive

                      This is displayed in the browse window like the attached.

                      OOPs ! Didn't spot your response !

                      Anyways, one for reference.
                      cheers
                      KPJUK
                      Actually, I did have my directory setup like that before, but it wasn't "clean" enough for me. Personal preference, of course.

                      I didn't want a list of directories that may/may not be there so instead, I created a button that allowed a user defined drivepath to browse any directory at will. It uses a persistent variable so that you don't have to keep redefining it every RR startup. This is, of course, contigent on you knowing the drive letter/path to assign to a given peripheral.
                      Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                      Comment

                      Working...
                      X