Quick Rows


Generate a blueprint for a row of items with internal padding and rotation.

Utilities
1 year, 9 months ago
1.1
62
Blueprints

b [fixed] Crash for some items

1 year, 9 months ago

Hello, thanks for nice mod.

I tried it (increase/decrease) for iron ores and got the crash (just tests some issues :) )

The mod Quick Rows (0.2.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event quick-rows::qr-increase (ID 356)
Entity is not valid for blueprint: stone
stack traceback:
[C]: in function 'set_blueprint_entities'
quick-rows/control.lua:43: in function 'update'
quick-rows/control.lua:49: in function <quick-rows/control.lua:49>

1 year, 9 months ago

and... found the issue:

near line: quick-rows/control.lua:49
replace from:
if count < 1 or not game.entity_prototypes[name] then return end
to:
if count < 1 or not game.entity_prototypes[name] then return end
local proto = game.entity_prototypes[name]
if proto.flags["not-blueprintable"] then return end
if not proto.flags["player-creation"] then return end

1 year, 9 months ago

thanks, will fix

1 year, 9 months ago

please replace it with not so dumb code :)

1 year, 9 months ago

published. your code was useful, saved me time looking up docs :)

New response