Bluebuild

by Mylon

Allows blueprints to be used much earlier. Once a blueprint is placed, nearby entities will be auto-placed at 5/second so long as you have the objects in inventory and are standing still. Once items are marked for deconstruction, they will be auto-removed and put into inventory so long as you are standing still. Press b to toggle building, press n to toggle demolishing.

Utilities
3 years ago
0.14 - 1.1
6.16K
Blueprints

g Issue with space exploration mod

1 year, 11 months ago

Bluebuild causes a game freeze when looking at (non-nauvis) surface in nav mode.

Reproduction steps:
1: have the bluebuild mod installed.
2: open up new world, launch some satellites.
3: look at a surface other than nauvis using nav mode.
4: experience infinitesimal ups.

1 year, 11 months ago

I've got a fix!

In control.lua, line 89:

local areaList = ...

... uses builder.reach_distance, which is 2**32 while in SE's nav mode, and this hangs the call to builder.surface.find_entities_filtered.

Other calls to find_entities_filtered (in bluedemo() and blueUpgrade()) first clamp reach_distance to be in the range [1,128]:

local reachDistance = math.max(math.min(builder.reach_distance, 128), 1)

Apply the same clamping in bluebuild(), and it works:

New response