moloch-- / RootTheBox

A Game of Hackers (CTF Scoreboard & Game Manager)
http://root-the-box.com/
Apache License 2.0
908 stars 292 forks source link

Showing player UTF-8 name in the scoreboard #577

Closed ilovewingchun closed 1 year ago

ilovewingchun commented 1 year ago

By default the scoreboard will show all the player's handle name instead of the defined player name. Admin can manually set the displayed name for the scoreboard. Can we add a feature so that the scoreboard can automatically show all the player's name instead of handle name?

eljeffeg commented 1 year ago

This might be a challenge as it's not actually the user handle that is being displayed, it's the team name. When in individual player mode, what really happens is that you're creating a team of one, so the user becomes the team. The user's handle is copied as the team name. So it's not as simple as if x then handle else real_name.

eljeffeg commented 1 year ago

What we could potentially do is, when it's in player mode, have a setting that sets the team name based on the full name instead of the handle. It would be a bit odd, but would probably work how you want.

ilovewingchun commented 1 year ago

Yes that would work, thanks!

eljeffeg commented 1 year ago

Ok, added a configuration option (have to edit the rootthebox.cfg) for the option player_use_handle. You'll want to set this value to False, which will tell it to use the playername.

ilovewingchun commented 1 year ago

Ok, added a configuration option (have to edit the rootthebox.cfg) for the option player_use_handle. You'll want to set this value to False, which will tell it to use the playername.

Tested and looking good, thank you!