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: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Character weight limit

Post by Yukiko »

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
User avatar
AsYlum
Grandmaster Poster
Posts: 109
Joined: Sun Feb 05, 2006 5:24 am
Location: Poland

Re: Character weight limit

Post by AsYlum »

I think you'll need to check character's backpack itemdesc.cfg weight limit setting.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko »

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.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko »

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.
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: Character weight limit

Post by Tomi »

Thank you for the information Yukiko, that have to be added to docs
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko »

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.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: Character weight limit

Post by MuadDib »

Why for you have to bring my name into it? :(
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko »

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.
Polytropon
New User
Posts: 19
Joined: Wed Sep 15, 2010 9:47 pm

Re: Character weight limit

Post by Polytropon »

He has a sixth sense when someone pronounces his name. Even misspelled :)
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: Character weight limit

Post by Yukiko »

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