Author Topic: Tweak: Format the output from the names / players command  (Read 4427 times)

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Tweak: Format the output from the names / players command
« on: November 05, 2010, 09:16:14 AM »
Format the output from the names / players command.

Now:
Code: [Select]
[22:32:56]  0 ] * newbie(4) (b30)
[22:32:56]  1 (5)] * [OTB]T3RR0R15T (b30)
[22:32:56]  6 ] * newbie986563424 (b30)

Better:
Code: [Select]
[22:32:56]  0 ] * newbie(4)  (Build 30)
[22:32:56]  1 ] * [OTB]T3RR0R15T (Build 30; PlayerID: 5)
[22:32:56]  6 ] * newbie986563424 (Build 30)
« Last Edit: December 18, 2010, 02:18:55 PM by T3RR0R15T »

Gamabunta

  • Committee Member
  • Autococker
  • Posts: 703
Re: Tweak: Sort the output from the names / players command
« Reply #1 on: November 05, 2010, 01:03:37 PM »
Even better:
Code: [Select]
[22:32:56]  0 ] * newbie(4) (Build 30)
[22:32:56]  1 ] * [OTB]T3RR0R15T (Build 30; PlayerID: 5; Names registered: t3rr0r15t, terrorist, rabe, ralf, tryout, onlythebest, clan, boy, girl, rabe85)
[22:32:56]  6 ] * newbie986563424 (Build 30)

idias

  • Autococker
  • Posts: 605
Re: Tweak: Sort the output from the names / players command
« Reply #2 on: November 05, 2010, 01:33:05 PM »
Not a bad a idea, but kinda useless, disagree with gama's idea.

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Tweak: Sort the output from the names / players command
« Reply #3 on: November 05, 2010, 02:14:20 PM »
The idea is not bad, gama. But it could be confusing, if it goes into the next row by almost each player. Than its better to have an own command to see the players profile. Something like "playerinfo <playerid>". Wasn't there a feature vote for such a playerinfo or claninfo command?

Gamabunta

  • Committee Member
  • Autococker
  • Posts: 703
Re: Tweak: Sort the output from the names / players command
« Reply #4 on: November 05, 2010, 02:42:43 PM »
Yes, there was, thus I proposed this to kind of 'remember' that feature.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Tweak: Sort the output from the names / players command
« Reply #5 on: November 15, 2010, 07:09:08 PM »
This doesn't have anything to do with sorting.  I think you mean "format".  The problem with adding all those extra spaces, spelling out words, etc, is that you use nearly twice as much bandwidth.  This has a high probability of causing overflows if there are a number of players on the server (much like the maplist overflow issue).

ic3y

  • Committee Member
  • Autococker
  • Posts: 1398
Re: Tweak: Sort the output from the names / players command
« Reply #6 on: November 15, 2010, 10:44:34 PM »
Code: [Select]
[22:32:56]  0 ] * newbie(4)
[22:32:56]  1 ] * [OTB]T3RR0R15T      (ID 5)
[22:32:56]  6 ] * newbie986563424

Maybe like this and a extra command like

!playerinfos 5

Code: [Select]
[22:32:56]  1 ] * [OTB]T3RR0R15T (Build 30; PlayerID: 5; Names registered: t3rr0r15t, terrorist, rabe, ralf, tryout, onlythebest, clan, boy, girl, rabe85)

rafalluz

  • VM-68
  • Posts: 131
Re: Tweak: Sort the output from the names / players command
« Reply #7 on: November 16, 2010, 07:38:37 AM »
Quote
This doesn't have anything to do with sorting.  I think you mean "format".  The problem with adding all those extra spaces, spelling out words, etc, is that you use nearly twice as much bandwidth.  This has a high probability of causing overflows if there are a number of players on the server (much like the maplist overflow issue).

Can't it be done client-side, after data is received?

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Tweak: Format the output from the names / players command
« Reply #8 on: December 18, 2010, 02:29:53 PM »
I've changed "sort" to "format" in the title of this thread. That's better, right.


To format it on the client side would help and save a little bit bandwidth.

Now, 29 characters: 1 (5)] * [OTB]T3RR0R15T (b30)
New, 23 characters: 1,5,*,[OTB]T3RR0R15T,30

We only need to make sure that a "," (or whatever character will be used to seperate it) in the playername doesn't interrupt the string.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802

abnormal

  • Autococker
  • Posts: 649
Re: Tweak: Format the output from the names / players command
« Reply #10 on: December 28, 2010, 03:21:09 AM »
The idea is not bad, gama. But it could be confusing, if it goes into the next row by almost each player. Than its better to have an own command to see the players profile. Something like "playerinfo <playerid>". Wasn't there a feature vote for such a playerinfo or claninfo command?

+1

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Tweak: Format the output from the names / players command
« Reply #11 on: December 28, 2010, 06:25:08 PM »
I think that kind of thing should be integrated into the scoreboard with a context menu (right click on a player's name, view profile, or something like that).  I think there was a feature vote for context menus on the score board.