Giter VIP home page Giter VIP logo

factorio-bad-chest's Introduction

Adds a Blueprint Deployer chest which can be connected to the circuit network to build a self-expanding factory.

Example commands:

Construction robot = 1

Deploy blueprint. Construction robot signal is the "use blueprint" command. Can be any value ≠ 0.


Construction robot = 2

Deploy blueprint from book. Construction robot signal selects which slot in book to use. If it is greater than the size of the book, the active blueprint is used instead. A signal less than zero means cancel deconstruction/upgrade if there is a deconstruction/upgrade plan in the selected slot (for more information about these plans, see below). Of course, the minus sign is ignored when choosing a slot number in the book.


Construction robot = 3

Selection of nested books. To select blueprint in book (which may also be in the book), additional signals 1 to 5 indicate which slot to use at the corresponding nesting level. (Construction robot signal is considered as the zero level)


Construction robot = 1

Deconstruct or upgrade area. W = width, H = height. Supports deconstruction filters. The deployer chest will never deconstruct itself with this command.


Construction robot = -1

Cancel deconstruction or upgrades in area. It can also be used inside books, as described above.


Deconstruction planner = -1

Alternative deconstruction commands that do not require a deconstruction planner in the deployer chest.

-1 = Deconstruct area.
-2 = Deconstruct the deployer chest.
-3 = Cancel deconstruction in area.
-4 = Deconstruct area with provided item signals as whitelist.
-5 = Deconstruct area with provided item signals as blacklist.
-6 = Cancel area deconstruct with provided item signals as whitelist.
-7 = Cancel area deconstruct with provided item signals as blacklist.

For the blacklist/whitelist, only positive signals of items are used.

Special filter signals:

Signal "T">0 - trees
Signal "R">0 - rocks
Signal "C">0 - cliffs


Signal C = 1

Copy blueprint or blueprint book. The original blueprint must be in a chest (or inserter with read hand contents) on the same circuit network as the deployer chest.


Signal C = -1

Delete blueprint or blueprint book.


Additional parameters

X and Y signals shift the position of the construction/deconstruction/upgrade order.

Deconstruction and upgrades use X, Y as the center of the area. This can be changed to the top left corner of the area in mod settings. (This option affects the scanner (see below) in a similar way)

R signal rotates the blueprint. R = 1 = 90° clockwise, R = 2 = 180°, R = 3 = 90° counterclockwise.

To change the center of the blueprint, enable grid size (1x1 is recommended), and set an absolute reference point.

L signal is used to display debug messages (it is necessary to enable the trigger condition in the mod settings). Each activation will display in the chat the location of the triggered deployer, the name of the blueprint and the place where the blueprint is applied (if the offset is not zero) Warning: The chat may omit some of the messages if they are displayed very quickly.


The mod also adds a Resource Scanner that can help detect places to build.

Resource Scanner


Or check what is already built.

Resource Scanner2


The scanner can display the number of different categories of objects. Some categories are indistinguishable in display, such as constructed buildings and their ghosts. Filters can separate categories from each other. The filter number is a bit mask of the signals to be displayed. (To display multiple categories, the corresponding numbers must be added together)

1 - Empty. Can be used to trigger a rescan.
2 - Filter: raw resources.
4 - Filter: trees, stones, fish ("Trees/rocks only" option of the deconstruction planner).
8 - Filter: buildings.
16 - Filter: ghosts.
32 - Filter: items on ground.
64 - Counter: uncharted chuncs.
128 - Counter: cliffs.
256 - Counter: artillery targets.
512 - Counter: water tiles.
1024 - Counter: raw resources.
2048 - Counter: buildings.
4096 - Counter: ghosts.
8192 - Counter: items on ground.
16384 - Counter: trees, stones, fish.
32768 - Counter: buildings marked for deconstruction.

Actually, when you select a filter, an interface opens with a bunch of checkboxes that will calculate the number for you. It also works in the opposite direction.

factorio-bad-chest's People

Contributors

davemcw avatar foxlba avatar xorblo-doitus avatar justarandomgeek avatar taori avatar niftymaniac avatar quezler avatar chucksellick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.