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
5.55K
Blueprints

b Problem with Reactors and maybe any Mod that does Updates

7 years ago
(updated 7 years ago)

I used bluebuild to deconstruct a Reactor (the mod, by name) that was running and I soft crashed with this message:

2940.154 Error MainLoop.cpp:788: Exception at tick 20152513: Error while running event on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
Reactors/control.lua:318: in function 'update_reactor'
Reactors/control.lua:422: in function <Reactors/control.lua:415>
24665.198 Goodbye

So, I get that the problem here is probably that the update_reactor function doesn't know what to do when you pull the reactor out from under it, and they should decide how to handle that situation, but it occurs to me that this will happen to a lot of mods that interact with your software. If this is what I think it is, any mod that calls a custom timed update could lead to a crash. Don't know what you can about it, but thought I should let you know.

Cheers, let me know if I can help.

7 years ago

Looks entity.destroy() needs to be paired with a manual event call.

Some of my other mods (like concreep) always check if entities are still valid before doing anything. Looks like one of those cases where if one person goofs, everything is fine. If both goof, the world ends!

7 years ago

Updated to 0.7.0 with more events!

New response