tank max storage ?

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

tank max storage ?

Post by binbinhfr »

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 ?
My mods on the Factorio Mod Portal :geek:
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: tank max storage ?

Post by daniel34 »

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
quick links: log file | graphical issues | wiki
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: tank max storage ?

Post by binbinhfr »

thx daniel !
very helpful
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Modding help”