lfnetwork.com mark read register faq members calendar

Thread: FindRefs Utility (Latest version: v4.4)
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 10-04-2004, 08:13 AM   #1
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
Post 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

Last edited by tk102; 06-23-2007 at 04:04 PM. Reason: Update to v4.4
tk102 is offline   you may: quote & reply,
Old 10-04-2004, 08:21 AM   #2
T7nowhere
Did you reset?
 
T7nowhere's Avatar
 
Join Date: Jan 2004
Location: Vancouver, BC
Posts: 2,972
Veteran Modder Forum Veteran Helpful! Notable contributor 
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.
T7nowhere is offline   you may: quote & reply,
Old 10-04-2004, 08:32 AM   #3
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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.


tk102 is offline   you may: quote & reply,
Old 10-04-2004, 08:37 AM   #4
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
This is great ( 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
Darth333 is offline   you may: quote & reply,
Old 10-04-2004, 10:46 AM   #5
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
v0.2 released already...

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


tk102 is offline   you may: quote & reply,
Old 10-04-2004, 02:45 PM   #6
MTV2
It's all our turf
 
MTV2's Avatar
 
Join Date: Aug 2004
Posts: 1,173
Helpful! 
Thumbs up

Aw man is the great Real helpful tk102
MTV2 is offline   you may: quote & reply,
Old 10-04-2004, 03:03 PM   #7
beancounter
Rookie
 
Join Date: Jul 2004
Posts: 169
Very nice work TK, it will save a lot of time.
beancounter is offline   you may: quote & reply,
Old 10-04-2004, 08:09 PM   #8
RedHawke
Shadow Lord Of The Sith™
 
RedHawke's Avatar
 
Status: Moderator
Join Date: Mar 2004
Location: Stormreach CA.
Posts: 9,184
Current Game: DDO, Stormreach
Very cool utility TK!

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


"Beware the form-fitting black armor-clad Drow hottie with twin Mineral II Greensteel Khopeshes!"
"Liella d'Orien says, '"You're the fool, Devil. -- Witness the power of this fully ARMED and OPERATIONAL Titan!"'"
----------------------------------------------------------------------
RedHawke is offline   you may: quote & reply,
Old 10-04-2004, 09:30 PM   #9
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
Thank you for the positive responses. Like I said, I'm quite sorry I didn't make it sooner... like back in March.
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.


tk102 is offline   you may: quote & reply,
Old 10-05-2004, 05:39 AM   #10
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
After the programmer who codes faster than his shadow, we now have the programmer who codes faster than lightspeed (err..that's about the same I think )

Thanks tk102
Darth333 is offline   you may: quote & reply,
Old 10-06-2004, 12:48 PM   #11
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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.


tk102 is offline   you may: quote & reply,
Old 10-06-2004, 02:58 PM   #12
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
Nice one again!

The only thing you forgot is to mention that findrefs is case sensitive
Darth333 is offline   you may: quote & reply,
Old 10-06-2004, 03:12 PM   #13
svösh
 
svösh's Avatar
 
Join Date: Jan 2003
Location: Montreal, Canada
Posts: 733
Veteran Modder Helpful! Contest winner - Modding 
Thanks TK Another excellent tool of yours, this will come in handy. Keep it up

svösh


pixel, poly builder
svösh's kotor mods
svösh is offline   you may: quote & reply,
Old 10-06-2004, 11:19 PM   #14
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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


tk102 is offline   you may: quote & reply,
Old 10-06-2004, 11:21 PM   #15
DarthBuzzard
Forumite
 
DarthBuzzard's Avatar
 
Join Date: Aug 2004
Location: The Swamp
Posts: 568
Saveth by a nerf herder!

but really, nice stuff


AIM = halfbakedbuzzard

Donate to my RPG character here:
Eternal Thanks to those who have donated:
Adam G (Yoinked) - 500,000
Fiend138 - 869
Darth333 - 1,000
JediDude - 40,000

Thanks so much guys!


SON OF A BLOODY WIGOT! -RealJediDude

You vile vile man. Thats the greatest thing EVAR!!! - Kain
DarthBuzzard is offline   you may: quote & reply,
Old 10-07-2004, 05:13 AM   #16
Fred Tetra
Kotor Tool Guy
 
Fred Tetra's Avatar
 
Join Date: Jan 2004
Location: What a creepy photo, eh? Had to use it!
Posts: 947
Hot Topic Starter LFN Staff Member Helpful! Notable contributor 
You're catching up on the features! Now I have to get the BIF searching done
Fred Tetra is offline   you may: quote & reply,
Old 10-07-2004, 06:38 AM   #17
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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.



Last edited by tk102; 10-07-2004 at 06:54 AM.
tk102 is offline   you may: quote & reply,
Old 10-07-2004, 08:36 AM   #18
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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)


tk102 is offline   you may: quote & reply,
Old 10-07-2004, 09:11 AM   #19
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
Thanks This new function will be very useful to verify if our npc, item or placeable has a "clone" somewhere in another module

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

Last edited by Darth333; 10-07-2004 at 12:17 PM.
Darth333 is offline   you may: quote & reply,
Old 10-07-2004, 12:39 PM   #20
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
And thank you: for the nice write up in starwarsknights.com and for the suggestion regarding Tags!

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


tk102 is offline   you may: quote & reply,
Old 10-08-2004, 11:20 AM   #21
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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 is offline   you may: quote & reply,
Old 12-08-2004, 12:29 PM   #22
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
Updated both the console and GUI versions of FindRefs to fix a bug that ignored .utp-only searches.


tk102 is offline   you may: quote & reply,
Old 12-08-2004, 05:15 PM   #23
RedHawke
Shadow Lord Of The Sith™
 
RedHawke's Avatar
 
Status: Moderator
Join Date: Mar 2004
Location: Stormreach CA.
Posts: 9,184
Current Game: DDO, Stormreach
Very cool TK, thanks for the hard work!


"Beware the form-fitting black armor-clad Drow hottie with twin Mineral II Greensteel Khopeshes!"
"Liella d'Orien says, '"You're the fool, Devil. -- Witness the power of this fully ARMED and OPERATIONAL Titan!"'"
----------------------------------------------------------------------
RedHawke is offline   you may: quote & reply,
Old 12-09-2004, 05:01 AM   #24
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
Thansk again I love this utility. It's very useful!
Darth333 is offline   you may: quote & reply,
Old 12-14-2004, 06:11 PM   #25
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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.


tk102 is offline   you may: quote & reply,
Old 12-15-2004, 05:09 AM   #26
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
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
Darth333 is offline   you may: quote & reply,
Old 12-15-2004, 06:24 AM   #27
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
So should we expect this update feature being added to the findrefs gui edition as well sometime soon?


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 12-15-2004, 06:35 AM   #28
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
Yes you should Darkkender.


tk102 is offline   you may: quote & reply,
Old 12-15-2004, 07:08 AM   #29
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
Quote:
Originally posted by tk102
Yes you should Darkkender.
YES!


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 12-15-2004, 02:05 PM   #30
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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 is offline   you may: quote & reply,
Old 03-12-2005, 03:39 AM   #31
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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.


tk102 is offline   you may: quote & reply,
Old 03-12-2005, 03:41 AM   #32
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
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.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 03-12-2005, 03:45 AM   #33
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
Or I should've started an hour earlier. Thanks DK.


tk102 is offline   you may: quote & reply,
Old 03-12-2005, 10:52 AM   #34
Darth333
Administraterror
 
Darth333's Avatar
 
Status: Administrator
Join Date: Feb 2004
Location: In my secret dungeon...
Posts: 8,292
Thanks tk! I think this is the tool I use most often!
Darth333 is offline   you may: quote & reply,
Old 03-12-2005, 01:45 PM   #35
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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.


tk102 is offline   you may: quote & reply,
Old 03-12-2005, 08:08 PM   #36
T7nowhere
Did you reset?
 
T7nowhere's Avatar
 
Join Date: Jan 2004
Location: Vancouver, BC
Posts: 2,972
Veteran Modder Forum Veteran Helpful! Notable contributor 
Thanks man, Now go play TSL!!!
T7nowhere is offline   you may: quote & reply,
Old 03-12-2005, 08:11 PM   #37
Mav
8-Bit Code Monkey
 
Mav's Avatar
 
Join Date: May 2004
Location: A House
Posts: 4,043
Current Game: SWTOR
^^^
Lol , agreed.


"Women are like sunsets… they’re beautiful, but there will be a different one tomorrow." - Gilder
Mav is offline   you may: quote & reply,
Old 03-13-2005, 03:25 PM   #38
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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 is offline   you may: quote & reply,
Old 03-13-2005, 08:08 PM   #39
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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 is offline   you may: quote & reply,
Old 03-13-2005, 10:43 PM   #40
tk102
Well past expiration date
 
tk102's Avatar
 
Join Date: Jan 2004
Posts: 5,766
Current Game: Dragon Age: Origins
Forum Veteran Helpful! Notable contributor 
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


tk102 is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > T3-M4's Astromech Droid Center > FindRefs Utility (Latest version: v4.4)

Tags
kotor modding tool, utility

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:46 AM.

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