lfnetwork.com mark read register faq members calendar

Thread: TSL: itemcreate.2da (Adding Stock and Custom Constructable Items to the WorkBench.)
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 02-14-2005, 11:35 PM   #1
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
TSL: Tutorial for adding Stock and Custom Constructable Items to the WorkBench.

Original thread

Adding custom or original game items making them constructable on the workbench. The way the WorkBench works in TSL it is probably the easiest way to get your custom item in game.

First you will need KotOR Tool by Fred Tetra available Here.

I am assuming you have some idea of how KT works.

Open KT, configure it to read the TSL directories instead of KOTOR's, browse to BIF's/2da... scroll down and open itemcreate.2da...

To add your new item start a new row under the last one and enter your information as follows in the cell description... You will nottice the cells most are pretty self explanitory, but I will explain them here;
--------------------------------------------------------------------------------------
(Row Label) = Simply the number for the row. The first thing you add.

label = This is where the stock or your custom items tag goes, that you wish to add to the list of buildable items.

skill = This is the amount of points you must have in a skill to build the item.

group = This is the colum that determines the tab in the WorkBench the item will appear constructable in. (0 = Armor Upgrades, 1 = Ranged Upgrades, 2 = Blade Upgrades, 3 = Lightsaber Upgrades, 4 = Misc. Upgrades)

level = I assume it is a required minimum level to build the item but it appears unused by the game. Leave it a 0 for now... I will append this tutorial if it works.
(Confirmed! The number entered in this colum will become the minimum Level for the PC to make this item... Info courtesy of Darkkender!)

align = I assume it is a required alignment to build the item but it appears unused by the game. Leave it a 0 for now... I will append this tutorial if it works.
(Confirmed! The number entered in this colum will become the required alignment for the PC to make this item... the alignment numbers are as listed in iprp_aligngrp.2da)
iprp_aligngrp.2da, which I will minimally reproduce here. (Alignment Numbers Are; 0 = No Restriction, 1 = Neutral, 2 = Lightside, 3 = Darkside, 4 = 100% Darkside, 5 = 100% Lightside)


base_skill = This is the colum that determines the actual skill used. The numbers refrence skills.2da, which I will minimally reproduce here. (Skill numbers are; 0 = Computer Use, 1 = Demolitions, 2 = Stealth, 3 = Awareness, 4 = Persuade, 5 = Repair, 6 = Security, 7 = Treat Injury)

dunno = Well if they dunno then I don't know either... Leave it a 0 for now.

overridetag = I'm assuming it is something that was used for testing purposes, as I added a custom robe in and left this as the standard blank "****" and it came up fine, just make it "****", without quotes, like all the other rows are... [Dominate Mind] You can go about your business... move along!

So, for example, you wanted to add the two Padawan Robes, LS and DS to be constructable at the WorkBench you would create two new lines in itemcreate.2da accordingly. From Left to right;
---------------------------------------------------------------------------------
Code:

(Row Label)    label   skill  group  level  align  base skill  dunno  overridetag
   209       a_robe_02 5      4      0      0      5           0      ****
   210       a_robe_03 5      4      0      0      5           0      ****
Note: the file itemcreatemira.2da is identical to itemcreate.2da, except this one is used if Mira is in your Party. You have to add your items to this file as well or else if you have Mira in your party you will no longer be able to build your item, other than the 2da files name it has the same contents except it has Mira's Rockets as buildable.

And in itemcreatemira.2da the two new lines would look accordingly;
---------------------------------------------------------------------------------
Code:

(Row Label)    label   skill  group  level  align  base skill  dunno  overridetag
   214       a_robe_02 5      4      0      0      5           0      ****
   215       a_robe_03 5      4      0      0      5           0      ****
Drop these two 2da files in override start a game and go to the WorkBench and see what happens.

As these two 2da files are probably the easiest way to add a item into the game*, I figure someone needed to explain it... and I hope this attempt has succeeded.



I hope this helps!

*Emphasis added by tk102
---------------------------------------------------
Edit: Making your newly added items upgradeable at the WorkBench.

Fot this part you will need a GFF Editor to open your item uti file with to make this change as KT cannot handle this function yet.

In your item you will need to put the corrisponding number in your items .uti files, UpgradeLevel (Byte) Node.

From what I can tell the item upgrade number patterns are thus;
Code:
Armors
-----------------------------------
Robes	(Knight & Master)	1
Armored Robes	(Zal Shey)	2
Light Armors 			2
Medium Armors			3
Heavy Armors			4

Blade Weapons
-----------------------------------
Regular 	(Non-Powered)	1
Vibro Weapons	(Powered)	2

Lightsabers
-----------------------------------
Lightsabers 	(All Types)	3

Blasters / Ranged Weapons
-----------------------------------
Blasters (All)	(Scope Only)	1
Blasters (All)	(Scope,Chamber)	2
Blasters (All)	(All Upgrades)	3
I looked through a fair sample of the different item types and these numbers were constant.

Now you can add your item to be able to be built at the workbench and upgradeable too!

I hope this helps!


"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!"'"
----------------------------------------------------------------------

Last edited by RedHawke; 07-22-2005 at 10:47 PM.
RedHawke is offline   you may: quote & reply,
Post a new 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 > Tutorials: .2da Editing > TSL: itemcreate.2da (Adding Stock and Custom Constructable Items to the WorkBench.)

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 01:42 AM.

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