Deon,
Yea I just separated the spawning size and the stack size. Seems to be working just fine.
BishopX,
It does calculate weight on item numbers, it just doesn't calculate volume. Larger stacks of ammo are heavier than smaller ones. I'll have to check and see if I can find where its doing the weight and volume calculations and see if I can get it to do volume based on the total count as well.
As far as the other concerns, that would only matter for perishable items. I'm mostly doing it for ammo.
-edit- Well that was easy. A few quick modifications and now ammo is stacking as high as I want, with the weight and volume changing based on stack size. Just need to rebalance the weight and volume of the ammo types and I'll be done.
What I did was:
item.cpp
modified the volume calculation to multiply by charges and divide by 100 for ammo. Also corrected it to return the variable instead of type->volume (which was making it fail to take gun mods into account for gun volume).
Modified the two item things near top of the file to look for ammo->findcount; instead of ammo->count;. This appears to be where it gets spawn info
itypedef.cpp
Modified the ammo to make use of findcount, and changed count to the amount I wanted it to stack up to.
itype.h
Added the unsigned char findcount
Changed the unsigned char count to an unsigned int so it can hold more than 232.