Locomotive fluid tank

Place to get help with not working mods / modding interface.
Post Reply
evildogbot100
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Locomotive fluid tank

Post by evildogbot100 »

Is it possible for making locomotive able to hold liquid? I'm trying to make locomotive that works by consuming oil.

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

Re: Locomotive fluid tank

Post by bobingabout »

I've been asking for support for this to be possible since version 0.10.x.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

evildogbot100
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Re: Locomotive fluid tank

Post by evildogbot100 »

I'm thinking of making invisible fluid wagon or storage tank as a proxy for the locomotives, then update remaining energy on the locos according to how much liquid left in the tank. Liquid wagon has better refuelling animation but the game doesn't allow me to place them overlapping with the loco no matter what. If I set the proxy fluid wagon collision_mask = {} then the game just crashed whenever another train part overlaps with the fluid wagon.

Factorie
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed May 31, 2017 2:29 am
Contact:

Re: Locomotive fluid tank

Post by Factorie »

Definitely needs to be added. Some maps have sparse crude oil spots.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2635
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Locomotive fluid tank

Post by steinio »

Why not use a tank as proxy?
Maybe you can reuse some stuff from the railtanker mod.

Or just burn barrels with oil...
Image

Transport Belt Repair Man

View unread Posts

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

Re: Locomotive fluid tank

Post by bobingabout »

I basically see fuel blocks as... a cube shaped bottle of oil. Because, that's basically what it is in where it is used.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

evildogbot100
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Re: Locomotive fluid tank

Post by evildogbot100 »

Well, I want to make something entirely different gameplay wise, so making oil barrels have fuel value doesn't really seems all that different from vanilla.

Post Reply

Return to “Modding help”