#How to check if an asset ID is valid and the experience has access to it.

1 messages · Page 1 of 1 (latest)

fluid mantle
#

I have a module script that stores information about nextbots in my game (png images that chase you) and it stores 1 image and 2 sound IDs. It then picks a random item from that table and spawns it. There's the problem, I have no way of knowing if the asset IDs are valid or not unless I play the game and spawn every single nextbot. I know how to check if an asset ID is valid (via script) but how do I check if my game has access to it? I remember there being a way to do this but I completely forgot and every method I have found so far only checks if it's valid, not if I have access to it.

forest horizon
#

a similar process works for the sound—simply make a brick and put the sound id into it. if it doesnt play, you know it doesnt work. if youre iffy, try using an id from the toolbox that works undoubtedly

fluid mantle
forest horizon
#

there is ways to do it via script, but thats simply more complicated, of course. if youre only concerned about the ids functioning or not, then testing them through a script is a bit unnecessary

cunning ploverBOT
#

studio** You are now Level 5! **studio

fluid mantle
#

there are a lot of ids i cant test them all

forest horizon
#

if the id doesnt work on a part, it wont work at all

#

but if you say so bro

fluid mantle
fluid mantle
fluid mantle