Silica & Silicon

by brevven

Adds silica, silicon, and basic fiber optics to the game. Compatible with Space Age including a new plant & production chain on Gleba. A standalone piece of BZ Mods, with graphics by snouz.

Content
8 days ago
1.0 - 2.0
31.9K
Manufacturing

b [Fixed] Error with 2.0.42

a month ago

This error happened after factorio update to 2.0.42: Failed to load mods: bzsilicon/prototypes/basic-crusher.lua:23: attempt to index field 'layers' (a nil value)
stack traceback:
bzsilicon/prototypes/basic-crusher.lua:23: in main chunk
[C]: in function 'require'
bzsilicon/data.lua:8: in main chunk

a month ago

The fix:

Lines 23-36:

graphics.working_visualisations[1].north_animation.scale = graphics.working_visualisations[1].north_animation.scale * 0.5
graphics.working_visualisations[1].east_animation.scale = graphics.working_visualisations[1].east_animation.scale * 0.5
graphics.working_visualisations[1].south_animation.scale = graphics.working_visualisations[1].south_animation.scale * 0.5
graphics.working_visualisations[1].west_animation.scale = graphics.working_visualisations[1].west_animation.scale * 0.5

Lines 52-59:

graphics.working_visualisations[1].north_animation.shift[1] = graphics.working_visualisations[1].north_animation.shift[1] * 0.5
graphics.working_visualisations[1].north_animation.shift[2] = graphics.working_visualisations[1].north_animation.shift[2] * 0.5
graphics.working_visualisations[1].south_animation.shift[1] = graphics.working_visualisations[1].south_animation.shift[1] * 0.5
graphics.working_visualisations[1].south_animation.shift[2] = graphics.working_visualisations[1].south_animation.shift[2] * 0.5
graphics.working_visualisations[1].east_animation.shift[1] = graphics.working_visualisations[1].east_animation.shift[1] * 0.5
graphics.working_visualisations[1].east_animation.shift[2] = graphics.working_visualisations[1].east_animation.shift[2] * 0.5
graphics.working_visualisations[1].west_animation.shift[1] = graphics.working_visualisations[1].west_animation.shift[1] * 0.5
graphics.working_visualisations[1].west_animation.shift[2] = graphics.working_visualisations[1].west_animation.shift[2] * 0.5
a month ago
(updated a month ago)

Think you have a typo in the first set, should be lines 23-26.

a month ago

Yes

a month ago

Thanks for the fix.

a month ago

Getting this error too. Thanks for providing a fix.

a month ago

Thanks for the report and for the suggested fix. I've updated with the fix.

a month ago

bzsilicon 2.0.10 seems to not have fixed the problem

Failed to load mods: bzsilicon/prototypes/basic-crusher.lua:23: attempt to index field '?' (a nil value)
stack traceback:
bzsilicon/prototypes/basic-crusher.lua:23: in main chunk
[C]: in function 'require'
bzsilicon/data.lua:8: in main chunk

a month ago

OK I'll take it back. The error only occurred with 2.0.41, once finally updated to 2.0.42 this is gone

a month ago

That is my fault. I should have updated the compatibility to >= 2.0.42. Should be fine going forwards at least.

New response