electric2x2 fail

Place to get help with not working mods / modding interface.
Post Reply
meems
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Wed Feb 15, 2017 2:02 am
Contact:

electric2x2 fail

Post 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

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: electric2x2 fail

Post 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

meems
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Wed Feb 15, 2017 2:02 am
Contact:

Re: electric2x2 fail

Post 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?

evildogbot100
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Dec 18, 2016 3:02 pm
Contact:

Re: electric2x2 fail

Post 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",

meems
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Wed Feb 15, 2017 2:02 am
Contact:

Re: electric2x2 fail

Post 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.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: electric2x2 fail

Post 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.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1194
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: electric2x2 fail

Post 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).

Post Reply

Return to “Modding help”