Request:
Add the ability to shift the pump's wagon connection arm top pivot point by different amounts for the pump input and output arms. This would be to match the existing ability to shift the BasePumpWagonConnectionAnimations differently for input and output. For example, change PumpWagonConnectionGraphics::top_pivot_shift to be a table containing {input=PumpWagonConnectionShift4Way, output=PumpWagonConnectionShift4Way}.
Application:
I really like the new stretchy pump arms and want to do more with them, specifically for the Cargo Ships oil tanker. To allow the pumps to connect to the water rails from on land without overlapping the ship sprites, I created a two 1x4 tile pump entities, one with a long input side and one with a long output side. (The only way to connect to wagons is to have the pump collision box adjacent to the rail, so the collision box must be wider than the sprites.)
To draw the pump body at one edge of the 4-wide collision box, I applied the same 1-tile-from-center shift to the animations, fluid_animation, glass_pictures, wagon_connection_graphics.base.input, and wagon_connection_graphics.base.output sprite definitions.
The wagon_connection_graphics.part1 and wagon_connection_graphics.part2 are shifted according to top_pivot_shift. Right now, the input and output are both shifted by top_pivot_shift[direction] relative to the entity center point. This means that if the input and output arms are not positioned symmetrically about the entity center, one of the pivot points will always be wrong.
Here is how it affects my use case. I adjusted the top_pivot_shift so that the long arm to the ship looks right, which means it starts almost right on the entity center line. When the short arm to the fluid wagon is drawn, it also starts near the entity center line, even though the input arm base is 2 tiles away from the center. With the ability to set the input and output arm top_pivot_shift separately, I would be able to make both sides of the asymmetric pump look correct.
Separate top_pivot_shift values for pump input and output
Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Separate top_pivot_shift values for pump input and output
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Return to “Modding interface requests”
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
