Container volume???
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Container volume???
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?
Also Bag volume is supposed to be 70 but I can put 2 bags in a backpack. How does this work?
Re: Container volume???
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???
volume of a backpack is 150, volume of a barrel is 250, volume of a bag is 70.
Looks like a bug in EStudio
Looks like a bug in EStudio
Re: Container volume???
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?
DrCode, thanks. I downloaded exult and exult studio and neither one has any contain* file. What download has this file?
Re: Container volume???
I just added some debugging output to exult
You need the Exult sources for contain.cc
You need the Exult sources for contain.cc
Re: Container volume???
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???
Container volumes are in the U7 data, yes.
Re: Container volume???
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???
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.
I think DrCode just fixed this Exult Studio bug, though, so the next snapshot should display the proper values.
Re: Container volume???
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.
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???
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???
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???
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...
Of course the Jan 29 snapshot can't have that fix when Jeff/Willem writes on Jan 30 that he "just" fixed it...
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Re: Container volume???
"just" is used very loosely sometimes, but of course you are right. I just wanted to make sure.