LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   T3-M4's Astromech Droid Center (http://www.lucasforums.com/forumdisplay.php?f=646)
-   -   FindRefs Utility (Latest version: v4.4) (http://www.lucasforums.com/showthread.php?t=137588)

tk102 10-04-2004 08:13 AM

FindRefs Utility (Latest version: v4.4)
 
FindRefs v4.4 6/23/2007
A file search and extraction tool for KoTOR and TSL resources

Download from starwarsknights.com

Icon by svösh!

v4.4
  • Extended the search to include the inventories of merchants, placeables, and creatures.
v4.3
  • Added ability to search/extract .2da files
  • If search term is numeric and TLK references are enabled, the utility will assume the search term is an index to dialog.tlk and will search accordingly.
  • Source code for .exe and .dll included
v4.2
  • Bug fix: Under certain search criteria, some .bif files were being searched twice needlessly.
  • Bug fix: Under certain search criteria, some resources in models.bif, templates.bif, and scripts.bif were being shown as found in multiple bifs.
  • DLL version numbering now in sync with EXE.
  • DLL compiled with Perl 5.8.8.
v4.1
  • Bug fix! Fixed searches in templates.bif and scripts.bif
v4.0
  • Search extended to .git/.mdl/.mdx/.tpc/.tga files
  • Added filename-only search toggle
  • Multiple selection/extraction now possible

T7nowhere 10-04-2004 08:21 AM

I just went to pcgm for another reason and saw this posted :) Nice. I'll try it out and report back to ya as soon as I can. It looks very cool.

tk102 10-04-2004 08:32 AM

I hope it does save people some time. I know that searching for these kinds of references can be frustrating.

The global variable detection was actually a side-effect... since .ncs files are not .gff files, I just do a full search of the files looking for strings. Since Global Variables are strings within .ncs, they are just as detectable as those scripts called by the ExecuteScript. Likewise, you can also search for tagnames within .ncs files for the same reason (that just now occurred to me...).

Anyway, I apologize somewhat for the command-line format of this utility -- but on the upside, it only took about 4 hours to write. :)

Darth333 10-04-2004 08:37 AM

This is great :thumbsup: ( as I already commented at pcgamemods :) ) and as you say this will save us time and frustration...

I'll make a good use of it... once I find time to mod again :(

tk102 10-04-2004 10:46 AM

v0.2 released already...

Increased the search speed (greatly) over v0.1.

MTV2 10-04-2004 02:45 PM

Aw man is the great:D Real helpful tk102:cool: ;)

beancounter 10-04-2004 03:03 PM

Very nice work TK, it will save a lot of time.

RedHawke 10-04-2004 08:09 PM

Very cool utility TK! :D

And as others have said it will definately be a timesaver. :)

tk102 10-04-2004 09:30 PM

Thank you for the positive responses. Like I said, I'm quite sorry I didn't make it sooner... like back in March. :rolleyes:
Better late than never, I suppose.

For those of you who simply detest command line utilities, I wrapped this one up into an ActiveX object and stuffed it into a simplistic Visual Basic form. You can now download the GUI version from the first post in this thread.

Darth333 10-05-2004 05:39 AM

After the programmer who codes faster than his shadow, we now have the programmer who codes faster than lightspeed :p (err..that's about the same I think :D )

Thanks tk102 :)

tk102 10-06-2004 12:48 PM

FindRefs GUI v1.1 released.

You can now extract the resource from the .rim/.bif file by double-clicking on it in the results listbox.

Darth333 10-06-2004 02:58 PM

Nice one again!

The only thing you forgot is to mention that findrefs is case sensitive ;)

svösh 10-06-2004 03:12 PM

Thanks TK :D Another excellent tool of yours, this will come in handy. Keep it up :)

svösh

tk102 10-06-2004 11:19 PM

Quote:

The only thing you forgot is to mention that findrefs is case sensitive
Oh, yeah.
Quote:

Keep it up
Ok.
v1.2 released -- added case sensitivity and partial matching toggles
Screenshot
:)

DarthBuzzard 10-06-2004 11:21 PM

Saveth by a nerf herder! :D

but really, nice stuff :D

Fred Tetra 10-07-2004 05:13 AM

You're catching up on the features! ;) Now I have to get the BIF searching done :D

tk102 10-07-2004 06:38 AM

I'm glad that we are helping each other reach our full potential. It keeps things interesting.

Edit:
Just realized something -- I had turned off the 'auto increment' of version control when I made v1.2 -- it still says v1.1 in the title bar. Doh! So if you're upgrading from v1.1 to v1.2 and you're not sure which is which, v1.2 has the Partial Match/Case Sensitive checkboxes and v1.1 does not. Sorry about that.

tk102 10-07-2004 08:36 AM

FindRefs v0.3 (command line) released.

Adds case sensitivity and partial matching just like the GUI version.

Also adds the ability to search the Tag field in the *.ut* files and expands the search to include *.uti files. (The GUI version does not yet offer that.)

The new command line options are:
-I (search .uti files)
-C (search is case sensitive)
-P (allow partial matching)

Darth333 10-07-2004 09:11 AM

Thanks :) This new function will be very useful to verify if our npc, item or placeable has a "clone" somewhere in another module :thmbup1:

Edit: And here are some news concerning findrefs: http://www.starwarsknights.com/

tk102 10-07-2004 12:39 PM

And thank you: for the nice write up in starwarsknights.com and for the suggestion regarding Tags! :D

