Patches item #745567, was opened at 2003-05-29 17:30
Message generated for change (Comment added) made by larsl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=303248&aid=745567&group_id=3248
Category: BZFlag
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Luthman (larsl)
Assigned to: Lars Luthman (larsl)
Summary: bzadmin: Curses-based text client
Initial Comment:
Not actually a patch, but a tarball.
This is a simple text client for BZFlag. It allows a server admin to
connect to a server, see what people are saying, and use the
normal server commands.
What you need:
* a normal Linux build environment (g++, make etc)
* the ncurses library (might work with other curses too, but
maybe not)
* the BZFlag source code
If you haven't already done so, build BZFlag from source.
bzadmin needs some of the static libraries and object files that are
generated in the build process.
Then, go to the bzadmin directory and type
'make BZDIR=<BZFlag source dir>'.
For example, I use the command
'make BZDIR=/home/ll/src/cvs/bzflag'. Another way is to set
the environment variable BZDIR to your BZFlag source directory
and just type 'make'.
Use the command 'bzadmin <SERVER> <PORT>' to connect to
your server. The PORT parameter is optional and the default
value is 5155.
So if you want to connect to your server on port 5155 on this
computer you could type 'bzadmin localhost'. bzadmin will then
ask for your name, which will be used as your callsign on the
server. bzadmin always connects as an observer, so if you
enter a callsign that doesn't start with '@' it will be added
automatically.
This is just a quick hack and there are probably lots of bugs. If
you find one, send an email to larsl@....
This probably should be integrated in the bzflag source directory,
but since it uses code from src/bzflag that will have to wait until
we restructure the client code (a new static client library with
code that can be used by bzflag, bzadmin, and bot programs,
or something similar). Until then, I will post new versions as new
files for this patch.
----------------------------------------------------------------------
>Comment By: Lars Luthman (larsl)
Date: 2003-07-01 01:13
Message:
Logged In: YES
user_id=60497
This version has some changes that makes
it possible to build bzadmins for both the old
protocol (1.7e) and the new one. To build the
client for the old protocol (called bzadmin17),
use this command:
make BZDIR=<my BZFlag-1.7g2 source dir> bzadmin17
To build the version for the new protocol, use
the same command as earlier.
The changes in the last version (non-interactive
mode, Ctrl-U to clear the input line) are in
bzadmin17 too, and the ban and kick command
generation using F6 and F5 has been activated
again, but only in the version for the old protocol.
----------------------------------------------------------------------
Comment By: Lars Luthman (larsl)
Date: 2003-06-30 01:22
Message:
Logged In: YES
user_id=60497
New version, this one has a non-interactive mode
to send commands to a server from a script, a way
to clear the input line in the curses interface
(use Ctrl-U), and a fix for a bug that would crash
bzadmin if you hit a certain key (which one?). Also
some changes to sync bzadmin with the current
message format.
The changes that are independent of the network
protocol will be added to the old bzadmin for 1.7
servers later.
----------------------------------------------------------------------
Comment By: Lars Luthman (larsl)
Date: 2003-06-27 21:11
Message:
Logged In: YES
user_id=60497
Here is a bzadmin that will work with the 1.9 server in CVS
(2003-06-27). F5 and F6 no longer generates kick/ban commands since
the player IPs aren't sent to every client now.
----------------------------------------------------------------------
Comment By: Lars Luthman (larsl)
Date: 2003-06-04 17:58
Message:
Logged In: YES
user_id=60497
Some more changes - a /quit command, tab completion of player names
and commands, command history (use the up and down arrow keys),
specify callsign on the command line instead of on stdin.
----------------------------------------------------------------------
Comment By: Lars Luthman (larsl)
Date: 2003-05-29 21:11
Message:
Logged In: YES
user_id=60497
Some changes - you can now use left and right arrow keys to choose
a "target", which can be one of the players or "all". When the target is
a player you can write private messages to that player, and hitting F5
will generate a kick command for that player ("/kick <TARGET>") and
F6 generates a ban command ("/ban <TARGETIP>").
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=303248&aid=745567&group_id=3248
|