Page 1 of 1

Shrinking tile sprites

Posted: Wed Feb 01, 2017 1:24 am
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

Re: Shrinking tile sprites

Posted: Wed Feb 01, 2017 1:29 am
by Arch666Angel
Try adding a frame of alpha pixels, like 4 or 8 px on each side.

Re: Shrinking tile sprites

Posted: Wed Feb 01, 2017 1:41 am
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?

Re: Shrinking tile sprites

Posted: Wed Feb 01, 2017 6:05 am
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.

Re: Shrinking tile sprites

Posted: Wed Feb 01, 2017 3:21 pm
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?

Re: Shrinking tile sprites

Posted: Wed Feb 01, 2017 3:28 pm
by daniel34
PeteTheLich wrote:where is the crop-cache.dat? is it in the roming factorio folder?
Yes, in %appdata%\Factorio.

Re: Shrinking tile sprites

Posted: Wed Feb 01, 2017 3:31 pm
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

Re: Shrinking tile sprites

Posted: Thu Feb 02, 2017 1:25 am
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