Powered floor


Flooring that transmits power to adjacent objects

Content
4 years ago
0.15 - 0.18
26
Power

g Creative mode crash

6 years ago

Crash when using creative mode and "instant blueprint" selected (blueprint had no powered floor in it"

Error while running event creative-mode-fix::on_tick (ID 0)
Error while running event PoweredFloor::on_robot_built_tile (ID 47)
PoweredFloor/control.lua:119: attempt to index local 'surface' (a nil value)
stack traceback:
creative-mode-fix/scripts/util.lua:160: in function 'raise_event'
creative-mode-fix/scripts/util.lua:252: in function 'raise_event_for_revived_tile_ghosts'
creative-mode-fix/scripts/util.lua:283: in function 'revive_tile_ghost_and_raise_event'
creative-mode-fix/scripts/cheats.lua:2800: in function 'tick'
creative-mode-fix/scripts/events.lua:177: in function <creative-mode-fix/scripts/events.lua:146>

6 years ago

-- update to fix creative mode issue
-- Event Handler for on_robot_built_tile
--
-- Add the widget
function RobotBuiltTile(event)
-- game.print("RobotBuiltTile")
if(event.robot ~= nil and event.robot.surface ~= nil) then
IncludePoweredWidget(event.tiles, event.robot.surface)
end

end

6 years ago

Thanks! Will release your fix soon.

6 years ago

Just uploaded 0.2.6 with your fix.

New response