Page 1 of 1

Container volume???

Posted: Wed Jan 29, 2003 7:18 am
by peebles
Exult Studio helps to understand the objects in U7 but this still doesn't make sense to me. The Backpack object properties says volume=100, and Barrel volume=100 but the Barrel will hold a hell of a lot more. How do you calculate what a container will hold?

Also Bag volume is supposed to be 70 but I can put 2 bags in a backpack. How does this work?

Re: Container volume???

Posted: Wed Jan 29, 2003 9:51 am
by drcode
I can't remember the details, but there's a "contain.cc" file in the "objs" directory that contains the volume-checking code.

Re: Container volume???

Posted: Wed Jan 29, 2003 9:56 am
by wjp
volume of a backpack is 150, volume of a barrel is 250, volume of a bag is 70.

Looks like a bug in EStudio

Re: Container volume???

Posted: Wed Jan 29, 2003 10:37 am
by peebles
Thanks wjp. I would also like to know the volumes of other containers. Where did you get this info?

DrCode, thanks. I downloaded exult and exult studio and neither one has any contain* file. What download has this file?

Re: Container volume???

Posted: Wed Jan 29, 2003 10:39 am
by wjp
I just added some debugging output to exult :-)

You need the Exult sources for contain.cc

Re: Container volume???

Posted: Wed Jan 29, 2003 12:09 pm
by peebles
I downloaded the source but couldn't find any constants fot the volume of containers. Maybe it just gets it from U7.

Re: Container volume???

Posted: Thu Jan 30, 2003 2:06 am
by wjp
Container volumes are in the U7 data, yes.

Re: Container volume???

Posted: Thu Jan 30, 2003 7:56 am
by peebles
wjp, can you give me another hint how you found these numbers? Is there a dump option on exult that will show these numbers?

Re: Container volume???

Posted: Thu Jan 30, 2003 8:09 am
by wjp
No, but I added some code to exult to display the volume.


I think DrCode just fixed this Exult Studio bug, though, so the next snapshot should display the proper values.

Re: Container volume???

Posted: Thu Jan 30, 2003 8:19 am
by peebles
Ah. Thanks DrCode.

I just realized that I could attach a barrel, chest, or crate instead of a backpack or bag on my characters. The barrel carries a lot but it's hard to find things in it. A crate or chest might be better.

Re: Container volume???

Posted: Thu Jan 30, 2003 9:33 am
by drcode
Yes, the volume bug in ES is fixed, along with a couple other problems I noticed with that dialog. (The math class I taught just ended, so now I only have a regular job to distract me from open-source work:-).)

Re: Container volume???

Posted: Thu Jan 30, 2003 10:38 am
by peebles
Thanks DrCode. I downloaded the Jan 29 version of Studio and it's still the same, everything has a volume of 100. When will the next update occur?

Re: Container volume???

Posted: Thu Jan 30, 2003 3:09 pm
by Dominus
whenever Kirben adds the next snapshot.
Of course the Jan 29 snapshot can't have that fix when Jeff/Willem writes on Jan 30 that he "just" fixed it...

Re: Container volume???

Posted: Thu Jan 30, 2003 5:17 pm
by peebles
"just" is used very loosely sometimes, but of course you are right. I just wanted to make sure.