Page 1 of 1

electric2x2 fail

Posted: Tue Jul 11, 2017 6:27 pm
by meems
halp

So was trying out the electric2x2 mod,
but it wouldn't load
got this message
Image

when i scouted for electric2x2 file, i found only the zipped version in the mod directory, so i unzipped it so it had its own folder in the mod directory.

makes me wonder, how did factorio even know that it wanted electric_furnance_base.png if it hadn't even unzipped the electric_furnance2x2 mod?
I've been told mods have to be unzipped b4 they work, but here Factorio seems to be getting instructions from the mod regardless.
Its a complete mystery. You mod devs must know many strange secrets about mods.

I also added it to the mod-list.json file, because I think mods are supposed to be registered there.
and tried again.


got same error message
Image

anyone know whats wrong? I find the solutions interesting because they give insight into the mysteries of factorio mod dev.

thanks

Re: electric2x2 fail

Posted: Tue Jul 11, 2017 7:47 pm
by darkfrei
You can get it when this file has 'read-only' attribute.

Please always add the link https://mods.factorio.com/mods/henenzzz ... aces%202x2

Re: electric2x2 fail

Posted: Tue Jul 11, 2017 8:23 pm
by meems
Hi darkfrei,
>You can get it when this file has 'read-only' attribute.

I tried setting the read only attribute to True on file Properties for the electric-furnace-base.png file in the "electric furnaces 2x2_0.0.2" directory. It didn't change the error message on loading Factorio
Image

What was the idea behind setting the read only attribute?

Re: electric2x2 fail

Posted: Tue Jul 11, 2017 8:35 pm
by evildogbot100
Unzip the mod, go to prototypes folder inside the mod, open entities.lua, change line 52 to this

filename = "__base__/graphics/entity/electric-furnace/electric-furnace-base.png",

Re: electric2x2 fail

Posted: Tue Jul 11, 2017 8:42 pm
by meems
It worked!
thanks evildogbot100

edit:

...except the graphic for the furnace is clunky, its still a 3x3 image, even though the furnace takes up 2x2 squares.

Re: electric2x2 fail

Posted: Wed Jul 12, 2017 7:11 am
by darkfrei
meems wrote:...except the graphic for the furnace is clunky, its still a 3x3 image, even though the furnace takes up 2x2 squares.
You must add scale to pictures, scale = 0.66, but x and y shift must be higher in 1.5 times.

Re: electric2x2 fail

Posted: Thu Jul 13, 2017 6:19 am
by Mooncat
Just want to add something.
I've been told mods have to be unzipped b4 they work
Mods can work zipped or unzipped, as long as the structure is correct (correct folder name + info.json).