Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Classics > Wizards & Warriors Forum

Reply
 
Thread Tools Search this Thread
Old 12-14-2007, 06:53 AM   #1
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 572
Default Decrypting Item.dat

By my count there are 699 items of all types and 158 attacks. A monster attack is listed as an "item". Each item has a maximum of 22 letters for its name, hence some item names may be compressed in the area of punctuation.

Progress to date:
There are 284 columns in each entry.
The first 22 columns list the full, identified name of the item. The next 22 list the unidentified name. That leaves 240 columns, 146 of them are blank, empty. Hence 94 of them are not empty.

Here entries are character or short, in the latter case the notation is little end first, base 256 digit on the left and base 256 power (if any) on the right.

Column 45 is the type of item, there are 16 types:

# Type Total
0 Special Item 67
1 any weapon 320
2 missile weapon 16
3 armor, any type 158
4 shield 20
5 jewellery 54
6 scroll, letter 41
7 potion&& 19
8 powder 4
9 key, crystal 20
10 book 110
11 food 1
12 bag of gold 10
13 pouch 1
14 lantern, torch 2
15 musical instrument 14



47: the sub – type if any.
49: the graphic number for the inventory icon.
51,52: weight, in tenths of pounds
53: Item has an invokable power, type of power, 1 = statistic, 2 = skill, 3 = trait, 4 = spellbook
54: number of stat, skill, trait or spell.
55: item expended by invoking?
89,90,91: Prices, nominal prices, it seems that items can be bought for 71% of these amounts. (Column 92 is empty: 250,000 seems to be the maximum price.)

93: Potions, expendable items which cast spells or invoke special powers, a 4 in the Y column means non – spell powers

101,105 adding the two columns seems to give the number of charges??!!?? Generally, 101, 105 and 106 seem to be connected to grouping of items or the number of charges an item has.

109,110 are about the items that have readable inscriptions. These numbers also occur in the file Textpak.000,

Columns 113 to 116, the notes have been updated in later posts.

113: a 32 result is a large collection of items, while a 223 is simply items 638:650. (Current guess is that race 5 is Omphaaz. Pixies seem able to use most items, which is unlike previous Wizardry games.)
114: Classes: Warrior – Bard, there is also Omphaaz? 638:650 are the only numbers not 0mod4, they are all 3mod4, they are also the only named Omphaaz items. The numbers list which classes and races are forbidden to use the item, they are sums of binary powers. A power is present in the sum: the class is forbidden to use the item, while zero means there is no restriction. Numbering of powers starts at 2^2 = 4 for classes. Apparently, powers 0 and 1, decimal 1 and 2, must both be reserved for Omphaaz items.

115,116: Classes: Samurai – Valkyrie, also gender. Said powers start at zeroth power equals 1 for Samurai and go thru to 2^8 = 256 for Valkyrie. Male gender would be a 9 thus 512 = women only

157, what is the meaning of correction for the vampiric attack?
177, 181, 185 weapon damage formula seems to be: AdB + C

193, 201, 209, 217: special attack forms for weapons
Sleep 1
Stun 2
Knock – out 3
Paralysis 4
Fear 5
Blind 6
Poison 7
Stoning 8
Death 9
Drain 10
Insane 11
Disease 15




Column Resists Items
241 Magic 19
242 Fire 24
243 Mind 22
244 Paralysis 24
245 Death 21
246 Petrify 22
247 Cold 21
248 Wind 17
249 Earth 21
250 Poison 16
251 Elements 20
252 Dispel 0
253 Silence 20
254 Light 13
255 Charm 10
256 Mavin 0


Items, is the number of items having this resistance, not many do considering that there are 857 items in total.

246, 248, 249, 251 seem connected to the elements or petrification. I think the "Protection v Elements" figure is the average of these four numbers.

261: enchantment
263: to Hit
264: cursed weapons and armor
265: seems to be Parry.
267: to AC, for body armor it may be multiples of 0.4, for leggings 0.3, for boots and gauntlets 0.15
268: cursed armor
269: regeneration
273: toughness
275: the 3D figure graphic
277: the graphic when the item is lying on the ground.
281: skill used

An adjustment to Parry seems never to occur in items description, regardless of whether it is positive or negative.

