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

b [Fixed] Error with 2.0.42

6 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

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

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

6 months ago

Yes

5 months ago

Thanks for the fix.

5 months ago

Getting this error too. Thanks for providing a fix.

5 months ago

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

5 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

5 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

5 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