Page 1 of 1

renaming Unk1 in TileDat editor

Posted: Thu Jan 07, 2010 5:45 am
by Batlin
Hello

Is it possible to rename Unk1 in the TileData editor to MiscData?
And make it a 16-bit WORD field.

I've been reverse engineering the Ultima Online Demo from 1998 and was able to link that field with the Weapon Template Number like it was used on the OSI servers back then.

On the attached screenshot I've the UO fiddler open with a bonnet. The Unk1 field refers to the weapon.210.q file found in the demo DAT file.
screenshot.JPG
screenshot.JPG (85.22 KiB) Viewed 5123 times
Here are the contents of that specific file, which links the bonnet with a hat and it's related armor class.

Code: Select all

Name:            Hat 
Weapon Class:    0
Armor Class:     3
Hit Points:      1d3+20
Speed:           0
Range:           0
Min Range:       0
Type:            Shield
Handedness:      Lefthand
Strength Needed: 0
Ammo Type:       0
Bow:             0
HitFx:           0
MissFx:          0
Technical information can be found on JoinUO : http://forum.joinuo.com/viewtopic.php?f=32&t=495

Re: renaming Unk1 in TileDat editor

Posted: Thu Jan 07, 2010 5:56 am
by Turley
No problem and thx for the info, but its already 16bit:
from fiddler source:
int weight = bin.ReadByte();
int quality = bin.ReadByte();
int unk1 = bin.ReadInt16(); // <-------
int unk2 = bin.ReadByte();
int quantity = bin.ReadByte();
int anim = bin.ReadInt16();
int unk3 = bin.ReadByte();
int hue = bin.ReadByte();
int stackingoffset = bin.ReadByte(); //unk4
int value = bin.ReadByte(); //unk5
int height = bin.ReadByte();

Re: renaming Unk1 in TileDat editor

Posted: Sun Jan 10, 2010 6:16 pm
by HellRazor
Also, the middle QUALITY block (between WEIGHT and the other QUALITY block) would be better named LAYER as this field tells the client what layer to place equippables on.