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
7 months ago
1.0 - 2.0
33.5K
Manufacturing

b [Fixed] Error with 2.0.42

10 months 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

10 months 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
10 months ago
(updated 10 months ago)

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

10 months ago

Yes

10 months ago

Thanks for the fix.

10 months ago

Getting this error too. Thanks for providing a fix.

10 months ago

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

10 months 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

10 months 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

10 months ago

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

New response