turret.base_picture must be optional

Things that already exist in the current mod API
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

turret.base_picture must be optional

Post 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 1316 times
It's possible to make this entity without base picture, just add all graphics to one layer: viewtopic.php?f=25&t=64512
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: turret.base_picture must be optional

Post by DaveMcW »

Code: Select all

data.raw["ammo-turret"]["gun-turret"].base_picture = {
  filename = "__core__/graphics/empty.png",
  width = 0,
  height = 0,
}
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: turret.base_picture must be optional

Post 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.
Post Reply

Return to “Already exists”