[posila][0.18.18] - Belt animation set for non-transport-belt entities doesn't properly implement layers...? Maybe?...

This subforum contains all the issues which we already resolved.
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 426
Joined: Tue Mar 06, 2018 12:18 am
Contact:

[posila][0.18.18] - Belt animation set for non-transport-belt entities doesn't properly implement layers...? Maybe?...

Post by kirazy »



:|

Using the identical process to set the belt_animation_set property as for transport belts, the loader, loader-1x1, and underground belt entities have the above visual issue.

I assume this holds true for splitters as well, but I haven't gotten that far in my mod yet. Edit 2: Actually, splitters work fine...

For additional weirdness, in that flickering you'll notice splitter graphics...

I have a base layer and a tinted mask layer, e.g.:

Code: Select all

transport_belt_animation_set = {
            animation_set = {
                layers = {
                    -- Base
                    {
                        filename = reskins.bobs.directory.."/graphics/entity/logistics/transport-belt/transport-belt-1-base.png",
                        priority = "extra-high",
                        width = 64,
                        height = 64,
                        frame_count = 16,
                        direction_count = 20,
                        hr_version = {
                            filename = reskins.bobs.directory.."/graphics/entity/logistics/transport-belt/hr-transport-belt-1-base.png",
                            priority = "extra-high",
                            width = 128,
                            height = 128,
                            scale = 0.5,
                            frame_count = 16,
                            direction_count = 20
                        }
                    },
                    -- Mask
                    {
                        filename = reskins.bobs.directory.."/graphics/entity/logistics/transport-belt/transport-belt-1-mask.png",
                        priority = "extra-high",
                        width = 64,
                        height = 64,
                        frame_count = 16,
                        tint = tint,
                        direction_count = 20,
                        hr_version = {
                            filename = reskins.bobs.directory.."/graphics/entity/logistics/transport-belt/hr-transport-belt-1-mask.png",
                            priority = "extra-high",
                            width = 128,
                            height = 128,
                            scale = 0.5,
                            frame_count = 16,
                            tint = tint,
                            direction_count = 20
                        }
                    },
                }                
            }
        }
Which is part of a function that returns one of two sets of tables (since there's two sets of transport belt animation sprite sheets), called and assigned to the entity like so:

Code: Select all

-- Apply belt set
    entity.belt_animation_set = reskins.bobs.transport_belt_animation_set(adjusted_tint, variant)

I've attached the save, log, and the two mods that haven't been published to the mod portal yet.
The main mod is here: https://www.dropbox.com/s/4ccgla8ibhqf4 ... 1.zip?dl=0
I cannot successfully attach it to this post (22.5 MB too much?)

Edit: The reason I think it's a bug, is if I comment out one or the other layer, they work individually:

Attachments
1 - Reskin Series Design Space - Bobs with Mini.zip
(4.4 MiB) Downloaded 131 times
factorio-current.log
(32.38 KiB) Downloaded 129 times
reskins-library_0.18.1.zip
(621.24 KiB) Downloaded 112 times
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 426
Joined: Tue Mar 06, 2018 12:18 am
Contact:

Re: [posila][0.18.18] - Belt animation set for non-transport-belt entities doesn't properly implement layers...? Maybe?.

Post by kirazy »

Found this while searching for something entirely different: viewtopic.php?t=58875

This works, and I don't appear to have the issue between the belt-ends and horizontal as described by Deadlock.
posila
Factorio Staff
Factorio Staff
Posts: 5344
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [posila][0.18.18] - Belt animation set for non-transport-belt entities doesn't properly implement layers...? Maybe?.

Post by posila »

Thanks for the report.
Fixed for 0.18.41
Post Reply

Return to “Resolved Problems and Bugs”