lfnetwork.com mark read register faq members calendar

Thread: Extract Item Icons?
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 06-17-2007, 11:57 AM   #1
daemoj
Lurker
 
Join Date: Jun 2007
Posts: 4
Extract Item Icons?

I'm new to modding KotOR, so please bear with me.

Does anyone know what my best route would be to extract all of the in-game KotOR and KotOR II item icons to a generally useable format (GIF, JPG, etc.)? I'm going to make a database of all the items with their icons, but don't want to have to snap images of the icons from inside the game. Hopefully there's reasonable way of doing this using KotOR Tool or another utility. Any help is appreciated!
daemoj is offline   you may: quote & reply,
Old 06-17-2007, 12:14 PM   #2
CraZy_B
 
CraZy_B's Avatar
 
Join Date: May 2002
Posts: 202
Yep, Kotor Tool is what you need. You can extract anything you want with that.
CraZy_B is offline   you may: quote & reply,
Old 06-17-2007, 12:18 PM   #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 
In KotOR Tool browse to
ERFs -> TexturePacks -> swpc_tex_gui.erf
and click the "Extract Entire ERF File" to pull all the *.tpc files into a folder.

Open a command prompt in that folder.
Code:
md icons
move i*.tpc icons
This will create a folder called icons move all the tpc files that begin with I into that folder.


Next, download BulkTPC2TGA utility and put it in the icons folder.

Open a command prompt in the icons folder and type:

Code:
md tga_icons
bulktpc2tga . tga_icons
You'll get a bunch of messages that say "Use of uninitialized value in pack at /PerlApp/Bioware/TPC.pm line 83." but the program is working. You should now have all your icons as .tga files in your tga_icons folder.

Last edited by tk102; 06-17-2007 at 08:31 PM.
tk102 is offline   you may: quote & reply,
Old 06-17-2007, 01:29 PM   #4
daemoj
Lurker
 
Join Date: Jun 2007
Posts: 4
That'll do it. Thank you very much!
daemoj is offline   you may: quote & reply,
Old 06-22-2007, 10:11 AM   #5
daemoj
Lurker
 
Join Date: Jun 2007
Posts: 4
I'm making good progress on this, but I have one more question. Is there anywhere within the KotOR Tool that I can find which icon name goes with each item tag? For whatever reason, the item blueprint window doesn't show the icon name associated with each item. I have all of the icons extracted, but right now I have no way of knowing which icon goes to which item without actually cross-referencing them in-game. Once again, any help would be appreciated.
daemoj is offline   you may: quote & reply,
Old 06-22-2007, 11:32 AM   #6
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:
Originally Posted by daemoj
I'm making good progress on this, but I have one more question. Is there anywhere within the KotOR Tool that I can find which icon name goes with each item tag? For whatever reason, the item blueprint window doesn't show the icon name associated with each item. I have all of the icons extracted, but right now I have no way of knowing which icon goes to which item without actually cross-referencing them in-game. Once again, any help would be appreciated.
Unfortunately there is no easy way to get this. Here is how you can find the icon for a particular item:

1. Retrieve the BaseItem and ModelVariation fields from the .uti file using a GFF editor.
2. Use the BaseItem value from the .uti to determine which row in the baseitems.2da file to read from. Read the itemclass field from this row.
3. The name of the icon for this uti is: "i" + itemclass + "_" + ModelVariation (written as a 3-digit number)
tk102 is offline   you may: quote & reply,
Old 06-22-2007, 12:35 PM   #7
daemoj
Lurker
 
Join Date: Jun 2007
Posts: 4
Hmm, that's probably more time-consuming than just looking at each item in the game.

Some items don't even have a ModelVariation field in the UTI file, so I"m not sure what to do with those.
daemoj is offline   you may: quote & reply,
Old 06-22-2007, 12:43 PM   #8
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 might be able to help you out creating a list. Talk to me by private messages.
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 > Holowan Laboratories > Extract Item Icons?

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 10:56 AM.

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