Help needed An item with the same key has already been added

Discussion in 'Scenarios' started by Treeost, Jan 14, 2023.

  1. Treeost

    Treeost Ensign

    Joined:
    Aug 1, 2020
    Messages:
    19
    Likes Received:
    4
    13-23:48:48.452 17_48 -EXC- System.ArgumentException: An item with the same key has already been added. Key: 554

    How do I track this down?
     
    #1
  2. Vermillion

    Vermillion Rear Admiral

    Joined:
    Jul 15, 2018
    Messages:
    3,287
    Likes Received:
    8,959
    Item (minigunDoubleDroneSmall) or Block (OxygenGenerator) 554 is already using that ID number and you've added a custom block/item which is also using that ID. Use an unoccupied ID number.
     
    #2
  3. Treeost

    Treeost Ensign

    Joined:
    Aug 1, 2020
    Messages:
    19
    Likes Received:
    4
    What I thought. I had added Oxygen Generator back into default scenario by removing the comments from it and its template. For some reason started getting this error and could not access a small constructor after being placed. Swapped out the blocks.ecf made changes again but did not touch generator this time and it all works fine.
     
    #3

Share This Page