Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How do you keep profanity out of highscore boards?  (Read 734 times)
0 Members and 1 Guest are viewing this topic.
Offline Jacob Pickens
« Posted 2014-05-15 00:19:53 »

We all know about dem trolls! How do we keep them from getting under our highscore board bridge?
Offline Agro
« Reply #1 - Posted 2014-05-15 00:20:27 »

prevent them from cheating in your game

Offline Jacob Pickens
« Reply #2 - Posted 2014-05-15 00:21:45 »

Im talking about Highscore board names. We all know that your real initials aren't ASS. Tongue
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline BurntPizza
« Reply #3 - Posted 2014-05-15 00:26:42 »

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).
Offline Jacob Pickens
« Reply #4 - Posted 2014-05-15 00:28:14 »

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?
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #5 - Posted 2014-05-15 01:29:52 »

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".

Offline Rayvolution

JGO Kernel


Medals: 191
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #6 - Posted 2014-05-15 03:26:50 »

you really need to focus more on game development and less on random what if scenarios. Wink

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! Cheesy Figure out the public relations side of the house later, when it's a potential issue.

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline delt0r

JGO Knight


Medals: 27
Exp: 18 years


Computers can do that?


« Reply #7 - Posted 2014-05-15 08:18:40 »

Also you can't stop it. You can only police it. Oh and what languages are you supporting Cheesy. 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.

I have no special talents. I am only passionately curious.--Albert Einstein
Online princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #8 - Posted 2014-05-15 08:42:27 »

Like this:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
      private static final String[] BAD_WORDS3 = {"f**k", "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 "f**k".

Cas Smiley

Online princec

JGO Kernel


Medals: 369
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2014-05-15 08:43:04 »

Heh, can't say f**k but I can say cunt all I like  Pointing

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 784
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #10 - Posted 2014-05-15 09:54:37 »

I can say fuck, but I can't say c*nt as much as I'd like to Emo

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Oskuro

JGO Knight


Medals: 39
Exp: 6 years


Coding in Style


« Reply #11 - Posted 2014-05-15 12:02:19 »

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.


Offline Drenius
« Reply #12 - Posted 2014-05-15 16:39:54 »

@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. Tongue
<drerail>Actually the ones of my school are. Heard it was fun on an US exchange or something like that.</derail>
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 784
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #13 - Posted 2014-05-15 17:17:19 »

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.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Oskuro

JGO Knight


Medals: 39
Exp: 6 years


Coding in Style


« Reply #14 - Posted 2014-05-16 11:04:39 »

Now you have a social game.

ASS-Wiper?

Pages: [1]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (33 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (40 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (37 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!