The GUI will be enhanced with the .uti search/Tag field search tonight.

tk102 10-08-2004 11:20 AM

FindRefs GUI 1.3 released.
- Adds .uti to list of file types to be searched
- Adds "Tag" to list of fields searched
- Output more readable, using fixed with font in listbox

FindRefs (command line) 0.4 released.
- Added -q (quiet mode) which makes output more readable when multiple results are found.

tk102 12-08-2004 12:29 PM

Updated both the console and GUI versions of FindRefs to fix a bug that ignored .utp-only searches.

RedHawke 12-08-2004 05:15 PM

Very cool TK, thanks for the hard work! :D

Darth333 12-09-2004 05:01 AM

Thansk again :) I love this utility. It's very useful!

tk102 12-14-2004 06:11 PM

FindRefs v2.1 has been released (command-line). The important addition to this utility is the -T option which will extend your search to TLK references as well (ExoLocStrings). Examples of this include Item Descriptions, Area Names, and Dialog text.

So the following command:
Code:

findrefs -DTq Sleheyron
will find all Dialogs that have Sleheyron will return
Code:

korr_m35aa_s.rim kor35_yuthuraban.dlg Entry 12 Text
'Let's see... after escaping from Sleheyron I was found by the Jedi. They took me in and trained me eve
n though I was a bit older than most Padawans.'



The -T option slows the search noticeably, especially when used in conjunction with the -D option. However, this function in essence merges my KTLK, DLGSearch, and FindRefs utility in one tool.

Darth333 12-15-2004 05:09 AM

Thanks for the hard work tk102 :) . This new feature is going to be very useful. I used FindRefs countless times and now I'm going to loose the count even more :D

Darkkender 12-15-2004 06:24 AM

So should we expect this update feature being added to the findrefs gui edition as well sometime soon?

tk102 12-15-2004 06:35 AM

Yes you should Darkkender. :)

Darkkender 12-15-2004 07:08 AM

Quote:

Originally posted by tk102
Yes you should Darkkender. :)
:elephant: YES! :sheepdanc

tk102 12-15-2004 02:05 PM

FindRefs GUI v2.1 released.

- Added ability to search TLK file references

I added a separate scrolling TextBox to the right of the Listbox to contain the references found. In the case of Dialog and Descriptions, this was necessary to preserve the readability of the results.

I'd recommend uninstalling the old version of FindRefs GUI if you have one. Probably will work either way, but it's safer.


Yay! 1000 posts! 950 of them on this forum!

tk102 03-12-2005 03:39 AM

v3.0 of command line version released
 
The command line version of this utility has been updated to v3.0.

Two new option switches have been added.

-2 This switch will tell Findrefs to search for TSL files instead of KotOR files.

-f This switch tells findrefs that what follows is a file pattern that will be searched from instead of searching the entire gambit of game files. This can be useful if you know for example that you want search a particular .erf, .rim, or .bif file. Because this switch accepts a value, it should separated from the other switches like so:

findrefs -AqP2 killblaster -f *.bif

The GUI version has not been updated yet to support TSL. I expect to have it updated within the week.

Darkkender 03-12-2005 03:41 AM

Re: v3.0 of command line version released
 
Quote:

Originally posted by tk102
The command line version of this utility has been updated to v3.0.

Two new option switches have been added.

-2 This switch will tell Findrefs to search for TSL files instead of KotOR files.

-f This switch tells findrefs that what follows is a file pattern that will be searched from instead of searching the entire gambit of game files. This can be useful if you know for example that you want search a particular .erf, .rim, or .bif file. Because this switch accepts a value, it should separated from the other switches like so:

findrefs -AqP2 killblaster -f *.bif

I guess I should have waited a hour or 2 before crafting my newbit at RPGdot.com. Especially since this is a handy tool.

tk102 03-12-2005 03:45 AM

:lol: Or I should've started an hour earlier. Thanks DK. :D

Darth333 03-12-2005 10:52 AM

Thanks tk! I think this is the tool I use most often! :)

tk102 03-12-2005 01:45 PM

v3.1 released
 
v3.1 released (command line).
Added TemplateResRef as another searchable field for template files (*.ut*)

This should prove helpful to avoid the problems outlined by Darth333 in this thread.

An example of how FindRefs can be used to detect the potential for overriding other templates by accident can be seen here.

T7nowhere 03-12-2005 08:08 PM

Thanks man, Now go play TSL!!!

Mav 03-12-2005 08:11 PM

^^^
Lol :lol:, agreed.

tk102 03-13-2005 03:25 PM

v3.1 GUI Version released
 
Findrefs GUI v3.1 released

- Added support for TSL files
- Added TemplateResRef as a seached field
- Added NSS files for search/extraction
- Added File Pattern to Search textbox to help speed up search when the resource is known to be in a certain file (wildcards also accepted)


@T7, Mav: Yeah that's on the list. :)

tk102 03-13-2005 08:08 PM

v3.2 released (command line)
 
v3.2 (command line) released
- Added -N: search .nss files
- Added -v: view output in color

Note that if you are redirecting the output of the findrefs to a file, you should not use the -v switch becuase nothing will be output.

tk102 03-13-2005 10:43 PM

v3.2 released (GUI)
 
v3.2 releaed (GUI)

- Fixed bug where .nss files were not being searched if a file pattern was specified.

- Fixed tab-key selection order so that controls highlight in an intuitive order


All times are GMT -4. The time now is 07:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.