Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/tools
Date: Thursday March 23, 2000 @ 18:48
Author: cameron
Update of /home/netrek/cvsroot/Vanilla/tools
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv23135
Modified Files:
players.c
Log Message:
add server god's player list, showing full host names, process ids,
lag stuff, in future may include tcp and udp port numbers, local and
peer ip addresses, and whether player is running in udp mode and at
what update rate, but this will require additional data in struct.h
****************************************
Index: Vanilla/tools/players.c
diff -u Vanilla/tools/players.c:1.3 Vanilla/tools/players.c:1.4
--- Vanilla/tools/players.c:1.3 Wed Jun 16 16:19:08 1999
+++ Vanilla/tools/players.c Thu Mar 23 18:48:30 2000
@@ -57,7 +57,7 @@
output("<>=======================================================================<>\n");
switch(mode) {
- case 'l':
+ case 'v':
break;
case 'd':
output(" Pl: Name Type Kills Damage Shields Armies Fuel\n");
@@ -70,6 +70,10 @@
output(" Pl: Rank Name Login Display Type\n");
break;
+ case 'l':
+ output("pid pl avrt stdv in out who\n");
+ break;
+
default:
output(" Pl: Rank Name Login Display Ratings DI\n");
break;
@@ -130,6 +134,31 @@
str(10,players[i].p_login),
str(-24, players[i].p_monitor),
ships[players[i].p_ship.s_type]);
+ free(fixed_name);
+ break;
+ case 'v':
+ fixed_name = name_fix(players[i].p_name);
+ output("%6d %2s "
+#ifdef PING
+ "%4d %4d %3d %3d"
+#endif
+ "%s %s@%s %c",
+ players[i].p_process,
+ players[i].p_mapchars,
+#ifdef PING
+ players[i].p_avrt,
+ players[i].p_stdv,
+ players[i].p_pkls_c_s,
+ players[i].p_pkls_s_c,
+#endif
+ (fixed_name) ? fixed_name : players[i].p_name,
+ players[i].p_login,
+#ifdef FULL_HOSTNAMES
+ players[i].p_full_hostname,
+#else
+ players[i].p_monitor,
+#endif
+ '\n');
free(fixed_name);
break;
default: