Skip to content

[Feature Request] Support for Compact Circuits #5

Description

@Weldawadyathink

Would it be possible to add support for packed mode in the Compact Circuits mod. It looks like it shouldn't be too terribly difficult to add.

The mod page details the process:

  • define a "packed" version of the combinator (and any other entities used) with no display and with the properties:
    packed_entity.flags = { 'placeable-off-grid' , "hidden", "hide-alt-info", "not-on-map", "not-upgradable", "not-deconstructable", "not-blueprintable" }
    packed_entity.collision_mask = {}
    packed_entity.collision_box = nil
    packed_entity.minable = nil
    packed_entity.selectable_in_game = false
  • define a remote interface in the external mod with methods:
    get_info(entity) : get private information on an entity in a structure (properties name, index, position, direction are reserved)
    create_packed_entity(info, surface, position, force) : create a packed entity with info (return from previous call), surface, position, force
    create_entity(info, surface, force) : create a normal combinator with info, surface, force, info.position, info.direction
  • call the Compakt Circuit remote interface:
remote.call("compaktcircuit", "add_combinator", {

    name = <name of the combinator>,
    packed_names = { <list of used packed combinators> },
    interface_name = <interface name of the external mod interface>

    })

It doesn't look like it should be too difficult. I may even want to try it myself, but I am very new to Factorio modding. If I can make it work, would you like a pull request for this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions