Blueprint aligner

by emlun

Set blueprint grid size and offsets by placing the blueprint in the world.

Utilities
1 year, 6 months ago
1.1
1.89K
Owner:
emlun
Source:
https://github.com/emlun/factorio-blu...
Homepage:
https://github.com/emlun/factorio-blu...
License:
The Unlicense (Public Domain)
Created:
3 years ago
Latest Version:
1.2.0 (1 year, 6 months ago)
Factorio version:
1.1
Downloaded by:
1.89K users

This is a small mod intended to help set blueprint grid size and offsets by drawing the grid and placing the blueprint in the world.

Usage

The mod adds three toolbar shortcuts:

  • Set blueprint grid
    Activate while holding a blueprint, then select the area you would like to be one cell of the blueprint grid. The grid size and offset will be set on the blueprint.

  • Align blueprint entities
    Activate while holding a blueprint with an alignment grid set, then place the blueprint in the world. The entities in the blueprint will be moved within the alignment grid to match the selected location.

  • Set blueprint grid offset
    Activate while holding a blueprint with an alignment grid set, then place the blueprint in the world. The absolute grid offset of the blueprint will be set to match the selected location.

Demo video (v1.0): https://www.youtube.com/watch?v=45pQEFdYXsg

All shortcuts have hotkeys, which can be changed in the control settings.

In addition, while holding a blueprint with absolute alignment you can use Shift + WASD to move the absolute offset. These key bindings can also be changed in the control settings.

The mod will by default print interaction feedback to the console to guide new users. This can be turned off in the mod settings.

Caveats

  • The "Align blueprint entities" and "Set blueprint grid offset" actions will initially set the blueprint to relative grid alignment. If you cancel the alignment by some method other than using the "clear cursor" keyboard shortcut, the previous absolute grid offset will not be restored.

  • Currently only works with blueprints from inventory, not from the library.