Page 1 of 1

Ground decal bug

Posted: 11 Sep 2021, 21:32
by CattoStabbo
Hey.

Im working on a plugin, and am new to ground decals. I'm having a problem where this happens when I try to place the decal (see image) :
Șerănești_21-09-11_21.24.18.png



Texture used is 32 pixels wide and 16 pixels high.
Sidewalktexture.png
Sidewalktexture.png (431 Bytes) Viewed 2587 times


Here's the code :

Code: Select all

 
[
  {
    "id": "sidewalkground.unique.id.49CS",
    "title" :"Sidewalk decal",
    "type": "ground",
    "author": "CattoStabbo",
    "level" :1,
    "frames": [
      {"bmp": "sidewalktexture.png"}, 
    ]
  }
]
Ty for your help in advance.

Re: Ground decal bug

Posted: 12 Sep 2021, 03:58
by CommanderABab
So, what exactly is the problem.

Re: Ground decal bug

Posted: 12 Sep 2021, 07:36
by CattoStabbo
Whenever I try to place it down on an area, most tiles do not get covered, like seen in the screenshot.

Re: Ground decal bug

Posted: 12 Sep 2021, 15:14
by CommanderABab
Try putting images in the frames statement like this: :)

Code: Select all

 
[
  {
    "id": "sidewalkground.unique.id.49CS",
    "title" :"Sidewalk decal",
    "type": "ground",
    "author": "CattoStabbo",
    "level" :1,
    "frames": [
      {"bmp": "sidewalktexture.png",
      "bmp": "sidewalktexture.png",
      "bmp": "sidewalktexture.png",
      "bmp": "sidewalktexture.png",
      "bmp": "sidewalktexture.png",
      "bmp": "sidewalktexture.png"
      }, 
    ]
  }
]
The regular ground uses six images in the basic frames statement.

Re: Ground decal bug

Posted: 12 Sep 2021, 22:05
by CattoStabbo
Thanks! It seems to somewhat be fixed. While the bug still shows up, reloading the game seems to fill the gaps in. :/

This fix is still a huge improvement, so ty very much for the help. :bc