From: fadden@uts.amdahl.com (Andy McFadden)
Newsgroups: rec.games.netrek
Subject: MS-II update (port-1)
Date: 8 Oct 92 23:25:08 GMT
Reply-To: fadden@amdahl.uts.amdahl.com (Andy McFadden)
Organization: Amdahl Corporation, Sunnyvale CA

I finally got around to adding the port-1 stuff.  Here's an example from
port 3522:


Server: rwd4.mach.cs.cmu.edu, port 2592 (CMU.)
Last checked at 16:16:12 (2 minutes ago).

There is a wait queue with 1 person on it.

(Player list not available.)


Server: sturgeon.cs.washington.edu, port 2592 (Now the Tsang server.)
Last checked at 16:09:09 (0 minutes ago).

There is a wait queue with 2 people on it.

(player list from port 2591; may not be 100% accurate)
  Type Rank       Name              Login
F2 DD  (unknown)  sweet             ajlafleu@c00404-346dan.e
F6 DD  (unknown)  nemesis           hyung@uglx.UVic.CA
F7 CA  (unknown)  ecowan            ecowan@draco.unm.edu
F8 CA  (unknown)  oger              oger@137.82.113.65
F9 DD  (unknown)  Dra' axxal        chuong@skule.ecf.toron
Fe CA  (unknown)  ServerBug         andreas@hpcvaaz.cv.hp.c
Ff BB  (unknown)  cerda             cerda@ccwf.cc.utexas.
R0 DD  (unknown)  Lasagna           vondae@134.154.40.3
R1 DD  (unknown)  Billy the Kid     wldearme@c00405-346dan.e
R3 CA  (unknown)  UDie              chuong@skule.ecf.toron
R4 CA  (unknown)  fkanders          fkanders@l_cae04.icaen.u
R5 DD  (unknown)  andre             aschoorl@uglz.UVic.CA
Ra CA  (unknown)  ruggie            ihsu@oneshot.eng.umd
Rb DD  (unknown)  Damaged           pam@donald.cc.utexa
Rd DD  (unknown)  johnlee           johnlee@uglz.UVic.CA


As you can see, it got the player list from sturgeon even though there was a
wait queue.  As an added bonus, if nobody is playing then MS-II won't log on
and wake up the daemon for nothing (it's been doing this all along though...
you can set up a trivial port which says either "No one is playing" or
"Server is in use" if you don't want to do the full player list).


There may be some weirdness.  For a couple of minutes there it was reporting
2x the #of players, so it looked like sturgeon had 28 people on for a while.
Please tell me if you notice other strange stuff.

It wasn't easy deciding how to parse it.  Right now it has hardcoded line
offsets for everything, because it's possible for one of the entries to be
blank (for example, a player's pseudonym is blank when they first sign on).
For now, I assume this exact format:

  Pl: Name             Login       Display          Type Bomb Plan Off. Def.
<>==========================================================================<>
  Oj: HAL              Robot       Nowhere           BB  0.00 0.00 2.20 6.09

It starts scanning for I/F/R/K/O in the 3rd column.  Once it finds it, it
keeps going until it hits something which doesn't match (usually another
line of "<>====").  The statistics at the end aren't used.

Note that this format doesn't include rank, and that it's impossible to
detect players with spaces at the end of their names.  Thus they will not
show up on the 3522 lists in quotes like they usually do.  Because of this,
information from the regular port will overwrite information from port-1.

-- 
fadden@uts.amdahl.com (Andy McFadden)
[ Above opinions are mine, Amdahl has nothing to do with them, etc, etc. ]