Character weight limit

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
Yukiko
Distro Developer
Posts: 2525
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Character weight limit

Post by Yukiko » Sun Nov 27, 2011 1:28 am

I am having an issue with the maximum weight a character can carry. According to the post Shinigami made in the release of this version of POL there is a setting in servspecopt.cfg to set the CarryingCapacityMod. This apparently sends the max weight a character can have to the client. My problem is that my character with a 100 strength cannot weigh more than 260 stone. According to the formula in the corechanges.txt file posted by Shini I should be able to carry 390 stone and that is what the status gump says I should be able to carry with CarryingCapacityMod set to 1.0. Changing this value doesn't affect the weight capacity of my character but it does change the max weight displayed in the status gump. This has been an issue for some time. I posted about this same issue here back in 2007. I don't know if I missed some config setting that sets max weight for players or if this is a bug. If anyone can enlighten me about how to resolve this issue I'd certainly appreciate it.


From corechanges.txt
09-09-2009 Turley:
Added: ServSpecOpt CarryingCapacityMod (double default 1.0) as * modifier for mobile max_weight
Note: Formula is (40 + strength * 7 / 2) * ssopt.CarryingCapacityMod
Note: Since ML max weight is send for statusgump
Note: Patch submitted by Tomi
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

User avatar
AsYlum
Adept Poster
Posts: 89
Joined: Sun Feb 05, 2006 5:24 am
Location: Poland

Re: Character weight limit

Post by AsYlum » Sun Nov 27, 2011 11:31 am

I think you'll need to check character's backpack itemdesc.cfg weight limit setting.
<uninitialized object>

Yukiko
Distro Developer
Posts: 2525
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko » Sun Nov 27, 2011 5:50 pm

Here is the itemdesc.cfg entry for the pack with which I chose to equip the character :

Code: Select all

Container 0x966c
{
    Name                staffpack
    graphic             0x0E75
    desc                backpack
    Gump                0x003C
    MinX                44
    MaxX                143
    MinY                65
    MaxY                140
    RequiresAttention   0
    movable             1
    MaxItems            1000
    MaxWeight           10000
    weight              1
    CanInsertScript     ::canInsert
    OnInsertScript      ::onInsert
    CanRemoveScript     ::canRemove
    OnRemoveScript      ::onRemove
}

I chose this pack just to make sure there were no inherent limitations with it. So any ideas? I appreciate the help. One thing I should mention is that I am not running the current Distro scripts. I have a converted Distro from 0.95. Is it possible I am not sending a required packet or mayhbe I have a packet configured incorrectly? Is there a special packet that a script would use to send weight info to the client or is that handled by the core? Any help is greatly appreciated. Thanks.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Yukiko
Distro Developer
Posts: 2525
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko » Fri Dec 02, 2011 6:17 am

I figured out what my problem was. Somehow when I had added the "WornItemsContainer" in my conversion to POL 0.98 a few years ago I had not specified the MaxWeight and MaxItems properties for that container.

Anyway, I thought I should post this to close out this thread.

Thanks.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Tomi
POL Developer
Posts: 475
Joined: Tue Feb 21, 2006 5:08 pm

Re: Character weight limit

Post by Tomi » Fri Dec 02, 2011 10:45 am

Thank you for the information Yukiko, that have to be added to docs

Yukiko
Distro Developer
Posts: 2525
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko » Sat Dec 03, 2011 5:15 am

Thanks Tomi but actually if I had copied and pasted the info correctly from core changes it wouldn't have been an issue. MaudDib had posted the entry for WornItemsContainer correctly in CoreChanges.txt. Apparently I somehow didn't copy it correctly to my itemdesc.cfg file. It was an interesting bug to track down though. I used the "Basic" 0.97 POL files to find out what was wrong. I'm glad that set of scripts was still around.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

User avatar
MuadDib
POL Expert
Posts: 1087
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: Character weight limit

Post by MuadDib » Sun Dec 04, 2011 10:51 pm

Why for you have to bring my name into it? :(
POL Developer - The Penguin Scripter

Yukiko
Distro Developer
Posts: 2525
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko » Tue Dec 06, 2011 4:44 am

Because MaudDib, I wanted to see if you'd pop out of the shadows. : )

Besides, I was giving credit where credit was due.

BTW very good to see you posting again.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Polytropon
New User
Posts: 19
Joined: Wed Sep 15, 2010 9:47 pm

Re: Character weight limit

Post by Polytropon » Tue Dec 06, 2011 5:38 pm

He has a sixth sense when someone pronounces his name. Even misspelled :)

Yukiko
Distro Developer
Posts: 2525
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko » Wed Dec 07, 2011 5:17 am

Hahaha.
You know I hadn't realized I'd been misspelling it. Thanks Polytropon for correcting me. I guess it's because I am not a native of Arrakis and just can't speak the Fremen language.
Sincerely,
Yukiko

I would tell you a UDP joke but you might not get it.

Titus 2:13

Post Reply