View unanswered posts | View active topics
|
Page 1 of 1
|
[ 1 post ] |
|
| Author |
Message |
|
Yukiko
|
Post subject: Weight member on items. Posted: Mon Apr 23, 2007 12:38 am |
|
Joined: Thu Feb 02, 2006 1:41 pm Posts: 1129 Location: Southern Central USA
|
|
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.
_________________ Sincerely,
Yukiko
I know you think you understand what you thought I said but what you heard is not exactly what I meant.
Titus 2:13
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 1 post ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|