Post Reply
- Print view
4 posts• Page 1 of 1
- PreKopLiX
- Burner Inserter
- Posts: 10
- Joined: Thu Aug 03, 2023 11:52 am
- Contact:
Contact PreKopLiX
Send private message
Refuel train when needed *Help Please*
- Quote
Postby PreKopLiX »
Hello guys !
I am new here and I didn't find this topic so I am going to describe my problem and try to solve it here.
I would like to do a "train refuel station" when the train is empty on fuel (best possibility is something about 20 solid fuel = will call this empty in this topic).
So basically I would like to have one station which is shuted off, till the moment when a train is empty, turn on the station on train schedule, refuel train, then turn off the station on schedule, I hope you are understand what I want to do it. I have a LTN mod but I am stuck here.
My idea:
the train fuel level should be checked on station A (loading station) and when it's empty turn on the station C (fueling station) on schedule.
So basically the schedule will look like A-->B --x-->C -stop on C when the fuel tank is empty.
My english is not very good, and I am at work so I can't send you a screen, I am sorry.
Take care of yourself, love this game <3
Top
- Amarula
- Filter Inserter
- Posts: 521
- Joined: Fri Apr 27, 2018 1:29 pm
- Contact:
Contact Amarula
Send private message
Re: Refuel train when needed *Help Please*
- Quote
Postby Amarula »
I think we all want something like this for our trains!
Sadly in vanilla there is no way to read how much fuel is left in a locomotive, which takes us to the world of mods. A search of train fuel in the mod portal has lots of results, you might want to look at this one for inspiration: https://mods.factorio.com/mod/TrainRefuelStation
Good luck and have fun!
My own personal Factorio super-power - running out of power.
Top
- SoShootMe
- Filter Inserter
- Posts: 502
- Joined: Mon Aug 03, 2020 4:16 pm
- Contact:
Contact SoShootMe
Send private message
Re: Refuel train when needed *Help Please*
- Quote
Postby SoShootMe »
In vanilla, you can't read how much fuel a train has, so you must flip the problem around: bring fuel to trains instead of trains to fuel. This also has the advantage that refueling happens when the train is stopped anyway, instead of requiring a diversion and an extra stop (even if only occasional).
I do this partly by train: a single "Train fuel load" stop (near where fuel is produced), numerous identical "Train fuel unload" stops and a single train. At each "Train fuel unload" stop, fuel is unloaded into a buffer from which it is distributed to all other nearby unloading stops. Using the circuit network, the stop's train limit set to 1 if the buffer is empty (with a single Decider combinator: if <everything>=0, output L=1). The train has a simple schedule, "Train fuel load: wait until Full cargo inventory; Train fuel unload: wait until Empty cargo inventory".
One small train supplying rocket fuel or nuclear fuel can support hundreds of trains over a wide area and has (so far...) been sufficient for me, but this could be scaled up with additional "Train fuel load" stops, each set to a fixed train limit of 1, and a train for each of those stops (with schedule as above).
Top
- PreKopLiX
- Burner Inserter
- Posts: 10
- Joined: Thu Aug 03, 2023 11:52 am
- Contact:
Contact PreKopLiX
Send private message
Re: Refuel train when needed *Help Please*
- Quote
Postby PreKopLiX »
Amazing guys...thank you very much for your ideas Yesterday I did a "depo fuel stop" thru LTN so when the train is in depo and do nothing/waiting for cargo,then it is refueled
Once more, thanx a lot and have a great day
Top
Post Reply
- Print view
4 posts• Page 1 of 1
Return to “Gameplay Help”
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Fixed for 2.0
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Implemented in 2.0
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Implemented for 2.0
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions