Shrinking tile sprites

Place to get help with not working mods / modding interface.
Post Reply
User avatar
PeteTheLich
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Jun 28, 2016 4:06 am
Contact:

Shrinking tile sprites

Post by PeteTheLich »

I cannot for the life of me figure out why these tiles are shrinking

Image

when they are very clearly 32x32

Image

Code: Select all

relevant code from tiles_decals.lua

type = "tile",
      name = "decal1",
      needs_correction = false,
      minable = {hardness = 0.2, mining_time = 0.5, result = "decal1"},
      mined_sound = { filename = "__base__/sound/deconstruct-bricks.ogg" },
      collision_mask = {"ground-tile"},
      walking_speed_modifier = 1.4,
      layer = 61,
      decorative_removal_probability = 0.9,
      variants =
      {
        main =
        {
		  {
            picture = "__More_Floors__/graphics/terrain/other-floor/decal-floor1.png",
            count = 16,
            size = 1,
          },
		  
		  {
            picture = "__More_Floors__/graphics/terrain/other-floor/decal-floor2.png",
            count = 1,
            size = 2,
			probability = 0.39,
          },
		
          {
            picture = "__More_Floors__/graphics/terrain/other-floor/decal-floor4.png",
            count = 1,
            size = 4,
			probability = 0.39,
          }
        },

I made a 512x32 just to be sure it wasnt the count = 1 messing things up

Image


i also tried chaning the sprite for a known working tile and it STILL shrank the file

User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Shrinking tile sprites

Post by Arch666Angel »

Try adding a frame of alpha pixels, like 4 or 8 px on each side.

User avatar
PeteTheLich
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Jun 28, 2016 4:06 am
Contact:

Re: Shrinking tile sprites

Post by PeteTheLich »

Arch666Angel wrote:Try adding a frame of alpha pixels, like 4 or 8 px on each side.
what do you mean?

increase the image size to be something like 36x36px with a border of transparent pixels?

it is only this tile out of the ~50 ive made that has this problem.

here's the dropbox link of all the files + the PSDs

https://www.dropbox.com/sh/ccq23nl9xc95 ... 1Zrua?dl=0

if you want to look.



Edit:
I removed the triangle in the center and left just the concrete background... now it just appears transparent...

Image

this is so weird... It has to be related to that triangle

im also testing this on build 14.21 build 25327, win64 steam



I have no idea what i did. But I restart factorio without more_floors installed saved it
installed the version from the mod portal saved it
installed the dev version and ????

Image

magic?

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Shrinking tile sprites

Post by Nexela »

Try deleting crop-cache.dat next time. This should be fixed with .15


Edit: PS. please rename the subgroup for the colored concretes.

User avatar
PeteTheLich
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Jun 28, 2016 4:06 am
Contact:

Re: Shrinking tile sprites

Post by PeteTheLich »

Nexela wrote:Try deleting crop-cache.dat next time. This should be fixed with .15


Edit: PS. please rename the subgroup for the colored concretes.


where is the crop-cache.dat? is it in the roming factorio folder?

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Shrinking tile sprites

Post by daniel34 »

PeteTheLich wrote:where is the crop-cache.dat? is it in the roming factorio folder?
Yes, in %appdata%\Factorio.
quick links: log file | graphical issues | wiki

User avatar
PeteTheLich
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Jun 28, 2016 4:06 am
Contact:

Re: Shrinking tile sprites

Post by PeteTheLich »

daniel34 wrote:
PeteTheLich wrote:where is the crop-cache.dat? is it in the roming factorio folder?
Yes, in %appdata%\Factorio.
that was some seriously weird bug. I could not fathom why it was randomly ruining that one sprite.

if it happens again ill add it to my exhaustive list of troubleshooting

User avatar
PeteTheLich
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Tue Jun 28, 2016 4:06 am
Contact:

Re: Shrinking tile sprites

Post by PeteTheLich »

Nexela wrote:Try deleting crop-cache.dat next time. This should be fixed with .15
I ran into another weird sprite issue

i checked the crop-cache.dat

it was around 1300kb
I deleted it
loaded up factorio and my sprite issue was fixed and the file was around 700kb

Post Reply

Return to “Modding help”