In my (currently unreleased) game, Super Mashables, players have the ability to build and save a part under a name of their choosing. This user-inputted name is then used to sort the part in menus like this one:
The name isn’t visible to anyone except the person who wrote it, so would I need to use filtering in this case? I feel like having to filter out something that’s there for convenience of the user would be bad user experience.
This might be off-base, but from watching DevCon, it was my understanding that as long as the player that inputted the text was the only one that would ever read it, you wouldn’t have to filter the text, regardless of whether it gets saved in a DataStore or not. I think it’s just a misconception that you have to always filter text in DataStores since most the time text in a DataStore is seen by other people.
You do not need to filter it in the datastore, but when you retrieve the text you need to filter it before showing it to the player that wrote it.
The reason for this is roblox tracks text the client types for that play season. When the player rejoins and you redisplay the text via datastores roblox doesn’t have it tracked that the client typed that and will think your game isn’t using proper filtering methods and flag it.
There should be function which would filter string as broadcast like for 13+ players (If I am right the current broadcast filters to prevent inappropriate content from 13- players).
No. The developer doesn’t know the age of the user, so that would be counterintuitive
The tl;dr is to not use FilterForBroadcast unless you actually have to - instead use FilterStringAsync and send it to each client individually where possible.
What do you mean? I’m talking about creating a filter function which would filter the string for the broadcast on the 13+ y/o people rules (to prevent people from sharing phone numbers etc…)
Let’s say the dev is 13+ y/o and wants to collect the game feedback which will be visible only for himself… What might he do? Use normal filterforbroadcast and see 9/10 of the words hashtagged? Pretty stupid, isnt it? Second way… Do not use filter at all and make his game moderated cuz childs give phone numbers in feedback? I dont think so… So what might he do then?