Container volume???

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
peebles

Container volume???

Post 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?
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Container volume???

Post 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.
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Container volume???

Post 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
peebles

Re: Container volume???

Post 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?
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Container volume???

Post by wjp »

I just added some debugging output to exult :-)

You need the Exult sources for contain.cc
peebles

Re: Container volume???

Post by peebles »

I downloaded the source but couldn't find any constants fot the volume of containers. Maybe it just gets it from U7.
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Container volume???

Post by wjp »

Container volumes are in the U7 data, yes.
peebles

Re: Container volume???

Post 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?
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Container volume???

Post 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.
peebles

Re: Container volume???

Post 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.
drcode
Site Admin
Posts: 2267
Joined: Thu May 14, 2020 1:34 pm

Re: Container volume???

Post 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:-).)
peebles

Re: Container volume???

Post 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?
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Container volume???

Post 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...
--
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!
peebles

Re: Container volume???

Post by peebles »

"just" is used very loosely sometimes, but of course you are right. I just wanted to make sure.
Locked