We all know about dem trolls! How do we keep them from getting under our highscore board bridge?
prevent them from cheating in your game
Im talking about Highscore board names. We all know that your real initials aren’t ASS.
Have the server do a check on the input, have the client popup a “Please don’t do that.” or similar.
There’s not that many “bad” combinations of 3 letters (+ symbols of course).
Do you know how many ways, a man could type penis as a highscore board name?
EDIT: Though I guess if you limit to initials there isn’t that many ways to use profanity, huh?
No offense, but why is this even a topic? There’s no one way to filter out profanity from a high score board, why would you ever expect there to be? You’ll have to program your own way, which like other people have said would probably consist of checking if the said name is “profanity”.
you really need to focus more on game development and less on random what if scenarios.
You’ve hopped all over the map when it comes to game development since I came to this forum, you have promise, but you keep hopping all over too much and day dreaming about scenarios that don’t exist yet, or probably won’t exist.
Just find a game idea and buckle down and work on it! Figure out the public relations side of the house later, when it’s a potential issue.
Also you can’t stop it. You can only police it. Oh and what languages are you supporting :D. Profanity in other languages is pretty common as well.
Its like piracy. If you get popular enough for it happen. You did something right. Until that point. Don’t worry about it.
Like this:
private static final String[] BAD_WORDS3 = {"fuck", "cunt", "shit"};
//...
final String swearCheck = removeSpaces(score.getName()).toLowerCase();
for (String element : BAD_WORDS3) {
if (swearCheck.contains(element)) {
throw new SQLException("No swearing on the online hiscores table please.");
}
}
though obviously with actual swear words rather than “fuck”.
Cas
Heh, can’t say fuck but I can say cunt all I like :point:
Cas
I can say fuck, but I can’t say c*nt as much as I’d like to :emo:
There’s a reason why games with an online component have that “online interactions not rated” sticker.
As princec said, doing a dictionary check of forbidden words is the way to do it, but apart from the computational and maintenance cost, if you go overboard with the censorship it can be harmful to the experience.
Take, for example, silly situations in many online programs (not only games) where completely safe words are censored (for example, some time back you couldn’t type the word “class” in WoW because it included the word “ass”, so asking someone what character class they were playing was a dirty conversation), while bypassing the filter is trivial for those who want to do so (separating letters, for example).
In the end, it might not be worth the hassle.
@Oskuro: Thats actually a good point. You can’t really stop it anyway, but there is also no important reason for it and it causes problems all the time.
[quote]We all know that your real initials aren’t ASS.
[/quote]
Actually the ones of my school are. Heard it was fun on an US exchange or something like that.
if your game ever gets famous and abused, let the community deal with inappropriate usernames. Once enough people flagged a username, wipe it.
I hear your outcry on who’s going to determine the integrity of the inappropriate username flaggers. Let the community decide who’s on the right path by making flagging public, and have people Like flaggings. Those who are deemed above average trustworthy gain super Likes which gives them the privilege to instant-wipe a username. The community can balance this power by taking coins from those with super Likes, and use them in the ingame exchange for bonus multipliers.
Now you have a social game.
[quote=“Riven,post:14,topic:48845”]
ASS-Wiper?