The collection "..." could not be created since there is already a socket with the same name [solved]

Hello, I am trying to create a small platformer game as a college project and while I am attempting to change the collection from any level to the next, I get the above error message as well as the 3 below. Any help at all will be appreciated.

ERROR:GAMEOBJECT: AcquireResources NewCollection RESULT_OUT_OF_RESOURCES
WARNING:RESOURCE: Unable to create resource: /main/collections/level_collections/level_2.collectionc: OUT_OF_RESOURCES
ERROR:GAMESYS: The collection /main/collections/level_collections/level_2.collectionc could not be loaded.

Your project title shows one error “The collection could not be created since there is already a socket with the same name” but in your message you have another “AcquireResources NewCollection RESULT_OUT_OF_RESOURCES”

“The collection could not be created since there is already a socket with the same name”

This error means that you have two collections with the same id and try to load or create them at the same time.

“AcquireResources NewCollection RESULT_OUT_OF_RESOURCES”

This means that some resource, such as game objects, sprites, sounds or similar ran out and you need to increase the max counts in game.project. The log should say which resource you ran out of.

All of my collections have different names and matching proxys so unless it is to do with the fact that each of the collections im trying to load has level_ before the level number i can’t see what issue it would have. Ill see if i can fix the other issue though

The issue regarding the out of resources also can’t be because of lack of resource space as ive just checked and even with 100k max resources, it is still giving me that error.

Can you show the full log?

Remember that it is not the filename but the collection name in the properties panel which matters:

tell me if its something else you need

It shouldnt matter if there are 10 proxys under 1 controller should it?

Check your collections and your proxies. It seems like you are loading level_1 twice or have two collections with the same name.

Ive created a github repo of my “main” folder as i can’t seem to find the issue, if you need anything else to try and figure out the issue, just ask however I’m at a loss for what it could be

I downloaded the project files and did a Search in Files for “level_1”. Every collection has the name “level_1”. Fix that and the problem should go away.

~/Downloads/College_festive_challenge-main/collections/game.collection:
    8    "}\n"
    9    "embedded_components {\n"
   10:   "  id: \"level_1\"\n"
   11    "  type: \"collectionproxy\"\n"
   12:   "  data: \"collection: \\\"/main/collections/level_collections/level_1.collection\\\"\\n"
   13    "\"\n"
   14    "}\n"

~/Downloads/College_festive_challenge-main/collections/level_collections/level_1.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {
    .
   26    "}\n"
   27    "components {\n"
   28:   "  id: \"level_1\"\n"
   29:   "  component: \"/main/collections/level_respawn_scripts/level_1.script\"\n"
   30    "}\n"
   31    "embedded_components {\n"

~/Downloads/College_festive_challenge-main/collections/level_collections/level_2.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {

~/Downloads/College_festive_challenge-main/collections/level_collections/level_3.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {

~/Downloads/College_festive_challenge-main/collections/level_collections/level_4.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {

~/Downloads/College_festive_challenge-main/collections/level_collections/level_5.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {

~/Downloads/College_festive_challenge-main/collections/level_collections/level_6.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {

~/Downloads/College_festive_challenge-main/collections/level_collections/level_7.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {

~/Downloads/College_festive_challenge-main/collections/level_collections/level_8.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {

~/Downloads/College_festive_challenge-main/collections/level_collections/level_9.collection:
    1: name: "level_1"
    2  scale_along_z: 0
    3  embedded_instances {

Ah, that makes sense. I didn’t realize it wouldn’t automatically update when I renamed it and didn’t think to check it. Thanks

The filename and the collection name is not the same thing. The initial name given to a collection will be taken from the filename, but after that it won’t change if you rename the file.

I did the exact same 1 day later and this sorted it!