Napu's Mod

by Napu

This mod adds a lot of new items, including (but not limited to) mining drills, solar panels, crates, long-handed inserters and ore & metal compression.

Content
9 months ago
0.14 - 2.0
1.46K
Transportation Trains Mining Fluids Manufacturing Power Storage

g Crash with Bob's Power mod

5 months ago

Hi! I'm the dev for Bob's mods. I've received this error report (https://mods.factorio.com/mod/bobpower/discussion/68108f457504eb75de49b459) about a crash when using Bob's Power mod and Napu's Mod.

I had a quick look through your mod's code and I can see what is causing it. There are functions provided by the base game (accumulator_picture, accumulator_charge, accumulator_reflection, accumulator_discharge). This mod overwrites these base game functions with it's own version with an added size parameter. So when Bob's Power mod tries to call these functions, it is unwittingly calling the version added by your mod instead.

Can you please either rename these functions so you're not overwriting the functions provided by the base game. Or alternatively, change your version of these functions so the added size parameter is last. And if it is not provided, give it a default value.

You don't have a link to a GitHub else I would have submitted a PR to fix the issue.

Thanks!
KiwiHawk

New response