Page 1 of 1

Character weight limit

Posted: Sun Nov 27, 2011 1:28 am
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

Re: Character weight limit

Posted: Sun Nov 27, 2011 11:31 am
by AsYlum
I think you'll need to check character's backpack itemdesc.cfg weight limit setting.

Re: Character weight limit

Posted: Sun Nov 27, 2011 5:50 pm
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.

Re: Character weight limit

Posted: Fri Dec 02, 2011 6:17 am
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.

Re: Character weight limit

Posted: Fri Dec 02, 2011 10:45 am
by Tomi
Thank you for the information Yukiko, that have to be added to docs

Re: Character weight limit

Posted: Sat Dec 03, 2011 5:15 am
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.

Re: Character weight limit

Posted: Sun Dec 04, 2011 10:51 pm
by MuadDib
Why for you have to bring my name into it? :(

Re: Character weight limit

Posted: Tue Dec 06, 2011 4:44 am
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.

Re: Character weight limit

Posted: Tue Dec 06, 2011 5:38 pm
by Polytropon
He has a sixth sense when someone pronounces his name. Even misspelled :)

Re: Character weight limit

Posted: Wed Dec 07, 2011 5:17 am
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.