> Hey all! > > I am running modified Rom 2.4 that I took over and currently there > is no > limit to how many items a player may have in his inventory or in > backpacks. And if they view the inventory or backpack if it has over a > certain amount of items (apparently over 200) the entire mud crashes. > What is the best way to fix this? I have never tried to add a > max_inventory check or possibly add weight to all items and add a > weight limitation based off str. But the latter seems like a lot of > work. I am just looking for an EZ fix to stop the crashes. Besides > players really don't need to hoard that much equipment anyway. >
There is no easy fix. And I don't think it's a buffer issue. More than likely you are hitting the stack limit for the shell. When a character saves, the fwrite_obj calls itself over and over so it's possible to have a stack overflow. Fixing it isn't the easiest thing to do. The way I did it was I limited the number of items they could carry in one bag, then limited the number of items they could carry open in their inventory. Jef

