Thought I might suggest a change in the docs for the itemdesc.cfg file info concerning weight.
In the docs it states that weight is an integer value. I have found this to be true sometimes.
Here is what I have discovered:
On single, non-stackable items the weight is indeed an integer value.
On stackable items you can specify a weight as a fraction and POL will round up to the nearest integer. For example if you set a diamond to 1/3 and you place 4 diamonds in your pack your weight will increase by 2 stones. You can add 2 more diamonds to the stack and your weight will not increase. Apparently POL stores the weight correctly internally but rounds up only on the value sent to the client. It should be noted that weight values for stackables less than a stone must be defined as a fraction and not a decimal equivalent.
1/4 is acceptable.
0.25 is not.
I assume the reason single non-stackables are only allowed integer weights is due to the rounding up situation I noted earlier.
Weight member on items.
Open discussion forum. For topics that do not fit anywhere else.
Return to “General Discussion”
Jump to
- Contrivance
- ↳ POL Server Website
- ↳ General Discussion
- ↳ Rants
- Novice & Help Area
- ↳ Hello world
- ↳ General Help
- ↳ Scripting Help
- ↳ Guides
- ↳ First steps
- Official POL Distribution (Distro)
- ↳ Development Discussion
- ↳ Distro Bug Reports
- ↳ Test shard
- ↳ Contribute to the distro
- ↳ Contributed Optional Packages and Scripts for the Distro
- Core Discussions
- ↳ Current development (100)
- ↳ Current stable release (099)
- ↳ Bug Reports & Feature Requests
- ↳ Solved issues
- ↳ Old requests
- ↳ Contribute to the core
- 3rd Party Scripts
- ↳ Contributed Scripts & Packages
- ↳ Complete Worlds
- 3rd Party Software
- ↳ POL Tools
- ↳ UO Tools
- ↳ Packet World
- ↳ Hosted Projects
- ↳ UOFiddler
- General Shard Development
- ↳ Miscellaneous Development Discussion
- Archive
- ↳ Older Core Versions
- ↳ POL Core 095
- ↳ General Help (095)
- ↳ POL Core 096
- ↳ General Help (096)
- ↳ POL Core 097
- ↳ Feature Request Archive
- ↳ General Help (097)
- ↳ Bug Reports (097)
- ↳ Solved Bugs (097)
- ↳ POL Core 098
- ↳ General Help (098)
- ↳ Bug Reports Archive (098)
- ↳ Old distros
- ↳ POL Core Patch Submissions
- ↳ Distro Patch Submissions