Lead

by brevven

Adds lead ore and plates to the base game as an early game resource. Lead is used in ammunition, pipes, batteries and a few other places. Compatible with RSO, Krastorio 2, Space Exploration and other mods. A standalone piece of BZ Mods. With graphics by snouz.

Content
1 year, 3 days ago
1.1
42.9K
Mining Manufacturing

b Failed to load mod "bzlead

1 year, 3 days ago

12.336 Loading mod bzlead 1.2.19 (data-updates.lua)
12.343 Error ModManager.cpp:1625: Failed to load mod "bzlead": bzlead/data-util.lua:557: attempt to index field '?' (a nil value)
stack traceback:
bzlead/data-util.lua:557: in function 'add_product'
bzlead/data-util.lua:548: in function 'add_product'
bzlead/lead-recipe-updates.lua:52: in main chunk
[C]: in function 'require'
bzlead/data-updates.lua:1: in main chunk
12.347 Loading mod core 0.0.0 (data.lua)
12.651 Checksum for core: 466641612
12.760 Error ModManager.cpp:1625: Error in assignID: recipe-category with name 'crafting' does not exist.

I have no idea what could be causing this.

1 year, 3 days ago

Also getting this crash... weird.

1 year, 3 days ago

Same...

1 year, 3 days ago

Same

1 year, 3 days ago

Yes I can confirm this error, looks like in lead-recipe-updates.lua on line 52 after name="lead-ore" you need to add type="item" (so that it looks like {name="lead-ore", type="item", amount=1, probability=0.1} and that will get it to load.

1 year, 3 days ago
(updated 1 year, 3 days ago)

Can't fix and reupload, you need to manualy edit the modfile.

1 year, 3 days ago

Error latest update, help!!!

1 year, 3 days ago

I found a workaround

In the mod settings for bzlead, there is a setting called "Bypass recipes"

in that string field, input (without the quotation marks) "se-scrap-recycling"

That should allow you to load the mod, until there is a more permanent fix

1 year, 3 days ago

Yes I can confirm this error, looks like in lead-recipe-updates.lua on line 52 after name="lead-ore" you need to add type="item" (so that it looks like {name="lead-ore", type="item", amount=1, probability=0.1} and that will get it to load.

Made a Pull request based on your suggestion. I tested it and it does seem to work.

https://github.com/brevven/lead/pull/21

1 year, 3 days ago

Thanks for the reports, and thanks orangedude27 for the fix. I wasn't able to reproduce the error myself, so let me know if it doesn't fix it.

Apologies for this, the code in question was indeed a problem, but had been that way for a couple years, so I'm not sure why it broke with this release. I'll try to check if this could be an issue in other mods. Hopefully not.

1 year, 3 days ago

Hey Brevven,
in my case Fixed.
Thanks folks :)

1 year, 3 days ago

Thanks for the reports, and thanks orangedude27 for the fix. I wasn't able to reproduce the error myself, so let me know if it doesn't fix it.

Apologies for this, the code in question was indeed a problem, but had been that way for a couple of years, so I'm not sure why it broke with this release. I'll try to check if this could be an issue in other mods. Hopefully not.

gotta hate those! thanks for the expedient fix!

New response