How to get storage-tank capacity?

Place to get help with not working mods / modding interface.
Post Reply
devilwarriors
Filter Inserter
Filter Inserter
Posts: 311
Joined: Sat Jan 09, 2016 1:11 am
Contact:

How to get storage-tank capacity?

Post 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

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to get storage-tank capacity?

Post by DaveMcW »

Ask in modding interface requests.

You can use this hack if you are impatient.

devilwarriors
Filter Inserter
Filter Inserter
Posts: 311
Joined: Sat Jan 09, 2016 1:11 am
Contact:

Re: How to get storage-tank capacity?

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

devilwarriors
Filter Inserter
Filter Inserter
Posts: 311
Joined: Sat Jan 09, 2016 1:11 am
Contact:

Re: How to get storage-tank capacity?

Post by devilwarriors »

Oh I hadn't realyse just how hackish that thing is.. and that I needed to require the mod :\

devilwarriors
Filter Inserter
Filter Inserter
Posts: 311
Joined: Sat Jan 09, 2016 1:11 am
Contact:

Re: How to get storage-tank capacity?

Post by devilwarriors »

ah why not .. I submited a request

viewtopic.php?f=28&t=44044

Post Reply

Return to “Modding help”