Results 1 to 3 of 3

Thread: TuikResource (BRF) Editing - Development

  1. #1
    Join Date
    Oct 2004
    Posts
    175

    Post TuikResource (BRF) Editing - Development

    I hope this can be a place where we can share info on editing TuikResources.

    I have put together a collection of functions useful for working with TuikResources. TuikHelper.tcl can be sourced from other scripts to use it's functions and it also has some built-in command line options for general use.

    One thing I do different is access the TuikResources through /SwSystem/ACTIVE and using the PathBase like lib/resources/UIStringDocument.brf. I feel this is a better way then then going through /TuikRes/SHA1. It is a little slower at finding the Resources, but it seems like the proper way to update a Resources is through the TuikResourceHolder because you have to reset the TuikResource setting to get it to refresh the File Link. If you don't do this most BRF edits will cause a reboot loop. I guess bufferhack just got lucky.

    My first script using TuikHelper.tcl can be found here . It Moves Stanby back to the main menu and removes the Search By Title (Demo) from Tivos that have been superpatched.

    Code:
    Tivo:/> TuikHelper.tcl
    ------------------------------------------------------------------------------
    TuikHelper.tcl by TivoWare - Version 1.0
    ------------------------------------------------------------------------------
    Builtin Commands:   {required} [optional]
      export {ResourceName} [FileName]  Export a TuikResource to a file.
      import {ResourceName} [FileName]  Import a TuikResource from a file.
      dump [Path] [-brfonly] [-nodir]   Dump all Resources to a directory.
      list [FileName] [-withindex]      List all Resources.
      check  [-fix]                     Check TuikResourceHolder file ids.
    Parameter Help:
      {ResourceName} - Resource PathBase. Best is the full PathBase like so
                       ui/menu/MainMenu.brf, but just MainMenu.brf can be used.
      [FileName]     - File to read or write data to. Default is resource name.
                       (The list command will output to the screen by default.
      -brfonly         Only extract .brf files.
      -nodir           Do not build the directory structure.
      -withindex       Output the IndexPath also.
    Example:
      TuikHelper.tcl list
      TuikHelper.tcl export lib/util/MessagesCommon.brf
      TuikHelper.tcl import lib/util/MessagesCommon.brf MyMessages.brf
      TuikHelper.tcl dump brf/ -nodir -brfonly
      TuikHelper.tcl check -fix
    I will always try to Keep the newest version here:

    # Version 1.0 08/30/2005 - Changed how internal commands are used, Added function to check holder references.
    # Version 0.1 08/07/2005 - First Release

    TuikHelper.tcl (+1257 views)
    Attached Files Attached Files
    Last edited by TivoWare; 12-01-2006 at 10:52 AM. Reason: New Version
    Tip: When linking to a post change showpost.php to showthread.php Before After

    2 x HDVR2, 1 x SD-DVR40 (All 160 GB, superpatched, tivoweb, crond, inetd (vserver,tserver), mfs_ftp, usb2.0, endpad)

  2. #2
    Join Date
    Oct 2004
    Posts
    175
    Placeholder
    Tip: When linking to a post change showpost.php to showthread.php Before After

    2 x HDVR2, 1 x SD-DVR40 (All 160 GB, superpatched, tivoweb, crond, inetd (vserver,tserver), mfs_ftp, usb2.0, endpad)

  3. #3
    Join Date
    Oct 2004
    Posts
    175

    Version 1.0 posted.

    # Version 1.0 08/30/2005 - Changed how internal commands are used, Added function to check holder references.

    Only took over a year for me to upload it.
    Tip: When linking to a post change showpost.php to showthread.php Before After

    2 x HDVR2, 1 x SD-DVR40 (All 160 GB, superpatched, tivoweb, crond, inetd (vserver,tserver), mfs_ftp, usb2.0, endpad)

Posting Permissions

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