This seems like the magic for disabling red/green wires in data.lua prototype code:
Code: Select all
grey_belt_entity.circuit_connector_sprites = nil
grey_belt_entity.circuit_wire_connection_points = nil
grey_belt_entity.circuit_wire_max_distance = nil
However, I'd also like to be able to disable logistic connections for my belt prototype. For example:
I would prefer doing this via data.lua prototype code.
I talked with Klonan a little about this on Discord and he suggested setting each belt entity operable=false (LuaEntity.operable) but I would like to avoid that because I don't want to catch all of the edge cases for players/robots/map-editors/biters/trees/other-mods trying to place/build/materialize/grow/spawn my new type of belt.
I would also like the players to be able to interact with the belts in all the other normal ways, like picking items off belts (F), hand placing items (Z), etc.
I would like something in Prototype/TransportBelt such as setting connector_frame_sprites to nil, or some Boolean flag that would indicate that player should not be able to connect the belts to logistic networks.
I also see a future where modders might want a similar functionality for inserters, so if this could be be applicable to all logistic connectable devices, that would definitely be a massive bonus!
