How to resolve No Overload of the Function Matches...?

Hi.
I am trying to update some older code with the newer FindCreativeObjectsWithTag and most everything seems ok, except I am getting this error that no overload of the function matches. The program worked fine with the deprecated GetCreativeObjectsWithTag and nothing else has changed in the code except trying to update to the FindCreativeObjectsWithTag. Device_reference is the tag name for the Verse device and my_creative_device inherits from creative_device class, so I am not sure what the issue is. If I revert back to GetCreativeObjectsWithTag everything still works. I was just trying to update it.

Any thoughts appreciated.

FindCreativeObjectsWithTag can only be used in creative_devices or by referencing one like MyDevice.FindCreativeObjectsWithTag()

Currently the most simple way seems to utilize weak_maps and get the session as the key to save a device from a creative_device to later reference in other pieces of code.

This was discused in this thread Verse: FindCreativeObjectsWithTag should be able to function within modules - #33 by Mineblo

1 Like

Thanks for that thread link. I tried doing a direct reference like MyDevice and it clears the error but doesn’t work. I will give the weak_maps approach a try.

1 Like
1 Like

Pretty cool tutorial, nice job thks for the credit at the start too :heart:.

I was thinking about making some simple tutorials for some snippets I might post and wondering if you had any tips/advice to give regarding tutorials (Also I’m mineblo not mineblown lol)