View Full Version : TuikResource (BRF) Editing - Development

08-08-2005, 05:16 PM
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 (http://www.dealdatabase.com/forum/showthread.php?p=231730&postcount=16) . It Moves Stanby back to the main menu and removes the Search By Title (Demo) from Tivos that have been superpatched.

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.
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)

08-08-2005, 05:16 PM

10-12-2006, 03:40 PM
# 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. :eek: