Hey, gang!
You might know me from such creations as image2blueprint.
I'm trying to make a reversible pump to solve a problem with stations that load many fluids onto a single vehicle. The pain point until now has been cleaning out the last pump before the next train arrives. A set of reversible pumps would switch direction when T=0 (no train in station), forcing the fluid back into the appropriate storage, like so:
Now that machines can accept signals from two different wires, I'd like one wire to be the on/off and one to be direction. It seems I can't easily emulate this part
In a perfect world it would be like this:
Now on to the issues I'm facing.
The tidy GUI we're used to doesn't appear to be accessible in the API. A custom GUI is clunky and inelegant - the user has to choose a toggle for signal or constant and the fill in the value.
The pump itself is a very dirty set of hacks that don't quite work. The visuals should stay the same while the flow direction arrow changes. The pump code itself doesn't allow for negative flow so I tried a hidden second pump under the visuals of the first. Kinda works until the user flips the pump direction and now I have flow direction arrows. It also seems I can't just flip the hidden pump, I have to destroy and recreate it. That's probably bad for UPS and it's tricky to do without causing the tiniest leak of disappearing fluid.
I also tried adding a value to remember the original direction the user placed the pump and then flip would be relative to original. Again, problems when the user flips the original while the hidden pump is flipped.
In either case when the hidden pump works the original doesn't extend and connect to the train. DOH!
In conclusion, I beseech the mod gods for mercy. I haven't shared the repo because i'm too ashamed of the mess.
If you think you can make it work or help in some way, please lmk.
Revesible pump
Place to get help with not working mods / modding interface.
-
i-make-robots
- Long Handed Inserter

- Posts: 88
- Joined: Fri Jul 25, 2014 9:06 pm
- Contact:
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
- ↳ 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
- ↳ 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
- ↳ Fentus Challenge & Tool Mods
- ↳ 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
- ↳ 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