Last edited by Shadow Stranger; 02-11-2014 at 09:00 AM. Reason: Deal with updates for columns 113 to 116.
Shadow Stranger is offline   Reply With Quote
Old 02-11-2014, 08:56 AM   #2
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 572
Default Re: Decrypting Item.dat

This is the latest understanding of what the following offsets mean. They determine when an item is prohibited to a given race/class/gender. This involves what computer programmers call "Bit manipulation".
For example, in offset 113, to deny an item to all non-Omphaaz, set all bits except 32 to 1. This will set the byte to 1 + 2 + 4 + 8 + 16 + 64 + 128 = 223.

113
Human 1
Elf 2
Dwarf 4
Gnome 8
Pixie 16
Omphaaz 32
Whiskah 64
Gourk 128

114
Ratling 1
Lizzord 2
Warrior 4
Wizard 8
Priest 16
Rogue 32
Ranger 64
Bard 128

115
Samurai 1
Paladin 2
Barbarian 4
Monk 8
Ninja 16
Warlock 32
Assassin 64
Zenmaster 128

116
Valkyrie 1
Men 2
(Women 4?)

Race only affects Omphaaz, they lose access to 125 items and in return gain only 13 items exclusive to their race. As only one race is affected, there are no worked examples for other races, hence the race bits are only guesswork.

Last edited by Shadow Stranger; 02-11-2014 at 08:58 AM.
Shadow Stranger is offline   Reply With Quote
Old 02-22-2014, 07:45 AM   #3
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 572
Default Re: Decrypting Item.dat

Here is a spreadsheet that shows what classes can use a given item. It generally shows data from the W&W item data file.
(It has been moved to my next post.)

Last edited by Shadow Stranger; 02-24-2014 at 09:30 AM.
Shadow Stranger is offline   Reply With Quote
Old 02-22-2014, 08:15 AM   #4
Wyvern
Ironworks Moderator
 

Join Date: January 7, 2001
Location: Rural Paradise, MI
Posts: 5,681
Default Re: Decrypting Item.dat

A lot of good work there - Shadow Stranger!!!
__________________
Wyvern is offline   Reply With Quote
Old 02-24-2014, 09:37 AM   #5
Shadow Stranger
Avatar
 

Join Date: December 9, 2007
Posts: 572
Default Re: Decrypting Item.dat

I have rewritten the data in a form borrowed from Wizardry 6, it shows what races, classes and genders can use a given item. This should have been included in the information screens for W&W items.

Search numbers: by treating an array of Yes/No data as a sum of binary powers you can express the 2D, two dimensional, array as a 1D, one dimensional, vector. In other words, you can express the array as a single decimal number, the "search number".

Any item whose search number is a binary power can be used by only one class. Items that are genuinely unique to one class are rare:
Assassin
546 Assassin Shitagi
547 Assassin Kobakama
548 Assassin Tabi
549 Assassin Cowl
669 Assassin Shitagi +3
671 Assassin Kobakama +3
673 Assassin Cowl +3
675 Assassin Tabi +3
Zenmaster
667 Kimono Of The Dragon
Valkyrie
705 Lance Of The Lady

One problem is that only a few classes can use certain invokable items.
Wizard, Priest, Warlock: Amulet of Healing
Wizard, Priest, Warlock: Amulet of Holding
Wizard, Priest, Warlock: Amulet of Silence
Wizard, Warlock: Ring of Mariin
Attached Files
File Type: zip Deep6ItemDatDesc.zip (391.6 KB, 2 views)

Last edited by Shadow Stranger; 02-25-2014 at 07:53 AM.
Shadow Stranger is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Item...???....What is it Sparhawk Baldurs Gate II: Shadows of Amn & Throne of Bhaal 15 11-16-2001 08:03 PM
Hot Item Jigster Baldurs Gate II Archives 1 04-05-2001 05:46 PM
Item??? Demoquin Baldurs Gate II Archives 3 04-03-2001 02:25 PM
Item editing Difficulty item disappears in SK Malecite Baldurs Gate II Archives 4 03-13-2001 12:44 AM
what do you think this item? 250 General Conversation Archives (11/2000 - 01/2005) 2 03-06-2001 01:29 AM


All times are GMT -4. The time now is 04:50 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
©2017 Ironworks Gaming TM & The Great Escape Studios - All Rights Reserved