My code used to work but stopped working after the update. Basically after getting the “proxy_unloaded” message, I fire off the code that loads the next level and its collection proxy “theme”.
And then I get this error:
ERROR:GAMEOBJECT: The collection 'Candy Land' could not be created since there is already a socket with the same name.
ERROR:GAMEOBJECT: AcquireResources NewCollection RESULT_OUT_OF_RESOURCES
WARNING:RESOURCE: Unable to create resource: /tiled levels/themes/candy/candy.collectionc: OUT_OF_RESOURCES
ERROR:GAMESYS: The collection /tiled levels/themes/candy/candy.collectionc could not be loaded.
I can see “there is already a socket” but I don’t know what to do about this - is there another finalisation event I should be waiting for instead of “proxy_unloaded”?
Adding a timer.delay before I load, works, but that is super hacky - I want to know for sure when I am allowed to load a new proxy.