[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3842)
JoinUO Forums A discussion forum for the Ultima Online freeshard community. 2009-11-13T03:50:48+00:00 https://forums.uo98.org/feed.php?f=32&t=495 2009-11-13T03:50:48+00:00 2009-11-13T03:50:48+00:00 https://forums.uo98.org/viewtopic.php?t=495&p=1040#p1040 <![CDATA[Re: The Weapon Templates Object]]> Statistics: Posted by Derrick — Fri Nov 13, 2009 3:50 am


]]>
2009-11-12T21:43:30+00:00 2009-11-12T21:43:30+00:00 https://forums.uo98.org/viewtopic.php?t=495&p=1039#p1039 <![CDATA[Re: The Weapon Templates Object]]> Statistics: Posted by mikel123 — Thu Nov 12, 2009 9:43 pm


]]>
2009-11-12T19:15:08+00:00 2009-11-12T19:15:08+00:00 https://forums.uo98.org/viewtopic.php?t=495&p=1038#p1038 <![CDATA[Re: The Weapon Templates Object]]>
The "stats.q" and "weapon_templates.q" files are not used in the demo. The weapons you see in the game come from the "weapon.X.q" files.

I'll take the two krysses as an example, in "defines.q":defines.jpgTwo krysses seem to exist, KRYSS with ID 5121 and the other KRYSS_2 with ID 5120.

You have look in "templatestable.dat.q" also, you will find that both krysses can be bought by vendors but only the KRYSS with ID 5121 can be bought by players. Maybe KRYSS_2 is an older kryss which has been removed from the game?

Sellable (by the vendor):weaponeer sellable.jpg
Buyable (by the vendor):weaponeer buyable.jpg

The question is, how do we arrive from the ID 5120/5121 to the weapon template number 18/22.
To answer this question you have to use a tiledata.mul viewer.
You can find a tool named "TilData Editor" here:

Open the server side file "tiledata.mul.q" and go to object 0x1400. ID 5120 is decimal which equals 0x1400 in hexadecimal.TileData Editor.jpg

The Unknown0 field is the answer. This field is (partially) the internal weapon template number. I say partially because those programs were created by reversing the client. The reversers always believed it was a byte (8-bit) but this field is actually a word (16-bit) and therefor they don't display the data like the OSI servers would see the data.

Based on this, I conclude (for now), the kryss with weapon template 18 is not used. Unless you can find a related weapon in the "tiledata.mul.q" file.

Also, an interesting note. In "stats.q", weapon 18 is a kryss. weapon 22 is a viking sword. This conflicts with the "weapon.X.q" files and also conflicts with the "tiledata.mul.q" file.

Statistics: Posted by Batlin — Thu Nov 12, 2009 7:15 pm


]]>
2009-11-12T14:22:14+00:00 2009-11-12T14:22:14+00:00 https://forums.uo98.org/viewtopic.php?t=495&p=1037#p1037 <![CDATA[Re: The Weapon Templates Object]]>
In the demo dat folder, there's a folder for weapons. It has files called stats.q, and weapon.x.q, where x goes from 0 to 300+. stats.q has data for every weapon, just once I believe. Each individual weapon file has stats for that one weapon.

However, in the individual files, some weapons have two different files with two different sets of stats (for example, kryss and halberd are represented by #22 and #18, and #17 and #15).

Are you able to tell from the demo code where it is pulling from when it creates a weapon? (whether it pulls from stats.q or from one of the individual files)

If it pulls from the individual files, can you tell me if the game actually spawns both templates of kryss, or if it just spawns #22 or just spawns #18?

This has some interesting implications for the stats we use on UOSA. Thanks!

Statistics: Posted by mikel123 — Thu Nov 12, 2009 2:22 pm


]]>
2009-10-28T21:28:34+00:00 2009-10-28T21:28:34+00:00 https://forums.uo98.org/viewtopic.php?t=495&p=1030#p1030 <![CDATA[Re: The Weapon Templates Object]]> Statistics: Posted by Batlin — Wed Oct 28, 2009 9:28 pm


]]>
2009-10-28T21:20:40+00:00 2009-10-28T21:20:40+00:00 https://forums.uo98.org/viewtopic.php?t=495&p=1029#p1029 <![CDATA[Re: The Weapon Templates Object]]> Statistics: Posted by Batlin — Wed Oct 28, 2009 9:20 pm


]]>
2009-10-28T21:18:22+00:00 2009-10-28T21:18:22+00:00 https://forums.uo98.org/viewtopic.php?t=495&p=1028#p1028 <![CDATA[The Weapon Templates Object]]> Statistics: Posted by Batlin — Wed Oct 28, 2009 9:18 pm


]]>