[Solved]How can I change the storage amount of my tank?

Place to get help with not working mods / modding interface.
Post Reply
memcallen
Inserter
Inserter
Posts: 34
Joined: Sat Mar 28, 2015 1:22 am
Contact:

[Solved]How can I change the storage amount of my tank?

Post by memcallen »

How do I change the amount that my tank can store?
Last edited by memcallen on Sat Oct 10, 2015 9:04 pm, edited 1 time in total.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5152
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: How can I change the storage amount of my tank?

Post by Klonan »

Are you making a new tank mod or you want to change the normal game tank?

If you want to change the normal tank, then heres what you do
Navigate to this directory
Open up entities.lua

Ctrl-f for 'tank_driving'
You should see something like this
And you can change 'inventory_size' from 80 to whatever you may please



Note: this may break the game updating, so make a backup of the file and replace it back before trying to update in the future

memcallen
Inserter
Inserter
Posts: 34
Joined: Sat Mar 28, 2015 1:22 am
Contact:

Re: How can I change the storage amount of my tank?

Post by memcallen »

I'm creating a new tank, but I should've been more specific. I meant liquid tanks, which is why I'm asking. I'm not even sure if it's possible at this point.

cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

Re: How can I change the storage amount of my tank?

Post by cartmen180 »

the liquid storage tanks are handled as really large pipes. Just change the base_area in the entity type.
Check out my mods

memcallen
Inserter
Inserter
Posts: 34
Joined: Sat Mar 28, 2015 1:22 am
Contact:

Re: How can I change the storage amount of my tank?

Post by memcallen »

Thanks, I got it to work.

Post Reply

Return to “Modding help”