Page 1 of 1

How to get storage-tank capacity?

Posted: Tue Apr 11, 2017 2:43 am
by devilwarriors
Hi!

I'm trying to see how much space is left in a storage-tank.

Is there a way to get the value of the fluid_box.base_area value set in the datas file.

Or is there a way to know the current capacity of a fluidbox? Seem like there is no way to get that information.

For an assembler I can check the recipe ingredient and multiply by two, but for the storage-tank there no recipe only the prototype.

Thanks

Re: How to get storage-tank capacity?

Posted: Tue Apr 11, 2017 2:56 am
by DaveMcW
Ask in modding interface requests.

You can use this hack if you are impatient.

Re: How to get storage-tank capacity?

Posted: Tue Apr 11, 2017 3:19 am
by devilwarriors
I'm ok with the hack for now, king of just want it to work :P

Haven't really had any luck with interface requests anyway.

Thanks!

Re: How to get storage-tank capacity?

Posted: Tue Apr 11, 2017 3:28 am
by devilwarriors
Oh I hadn't realyse just how hackish that thing is.. and that I needed to require the mod :\

Re: How to get storage-tank capacity?

Posted: Tue Apr 11, 2017 3:51 am
by devilwarriors
ah why not .. I submited a request

viewtopic.php?f=28&t=44044