Page 1 of 1

Animation overrode by building textures

Posted: 27 Apr 2025, 04:56
by KbSingh_777
Hello. Since I've uploaded my new plugin into Showcase, I've discovered that there is a bug where the building texture overrides the blinking light animation. I noticed because the lights only appears half of them on the top of building. Could you help me please, here's the link to it, TY.


viewtopic.php?t=27399

Edit: Here's also (some of) the source code of plugin.

Code: Select all    Reset

[{"active": true, "type":"waste disposal", "id":"$Atomizer.wepf", "animation":[{"id": "$animationblinkingredlight3x3", "x": 97, "y": -87}, {"id": "$animationblinkingredlight3x3", "x": 81, "y": 9}], "title":"Garbage Atomizer", "text":"Reduces your wastes to an atomic level. Big shout out to SimCity: Cities of Tomorrow. Caution: explodable when damaged", "influence pollution":-250, "influence park":10, "influence waste disposal": 30, "frame":[{"bmp":"G_A.png"}], "width":4, "height":4, "build time":184, "needs road":true, "draw ground":true, "power":-50000, "water":-3000 }]
JSON checker
Check

Re: Animation overrode by building textures

Posted: 27 Apr 2025, 08:56
by FVI
Try removing "x": 97, "y": -87 from the attribute

"animation":[{"id": "$animationblinkingredlight3x3", "x": 97, "y": -87}.

I assume it is possible these coordinates and the ones just beneath enter in conflict with each others

Re: Animation overrode by building textures

Posted: 27 Apr 2025, 11:30
by KbSingh_777
FVI wrote:
27 Apr 2025, 08:56
Try removing "x": 97, "y": -87 from the attribute

"animation":[{"id": "$animationblinkingredlight3x3", "x": 97, "y": -87}.

I assume it is possible these coordinates and the ones just beneath enter in conflict with each others
I beg your pardon. But I don't understand what you mean.
And also, The one on top DOES show and blink, but the other half of its light trails just got override.

Re: Animation overrode by building textures

Posted: 27 Apr 2025, 20:29
by FVI
On your code there is the attribute "animation":[{"id": "$animationblinkingredlight3x3", "x": 97, "y": -87}. In line 5 more precisely

You might try removing the "x": 97, "y": -87 from it. This should change the position of the night animation, not necessarily the right one, but from there it should be easier to orientate

Re: Animation overrode by building textures

Posted: 28 Apr 2025, 02:17
by KbSingh_777
FVI wrote:
27 Apr 2025, 20:29
On your code there is the attribute "animation":[{"id": "$animationblinkingredlight3x3", "x": 97, "y": -87}. In line 5 more precisely

You might try removing the "x": 97, "y": -87 from it. This should change the position of the night animation, not necessarily the right one, but from there it should be easier to orientate
Thanks! I'll try it later.