Skip to content

Commit 55415cb

Browse files
committed
v1.0.0
1 parent 7cf6c1f commit 55415cb

21 files changed

+303
-344
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"Lua.diagnostics.globals": [
33
"defines",
4-
"game"
4+
"game",
5+
"script",
6+
"global"
57
]
68
}

src/README.md

Lines changed: 12 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,16 @@
1-
# Blueprint Extensions
1+
# Kuxynator's Blueprint Extensions
22

3-
Blueprint Extensions adds a few useful utilities for blueprint placement and management:
3+
*This is a republish of the fabulous mod [Blueprint Extensions](https://mods.factorio.com/mod/BlueprintExtensions).*
44

5-
* **Blueprint Updater:** While holding a prepared blueprint, press `SHIFT + U` to create a Blueprint Updater. Drag
6-
this across your screen like you would to make a blueprint and it will create a new blueprint using the same label and icons as the previous blueprint. Additionally, if the previous blueprint ended with "v.###", the version number will be incremented (this behavior can be changed in settings).
5+
This new version 1.0.0:
6+
- supports Factorio 1.0 and
7+
- contains a fix for the crash on selecting a blueprint book
8+
- repairs blueprint allignment (Num 1..9) (not jet perfect but better as nothing)
9+
- still in development but useable
710

8-
* **Blueprint Snap**: While holding a prepared blueprint, use the numpad (by default) to snap the blueprint to a
9-
specific corner or edge. This is useful if you can't fit a large blueprint entirely on screen and need to make it
10-
align against some existing structure -- i.e. for tiling solar layouts.
11-
12-
* **Blueprint Mirror:** Mirror a blueprint horizontally or vertically. This correctly fixes splitter orientation,
13-
and if [GDIW](https://mods.factorio.com/mod/GDIW) is installed it will also switch fluid recipes to their mirrored
14-
versions.
11+
Based on Blueprint Extensions 0.5.0
12+
Old issues except the above mentioned still exist. I will look what I can do. Suggestions are welcome.
13+
For the original description see [Blueprint Extensions](https://mods.factorio.com/mod/BlueprintExtensions)
1514

16-
* **Wireswap:** Swap circuit wire colors within a blueprint.
17-
18-
* **Rotate:** Rotates a blueprint. This modifies the actual blueprint rather than its in-game placement direction.
19-
This is useful if you have a book of related blueprints and want them all facing the same direction.
20-
21-
* **Landfill:** Adds landfill underneath any entity in the blueprint that cannot be placed on water. This can either
22-
modify the current blueprint or create a (possibly temporary) copy of it, depending on your mod settings.
23-
24-
**Note: Most of these features (except the Blueprint Updater) will modify the blueprint being affected.**
25-
Copies of blueprints that are in your blueprint library (or the game's blueprint library) are unaffected.
26-
27-
## Known Issues
28-
* Blueprint Updaters are tied to the last blueprint you had selected when you created one -- not the blueprint you had
29-
when that specific updater was created. There currently does not exist a way to associate data with a specific
30-
updater and still have it function as a selection tool.
31-
32-
* Blueprint Snap is unable to factor in the rotation setting due to
33-
[modding API limitations](https://forums.factorio.com/viewtopic.php?f=28&t=47087&start=80#p324060). Thus, snapping
34-
to the north edge of a blueprint will snap to the north edge of the blueprint in its native rotation -- not the
35-
current on-screen one. The functionality is still fully usable, it just may require a bit of "Which key do I
36-
actually need to hit" confusion.
37-
38-
* Landfill is new and not thoroughly tested, as evidenced by releases 0.4.0 thru 0.4.5
39-
40-
## Unknown Issues
41-
42-
Found a bug? Please visit the [Issues page](https://github.com/dewiniaid/BlueprintExtensions/issues) to see if it has
43-
already been reported, and report it at that page if not. **The Mod Portal does not notify of new posts on the
44-
discussion page, and messages posted there will likely be ignored.**
45-
46-
47-
## Changelog
48-
49-
### 0.5.0 (2020-01-31)
50-
* **Update for Factorio 0.18**
51-
52-
### 0.4.6 (2020-01-31)
53-
* Fix possible assorted crashes with auto-landfill when adding Blueprint Extensions to an existing save, for real this time.
54-
* Fix accidental very spammy debug logging when auto-landfilling a blueprint.
55-
* Fix crash when starting an in-game tutorial.
56-
57-
### 0.4.5 (2019-04-15)
58-
* Fix yet another possible crash when adding Blueprint Extensions to an existing save.
59-
* Fix issue with diagonal straight rails and rail signals not being landfilled correctly.
60-
61-
### 0.4.4 (2019-04-15)
62-
* Fix crash on adding Blueprint Extensions to an existing save.
63-
* Fix broken changelog formatting.
64-
65-
### 0.4.3 (2019-04-01)
66-
* Fix yet another crash on loading a save that had an old version of Blueprint Extensions (only on some systems)
67-
68-
### 0.4.2 (2019-04-01)
69-
* Fix another crash on loading a save that had an old version of Blueprint Extensions (only on some systems)
70-
71-
### 0.4.1 (2019-04-01)
72-
* Fix a crash when loading a save that had an old version of Blueprint Extensions installed.
73-
74-
### 0.4.0 (2019-04-01)
75-
* New feature: Add landfill to every tile of a blueprint that needs it.
76-
* Removed code that disabled blueprint flipping and mirroring when a competing mod was installed.
77-
* Support Factorio 0.17's new shortcut bar. Adds shortcuts for all operations (except nudge/snap). Shortcuts are enabled whenever a configured blueprint is in your hand.
78-
* Add our own shortcut bar that appears while a blueprint is held to perform all operations (except nudge/snap). Factorio's shortcut bar is pretty limited in size, so this gives you an alternative. Individual buttons can be turned off in mod settings; the entire button bar is hidden if you turn off all buttons.
79-
* Substantially overhauled internal event handling code.
80-
* Lots of code cleanup.
81-
82-
### 0.3.2 (2019-03-02)
83-
* Fix issues (including a possible crash) involving setting up the blueprint mirroring buttons in a new save.
84-
85-
### 0.3.1 (2019-02-26)
86-
* Fix default keybinds for mirroring
87-
* Add blueprint nudging. SHIFT + arrow-on-numpad will 'nudge' a blueprint 1 tile in the selected direction. (Blueprints with rails will be nudged 2 tiles.)
88-
89-
90-
### 0.3.0 (2019-02-26)
91-
* **Update for Factorio 0.17**
92-
* Overhaul buttons for blueprint flipping to a more sane implementation.
93-
94-
### 0.2.5 (2018-10-18)
95-
* If [GDIW](https://mods.factorio.com/mod/GDIW) is installed, mirror recipes when mirroring blueprints.
96-
97-
### 0.2.4 (2018-10-16)
98-
99-
* Fix crash on case-sensitive filesystems (i.e. not Windows). Thanks to Omnifarious for the report.
100-
* Fix a incorrect date in changelog.txt.
101-
102-
### 0.2.3 (2018-10-16)
103-
* Change the default wireswap keybind to `CONTROL + ALT + W`. The previous `SHIFT + W` would inadvertently trigger and
104-
interfere with movement.
105-
106-
### 0.2.2 (2018-10-14)
107-
108-
* When updating a blueprint, the blueprint is now cleared from the cursor (if there's room) while configuring it.
109-
110-
This allows you to change blueprint icons without them all becoming icons of blueprints.
111-
When you finish configuring the blueprint, the blueprint will be moved back to the cursor.
112-
113-
This more closely reflects vanilla blueprint behavior.
114-
115-
* You can now swap wire colors of a blueprint with `SHIFT + W`
116-
117-
* You can now rotate a blueprint with `CONTROL + ALT + R`. Unlike normal rotation, this modifies the actual
118-
blueprint and can be useful if you want to have all the blueprints in a book rotated the same direction.
119-
120-
### 0.2.1 (2018-04-24)
121-
* Actually correctly flip splitters like we said we do. Somehow in optimizing the original code I completely forgot to actually implement this.
122-
123-
### 0.2.0 (2018-04-23)
124-
* Added and reworked the blueprint flipping and turning functionality in the Blueprint Flipper and Turner mod,
125-
including a fix to priority splitters.
126-
* This functionality is disabled if Blueprint Flipper and Turner is enabled to avoid possible conflicts.
127-
* The GUI buttons for flipping blueprints can be disabled in mod settings. Note this has no effect if Blueprint Flipper and Turner is disabled.
128-
* Internal reworking of code to be better organized.
129-
130-
### 0.1.1 (2017-12-17)
131-
132-
* Added blueprint versioning.
133-
* Fixed a crash when trying to blueprint-update an area with no entities or tiles to blueprint in it.
134-
135-
### 0.1.0 (2017-12-17)
136-
137-
* First release, with Blueprint Snap and Blueprint Updater functions.
15+
If anybody has already pullrequest for the orginal mod, or new ideas you can create a new PR at
16+
GitHub: https://github.com/kuxynator/Kux-BlueprintExtensions

src/actions.lua

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
--- Actions for shortcut bar/etc.
22
local actions = {
3-
["BlueprintExtensions_flip-h"] = {
3+
["Kux-BlueprintExtensions_flip-h"] = {
44
icon = 0,
55
key_sequence = "SHIFT + X",
66
order = 'a-a',
7-
visibility_setting = 'BlueprintExtensions_show-mirror',
7+
visibility_setting = 'Kux-BlueprintExtensions_show-mirror',
88
data = 'h',
99
shortcut_style = 'blue',
1010
},
11-
["BlueprintExtensions_flip-v"] = {
11+
["Kux-BlueprintExtensions_flip-v"] = {
1212
icon = 1,
1313
key_sequence = "SHIFT + V",
1414
order = 'a-b',
15-
visibility_setting = 'BlueprintExtensions_show-mirror',
15+
visibility_setting = 'Kux-BlueprintExtensions_show-mirror',
1616
data = 'v',
1717
shortcut_style = 'blue',
1818
},
19-
["BlueprintExtensions_rotate-clockwise"] = {
19+
["Kux-BlueprintExtensions_rotate-clockwise"] = {
2020
icon = 2,
2121
key_sequence = "CONTROL + ALT + R",
2222
order = 'a-c',
23-
visibility_setting = 'BlueprintExtensions_show-rotate',
23+
visibility_setting = 'Kux-BlueprintExtensions_show-rotate',
2424
data = false,
2525
shortcut_style = 'blue',
2626
},
27-
["BlueprintExtensions_clone-blueprint"] = {
27+
["Kux-BlueprintExtensions_clone-blueprint"] = {
2828
icon = 3,
2929
key_sequence = "SHIFT + U",
3030
order = 'c-a',
31-
visibility_setting = 'BlueprintExtensions_show-clone',
31+
visibility_setting = 'Kux-BlueprintExtensions_show-clone',
3232
shortcut_style = 'green',
3333
},
34-
["BlueprintExtensions_wireswap"] = {
34+
["Kux-BlueprintExtensions_wireswap"] = {
3535
icon = 4,
3636
key_sequence = "CONTROL + ALT + W",
3737
order = 'c-b',
38-
visibility_setting = 'BlueprintExtensions_show-wireswap',
38+
visibility_setting = 'Kux-BlueprintExtensions_show-wireswap',
3939
shortcut_style = 'blue',
4040
},
41-
["BlueprintExtensions_landfill"] = {
41+
["Kux-BlueprintExtensions_landfill"] = {
4242
icon = 5,
4343
key_sequence = "CONTROL + ALT + L",
4444
order = 'c-c',
45-
visibility_setting = 'BlueprintExtensions_show-landfill',
45+
visibility_setting = 'Kux-BlueprintExtensions_show-landfill',
4646
shortcut_style = 'blue',
4747
},
48-
["BlueprintExtensions_snap-center"] = {
48+
["Kux-BlueprintExtensions_snap-center"] = {
4949
key_sequence = "PAD 5",
5050
order = 'f-a',
5151
data = 'center',
@@ -66,20 +66,20 @@ for ix, t in pairs({
6666
local d = t[1]
6767
local key = t[2]
6868

69-
actions["BlueprintExtensions_snap-" .. d] = {
69+
actions["Kux-BlueprintExtensions_snap-" .. d] = {
7070
key_sequence = "PAD " .. key,
7171
order = 'd-' .. ix,
7272
data = d,
7373
}
7474

75-
actions["BlueprintExtensions_nudge-" .. d] = {
75+
actions["Kux-BlueprintExtensions_nudge-" .. d] = {
7676
key_sequence = "CONTROL + PAD " .. key,
7777
order = 'e-' .. ix,
7878
data = d,
7979
}
8080
end
8181

82-
actions["BlueprintExtensions_snap-center"] = {
82+
actions["Kux-BlueprintExtensions_snap-center"] = {
8383
key_sequence = "PAD 5",
8484
order = 'f-a',
8585
data = 'center',

src/changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---------------------------------------------------------------------------------------------------
22
Version: 1.0.0
3-
Date: 2020-10-21
3+
Date: 2020-10-22
44
Bugfixes:
55
- FIX crash on selecting a blueprint book
6+
- FIX blueprint allignment
67
Info:
78
- First release
89
- Republish of BlueprintExtensions v0.5.0

0 commit comments

Comments
 (0)