renaming Unk1 in TileDat editor

This is where you can discuss UOFiddler, by Turley.

Moderator: POL Developer

Post Reply
Batlin
New User
Posts: 1
Joined: Thu Jan 07, 2010 5:07 am

renaming Unk1 in TileDat editor

Post 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 4195 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
Last edited by Batlin on Thu Jan 07, 2010 6:32 am, edited 2 times in total.
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: renaming Unk1 in TileDat editor

Post 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();
HellRazor
New User
Posts: 20
Joined: Sat Jan 17, 2009 10:23 am

Re: renaming Unk1 in TileDat editor

Post 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.
Post Reply