-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Krastorio compatibility and bugfix (#20)
* Nico's code improvements Make fluid direction finding code more compact and readable. * Further improve pipe building logic * Fixed pipes not building correctly to rectangular neighbors by detecting adjacent edges. * Fixed pipes being build in a grid if connector is offset. Will now build an L-shape if the miner's connector is offset in both X and Y. * Added more debug messages about pipes. * Whitespace * Add settings to specify what pipes to use - Add setting for what pipe to replace fluid-using miners with. - Add second setting for what pipe to use in space zones. - Validate that settings specify an existing pipe entity names after setting is changed, mods are changed, and when deconstructions are ordered. * Version 0.3.1 + Compatibility: - Added mod settings to customize what pipe is used when replacing miners (i.e. kr-steel-pipe). Bugfixes: - Fixed crashes when Editor Extensions "instant deconstruction" is enabled.
- Loading branch information
Showing
7 changed files
with
99 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
autodeconstruct-err-generic=[autodeconstruct] Error: __1__ | ||
autodeconstruct-err-specific=[autodeconstruct|__1__] Error: __2__ | ||
autodeconstruct-err-pipe-name=[autodeconstruct] Error: Invalid setting. Cannot find pipe with name "__1__". | ||
|
||
autodeconstruct-notify=[autodeconstruct] Notify: __1__ | ||
autodeconstruct-debug=[autodeconstruct.__1__] Debug: __2__ | ||
|
||
[mod-setting-name] | ||
autodeconstruct-remove-target=Also mark output chests for deconstruction | ||
autodeconstruct-remove-fluid-drills=Also remove drills that are using fluids | ||
autodeconstruct-build-pipes=Create pipes when removing drills that are using fluids | ||
autodeconstruct-build-pipes=Create pipes when removing drills that are using fluids | ||
autodeconstruct-pipe-name=Type of pipe to build when removing drills | ||
autodeconstruct-space-pipe-name=Type of pipe to build when removing drills in space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Unhide space pipe setting if space-exploration is loaded | ||
if mods["space-exploration"] then | ||
data.raw["string-setting"]["autodeconstruct-space-pipe-name"].hidden = false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters