Page 1 of 1

I need help for my mod to work

Posted: Tue Sep 25, 2018 2:20 pm
by Grundox
Hello,
When I try to launch the game it tells me "Key -icon_size- not found". All the icons are 32x32 like every icon for an item. So why does it tell me that?
Also can someone please tell me where I learn to make good building entity graphics and animations ( for example like pyanodon has in his mods ).
Thanks in advance for the help

Re: I need help for my mod to work

Posted: Tue Sep 25, 2018 3:09 pm
by darkfrei
Please add mods .zip only.

Try your mod with
https://mods.factorio.com/mods/darkfrei/_IconSize

Re: I need help for my mod to work

Posted: Wed Sep 26, 2018 8:12 am
by bobingabout
every object with an icon must have an icon_size= tag. so if you're using 32x32 size icons, you need to include the "icon_size = 32" tag, it's usually placed directly under the icon= tag.

Also, Factorio mods must be packaged in a .zip file, the game can't read them from .rar files. Plus I can't even open .rar files here, I'm not allowed.

Re: I need help for my mod to work

Posted: Wed Sep 26, 2018 9:48 am
by darkfrei
bobingabout wrote:
Wed Sep 26, 2018 8:12 am
every object with an icon must have an icon_size= tag. so if you're using 32x32 size icons, you need to include the "icon_size = 32" tag, it's usually placed directly under the icon= tag
If you use icon, then you have:

Code: Select all

item.icon = "image_32x32.png"
item.icon_size = 32
What if I use icons with different sizes??

Code: Select all

item.icons= {
    {icon = "image_32x32.png"},
    {icon = "image_64x64.png"},
  }

Re: I need help for my mod to work

Posted: Wed Sep 26, 2018 11:18 am
by bobingabout
darkfrei wrote:
Wed Sep 26, 2018 9:48 am
What if I use icons with different sizes??

Code: Select all

item.icons= {
    {icon = "image_32x32.png"},
    {icon = "image_64x64.png"},
  }
I honestly don't know.