Skip to content

Can't build content pipline when using "Collection of Images"-Tileset with same image several times #984

@Fl0l

Description

@Fl0l

In Tiled i created a tileset with "Collection of Images" and added the same image twice, but with different "Image Rect" properties:

Image

Image

This error is thrown, when building the content:

Processor 'TiledMapTilesetProcessor' had unexpected failure!. System.ArgumentException: An item with the same key has already been added. Key: PATH_TO_CONTENT_DIR\../Grasslands/FDR_Grasslands.png
1>   at MonoGame.Extended.Content.Pipeline.Tiled.TiledMapTilesetProcessor.Process(TiledMapTilesetContentItem contentItem, ContentProcessorContext context)
1>   at Microsoft.Xna.Framework.Content.Pipeline.ContentProcessor`2.Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.Process(Object input, ContentProcessorContext context) in /home/runner/work/MonoGame/MonoGame/MonoGame.Framework.Content.Pipeline/ContentProcessor.cs:line 60
1>   at MonoGame.Framework.Content.Pipeline.Builder.PipelineManager.ProcessContent(PipelineBuildEvent pipelineEvent) in /home/runner/work/MonoGame/MonoGame/MonoGame.Framework.Content.Pipeline/Builder/PipelineManager.cs:line 846

i'm using

MonoGame 3.8.3
MonoGame.Extended 4.1.0
MonoGame.Extended.Content.Pipeline 4.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions