Fluid storage in train/car entity

Place to get help with not working mods / modding interface.
Post Reply
Sigor
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Nov 20, 2016 5:07 pm
Contact:

Fluid storage in train/car entity

Post by Sigor »

I would like to add fluid capacity to a locomotive (not to a wagon), so it gets consumed as the train moves.
The "consume" part will probably be easier, so I only ask for help with the "fluid capacity" part.
Adding total_capacity = x or fluid_capacity = x in the code does nothing.
I tried to add a "mining fluid" to the locomotive, but I couldn't find any mining drill "code" in the base mod.

Any ideas?

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Fluid storage in train/car entity

Post by bobingabout »

Fluid as fuel was promised for 0.14 (now 0.15, because 0.14 was a test to a change in 0.13) as part of the fluid expansion, which was unfortunately left out.

Basically, unless they add fluid fuel support, you can't do it.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Sigor
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Nov 20, 2016 5:07 pm
Contact:

Re: Fluid storage in train/car entity

Post by Sigor »

Thanks! I think I can work around it though.

Post Reply

Return to “Modding help”