(Spawned from a discord discussion beginning here: https://discord.com/channels/1396775903 ... 7954515989)
In order of difficulty level:
1) By analogy with https://lua-api.factorio.com/latest/cla ... _direction I would like to request that `LuaEntity.supports_mirroring` be added.
2) The documentation for https://lua-api.factorio.com/latest/eve ... ped_entity claims that the event only fires when `entity.mirroring` changes. This appears to not be the case: placing a `SimpleEntityWithOwner` facing North and performing a horizontal flip on it by pressing H causes this event to fire, even though neither the `mirroring` nor the `direction` of the entity have changed.
Something is definitely not right about this. Under the current status quo, I think it should be treated as a misdocumentation rather than a bug; those of us wanting to emulate mirroring for custom compound entities still need to know the fact that the user tried to flip the entity, i.e. the event should still fire.
However, if request #3 could also be filled, then #2 could be treated as an outright bug instead.
3) It would be nice to have access to some species of generic entity that supports mirroring without climbing the complexity ladder all the way up to a full assembling machine. (Perhaps `CraftingMachinePrototype.forced_symmetry` could be moved up to `SimpleEntityWithOwner` in order to allow modders to opt into mirroring support for individual custom entities?)
In this case, behavior #2 could be fixed and mods would have first-class abilities to create novel mirrorable entities that aren't necessarily assembling machines.
`LuaEntity::supports_mirroring` and `on_player_flipped_entity`
Place to ask discuss and request the modding support of Factorio. Don't request mods here.
-
- Burner Inserter
- Posts: 7
- Joined: Sun Nov 10, 2024 5:23 pm
- Contact:
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
- ↳ Fixed for 2.1
- 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