Page 1 of 1

turret.base_picture must be optional

Posted: Wed Jan 23, 2019 5:42 pm
by darkfrei
Can you please make base image of turret optional?

Code: Select all

data.raw["ammo-turret"]["gun-turret"].base_picture.layers[1].filename = "__base__/graphics/entity/gun-turret/gun-turret-base.png"
2019-01-23 18_40_20-gun-turret.png
2019-01-23 18_40_20-gun-turret.png (20.78 KiB) Viewed 1320 times
It's possible to make this entity without base picture, just add all graphics to one layer: viewtopic.php?f=25&t=64512

Re: turret.base_picture must be optional

Posted: Wed Jan 23, 2019 6:19 pm
by DaveMcW

Code: Select all

data.raw["ammo-turret"]["gun-turret"].base_picture = {
  filename = "__core__/graphics/empty.png",
  width = 0,
  height = 0,
}

Re: turret.base_picture must be optional

Posted: Wed Jan 23, 2019 6:20 pm
by darkfrei
DaveMcW wrote: Wed Jan 23, 2019 6:19 pm

Code: Select all

data.raw["ammo-turret"]["gun-turret"].base_picture = {
  filename = "__core__/graphics/empty.png",
  width = 0,
  height = 0,
}
You are right, it must be optional for all transparent sprites.