Page 1 of 1

[0.18.8] multilayered sprite not working [img=item-group/...]

Posted: Fri Feb 21, 2020 6:36 pm
by lovely_santa
Hi,

With the recent updates on angels mods, I've added high definition icons on the item groups as shown below:
Capture.PNG
Capture.PNG (403.78 KiB) Viewed 1016 times
The code for this particular one is shown below and here on github.

Code: Select all

  {
    type = "item-group",
    name = "bio-processing-nauvis",
    order = "la[angels]-d[bio-processing]-a[nauvis]",
    inventory_order = "la[angels]-d[bio-processing]-a[nauvis]",
    --icon = "__angelsbioprocessing__/graphics/technology/algae-farm-group.png",
    --icon_size = 64,
    icons = {
      {
        icon = "__angelsbioprocessing__/graphics/technology/algae-farm-tech.png",
        icon_size = 128,
        scale = 0.5
      },
      {
        icon = "__angelsrefining__/graphics/icons/void.png",
        icon_size = 32,
        scale = 64 / 32 * 0.35,
        shift = {20, -20}
      }
    }
  },
  
As you can see, I changed icon to icons where I have a base layer icon (the algae farm) and then a second layer (the void), which puts the angel logo in the top right corner. However, when trying to use the sprite ingame (which is the base game generating this), it doesn't show like in the picture below. The first time I've intentionaly left a space to show the code:
Capture1.PNG
Capture1.PNG (266.39 KiB) Viewed 1016 times
I also noticed this happens exactly the same with any other sprite that uses the void overlay, for example the next group icon:
Capture2.PNG
Capture2.PNG (160.93 KiB) Viewed 1016 times
To easily reproduce: download any of angels mods (for example refining and try with that icon)
Capture3.PNG
Capture3.PNG (156.09 KiB) Viewed 1016 times
This was reported to me over discord, where they have a different list of mods, resulting in other items to appear as overlay:
screenshot.png
screenshot.png (20.19 KiB) Viewed 1016 times
Kind regards
lovely_santa

Re: [0.18.8] multilayered sprite not working [img=item-group/...]

Posted: Fri Feb 21, 2020 6:38 pm
by Bilka
See also: 76913

Re: [0.18.8] multilayered sprite not working [img=item-group/...]

Posted: Sun Feb 23, 2020 8:15 am
by posila
Thanks for the report.
Fixed for 0.18.9
76913