In the mod Vehicle Wagon 2, it used to use a capsule to select which car and wagon to load. This worked by triggering an event whenever the player clicked with capsule and reading player.selected as the entity they are hovering over. The downside is that you cannot use capsules in map view at an arbitrary distance.
I have changed the capsule to a selection tool. This works fine, and you can even select both the vehicle and the wagon at once to load them. You can also (usually) use it like the old winch, single-clicking on each entity to make selections. But there is a frustrating behavior where you hover over an entity with the winch, the selection box visualization appears, and you click with the winch tool, but nothing is selected. No event is generated because the "selected area" contains no entities filtered according to the rules that I set, so I cannot read the cursor position or selected entity after the player releases the button.
The problem is caused by the bounding or collision box of the entity being different from the selection box. The selection tool only selects the "ground footprint" of entities because that is how blueprinting should work, but blueprints don't apply to vehicles so the behavior is not intuitive there. It is most dramatic on the Spidertron, because the selection box and the bounding box have almost no overlap. But it also happens on train wagons in certain orientations.
Here, it looks like when you click it should select the Spidertron:
But when you actually click, it does not:
At the very bottom of the selection box, it does what you expect:
Hovering below the selection box, no indication is given that anything will happen if you click:
But in fact the Spidertron will be selected:
Does anyone have a suggestion for how to make this kind of tool more user friendly? I don't see a way to change the selection-tool to use selection boxes rather than bounding boxes to decide what to select, or any way to differentiate between a click and a drag. Do I have to respond to every area_selected event (even when no entities are selected) and perform the check myself, for example?
Selection tool behavior when clicking on entities
Place to get help with not working mods / modding interface.
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
- ↳ 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
- ↳ 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