I red somewhere that storage-tank max capacity is 2500.
But is it possible to make a derivated prototype with another capacity ? (I did not find the variable, but base_area seems to have some influence, even if I don't know how)
And How can I read the max capacity of a tank from control.lua, looking at a tank entity ?
tank max storage ?
tank max storage ?
My mods on the Factorio Mod Portal 

Re: tank max storage ?
To change the size of a storage tank you change its base_area, the value you set is multiplied by 10 in-game. A pipe for example has a base_area of 1.
I don't think there's an easy way to get the storage size in control.lua because the fluid box is not listed in the entity prototype, but here's a workaround: viewtopic.php?f=25&t=7417#p58793
I don't think there's an easy way to get the storage size in control.lua because the fluid box is not listed in the entity prototype, but here's a workaround: viewtopic.php?f=25&t=7417#p58793