replaces player names with randomized name#340
Conversation
Sync latest commits
|
This PR is my first change of code in the game. ... |
|
I've had a few people debug it, but more are needed. |
|
Since I’m using localStorage, I understand that a bug can occur when playing the game in multiple tabs of the same browser. |
|
Players call each other out like 'GG' in discord with screenshot of game. Or a youtuber says "[player name] is good" in their vid. Etc. Is there a way for recognizability to still be possible? A user knowing their random name for example, by assigning them the same name each time? Or some other unique identifier. I may be totally wrong here and misinterpreting this PR, in that case sorry |
Yeah so each player each game will see their own randomized set of player names on their own screen. I could see it have an effect on player engagement, not being able to recognize eachother. While i also see the positives in no offensive names. Not one of the developers though (yet) and this may have already been discussed with Evan, so just my two cents. (There's work being done on a discord login, which could be tied to a saved random name that stays with a player longer but i don't know. And you cannot force login or discord account maybe. Also there's work on clans with tags which may interfere.) |
|
If a team mode is implemented, should we put in a process to remove the random when the same team is used? |
|
Good idea and i like seeing who is bot or player by underlined/bold name. Also, maybe let player toggle random names on or off? A streamer not wanting to show offensive names, toggles random names on. A player sitting home alone and not really caring what they see, toggles random names off. Then you still have the 'recognizability issue' (if it even is the issue i make of it) but user has a choice at least. But offensive names may still end up in screenshots shared and damage OpenFront rep. Or, again, some way to do this but server side to keep track and assign the same random name to each player as much as possible. And show the player what name is displayed at others' screens. Or only offensive names are randomized so only they suffer from not being recognizable, but that's basically what's already being done and hard to filter everything out. |
|
Right now, I’m using randomized bot-style names to hide player identities. |
|
Instead of using Math.random, hash the name using simpleHash() function (should be in Util.ts) and use the hash to get a random name. Having repeatable names is important, especially when replaying games. |
|
Instead of putting in the top left, why not include it in the settings? |
icslucas
left a comment
There was a problem hiding this comment.
Everything looks good, works in game and no bugs where found.
|
I’ve updated everything except the part that fetches the username from local storage. |
|
I’ve addressed all the comments—either by making changes or replying to them. |
|
Is this off by default? |
ofc, this is off by default |
@Aotumuri, you should also click the 'resolve' button. If there are any unresolved when Evan approves it, it won't merge. Even after approving them again, Evan will have to come back to specifically merge it. A couple PRs from early march never got merged, despite being approved, I think because of this. |
|
@evanpelle I fixed |
|
thanks! |
This PR replaces player names with randomized name The goal is to reduce exposure to inappropriate or offensive names. Additionally, content creators no longer need to worry about displaying other players’ usernames. <img width="1276" alt="スクリーンショット 2025-03-25 23 03 37" src="https://github.com/user-attachments/assets/3d396bb0-336f-41a0-8d56-ff5229fe05f8" /> <img width="1048" alt="スクリーンショット 2025-03-25 23 03 48" src="https://github.com/user-attachments/assets/a72711cf-9743-4879-8f2f-b8187b10a272" /> Use the upper left button (Ninja) to change settings. <img width="1173" alt="スクリーンショット 2025-03-25 23 04 03" src="https://github.com/user-attachments/assets/2d2fcbbd-7342-40b0-97c1-ecc184e5fbb6" /> Fixes #489 --------- Co-authored-by: evanpelle <evanpelle@gmail.com>









This PR replaces player names with randomized name



The goal is to reduce exposure to inappropriate or offensive names.
Additionally, content creators no longer need to worry about displaying other players’ usernames.
Use the upper left button (Ninja) to change settings.
Fixes #489