Author Topic: container's inventory oddity  (Read 485 times)

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
container's inventory oddity
« on: March 18, 2012, 02:15:38 am »


               ok guys, here's a doozy.  i have a container with 315 items in its inventory in the toolset (it's used as part of a treasure table system).  the kicker is that when the module starts, there are only 214 items in it in game.

about 100 items are dropped from the chest when the module starts, and it's always the same 100.  the chest isn't being truncated to 214 items, either.  it might drop items 1, 24, 105, etc.  i can't figure out how or why the game determines which items to remove.  for instance there are a series of 8 books that are essentially copies of each other (different resrefs and tags, of course).  one of the books shows up in game, but the other 7 are gone.

in another container next to it, the very same items are there and they show up just fine.  it's just this one container (well, possibly this happens to another container in the same room but with different items being dropped).

i copied the chest, and removed a few items and tried putting them back - no difference.  the other thing i tried was to delete every single item in it, then i put in a few items that were being dropped before.  that time, all 5 showed up without a problem.

any idea what to do?  i'd hate to have to delete all 315 items, then put them all back in again just to try to fix it.  is it possible that there are some "bad" items that screw up the container?  but why does it become "ok" again later?


i don't imagine this makes any sense, but am i at least being clear about my problem?  haha
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
container's inventory oddity
« Reply #1 on: March 18, 2012, 03:37:27 am »


               There's likely a limit of 255 items on containers, though I can't find anything at the moment to confirm that.
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
container's inventory oddity
« Reply #2 on: March 18, 2012, 03:50:37 am »


               yeah, i considered that, but i figured that it would just not accept any more items after i hit the limit.  rather, it removes them from from various parts of the list.  also, there is a container right next to it with like 220 some items, which is more than the 214 in the one i've been testing.

so i made an entirely new container, and started adding the same items in one by one.  i tested after the first 57 and they were all there.  i got cocky and added them in until 190 and retested.  no dice - only 169 of them showed up.  frustrating.

i also recently found mention of a resource limit in a module (http://social.biowar...-5833620-1.html) of 16k.  i did a properties on my modules/temp.0 file, and it has 15943 files in it.  i know it's not the 16384 or whatever that's allowed, but i'm wary that it's getting close.

any chance the two are related?  if that's the case, then if i delete another chest with 200 some items in it, then i would expect all of the ones in the chest i'm testing to show up, right?
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
container's inventory oddity
« Reply #3 on: March 18, 2012, 04:01:38 am »


               for the record, deleting some of other containers full of items didn't "help".
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
container's inventory oddity
« Reply #4 on: March 18, 2012, 04:45:09 am »


               likely this is my final update - there appears to be some sort of limit on the chests.  i split my test chest (that contained 190 items but displayed 169) into two chests - one with 86 and the other with 104 items.

i had to modify my loading script to cycle through the similarly tagged chests, but lo and behold i came up with the correct # of items now.

so.....  there ya'll have it.  '<img'>
               
               

               
            

Legacy_eeriegeek

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +0/-0
container's inventory oddity
« Reply #5 on: March 18, 2012, 04:45:23 am »


               There is a limit of 25 _pages_ on a placeable inventory. The count looks random, because its whatever will fit randomly into those 25 pages.
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
container's inventory oddity
« Reply #6 on: March 18, 2012, 05:21:15 am »


               Items in a chest or store do not add to a modules resource limit. I have almost 20k unique items in my stores and treasure system in my own current module. Only items on the pallettes count towards the limit. There are also two 16k limits. The first is shear resources which includes Areas, Scripts, triggers ... anything that you can select for export. If this total exceeds the 16k limit, your module will likely fail to launch, but can still be editted in the toolset.  The second limit when surpassed causes DMs to crash upon logging in most often.

I suspect (since I too use a container based loot system) that you are merely exceeding the page limit for your containers instead. Try logging into your module as a DM and looking inside of your chests. If the chest with missing items goes all the way to 25 pages, you've likely exceeded its capacity. Make a test chest with 300+ small 1x1 items and I bet they all show up.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
container's inventory oddity
« Reply #7 on: March 18, 2012, 07:06:24 am »


               I agree with both eeriegeek &  kalbaern, The 25 page limit and fitting the items onto the 25 pages explains both the loss of items and it not just being the last items lost.    When items are added to the chest they are added into the first vacant spot the item will fit into.   The first vacant spot is  found by scanning for the first vacant square from the bottom left of the page across the bottom to the right, then sacnning the next row up left to right, then scanning to the next page in the same fasion.  When a vacant square is found, the item is placed there if  the other suqares are also vacant that are needed to fit the item, If they are not the next avaialbe square is searched for.   If the item does not fit is is just not added.    

The books getting dropped is no big supprise in the system above, Being 4X4 items they are just harder to fit.  Pole arms would also be High drop items.  In fact if you looked at you list of dropped items, Ill bet that none of them where 1X1 items.
               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
container's inventory oddity
« Reply #8 on: March 19, 2012, 12:42:01 am »


               yeah, you guys were exactly right.  it was the 25 page limit causing my stuff to drop.  i spent so long trying to figure out what was wrong with those items in particular.  eventually when i tried splitting up the chests and saw that it worked, your explanations made perfect sense.

if only i'd posted sooner!  haha.  would have saved me hours of time trying to figure it out, but i hate not giving it a go on my own at first.