Help= my Tech images aren't working properly.

Place to get help with not working mods / modding interface.
User avatar
firestar246
Inserter
Inserter
Posts: 30
Joined: Sun Feb 19, 2017 11:25 am
Contact:

Help= my Tech images aren't working properly.

Post by firestar246 »

So a couple days ago, I started making a mod. At first, I couldn't figure out how to get my mod to read pictures that weren't in the base game. So whenever I created another icon or tech picture, I'd just put it in the base game graphics folder. Well, I realized this could be a bad idea, because if I wanted to share the mod with friends or such, they wouldn't get the pictures. So I looked around and figured out how to make a graphics folder for my mod. I then transferred all my pictures over to that folder. Now when the tech pictures were in the graphics folder for the base game, the pictures had to be 128x128 in size. When I moved them to my graphics folder, I kept them the same size. But when I played the game to test my mod, the tech pictures were huge and only showed a tiny portion of the picture. I figured out the only way for the game to show the entire tech picture was to shrink them all the way to 32x32, the size of the icon pictures. But now the tech pictures are extremely blurry. I don't understand why they were fine at 128x128 in the base game graphics folder, but as soon as I put them in my mod's folder, it didn't work anymore. Is there a piece of coding I have to add to get it to work?
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.
Bilka
Factorio Staff
Factorio Staff
Posts: 3470
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Help= my Tech images aren't working properly.

Post by Bilka »

icon_size = 128

in your icon definition for the technology
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
firestar246
Inserter
Inserter
Posts: 30
Joined: Sun Feb 19, 2017 11:25 am
Contact:

Re: Help= my Tech images aren't working properly.

Post by firestar246 »

Thanks! It works!
For by grace are ye saved through faith, and that not of yourselves: it is the gift of God: Not of works, lest any man should boast. For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.
Post Reply

Return to “Modding help”