Thread: [htsserver-cvs] CVS update: pyhtsserver/src
Status: Abandoned
Brought to you by:
uh1763
|
From: Uwe H. <uh...@us...> - 2001-09-13 03:12:58
|
Date: Wednesday September 12, 2001 @ 20:12 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv20636/src Modified Files: cmdline.py connections.py htsserver.py log.py players.py protocol.py Log Message: * TODO: Removed resolved items. * docs/htsserver.6: Added file. * src/cmdline.py: Remove cruft. * src/connections.py, src/players.py, src/protocol.py: Remove all those getfoo() and setfoo() functions. They're really just overhead. Simply use the variable directly. * src/htsserver.py: Do not even start the server if we are root or have the group 'root'. Running htsserver as root is strongly discouraged! Do not allow running with a port <= 1024, as this would need root permissions. Check if we have write permissions for the logfile. If not, print an error message and exit. * src/log.py: Catch the IOError exception of write() and flush(). =================================================================== File: cmdline.py Status: Up-to-date Working revision: 1.2 Thu Sep 13 03:12:56 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/cmdline.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: connections.py Status: Up-to-date Working revision: 1.2 Thu Sep 13 03:12:56 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/connections.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: htsserver.py Status: Up-to-date Working revision: 1.2 Thu Sep 13 03:12:56 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/htsserver.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: log.py Status: Up-to-date Working revision: 1.2 Thu Sep 13 03:12:57 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/log.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: players.py Status: Up-to-date Working revision: 1.2 Thu Sep 13 03:12:57 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/players.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.2 Thu Sep 13 03:12:57 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2001-09-13 18:41:36
|
Date: Thursday September 13, 2001 @ 11:41
Author: uh1763
Update of /cvsroot/htsserver/pyhtsserver/src
In directory usw-pr-cvs1:/tmp/cvs-serv4403/src
Modified Files:
cmdline.py misc.py net.py players.py protocol.py
Log Message:
* INSTALL, Makefile, htsserver: Fixed the installation procedure (changed
some paths). Besides, install the manpage in /usr/local/man/man6.
* README: Document the new mailinglist htsserver-users.
* TODO: Updates.
* src/cmdline.py: Removed cruft.
* src/misc.py: Check for OSError *and* IOError. Assing /dev/null to
stdin, stdout and stderr.
* src/net.py: Cosmetic changes. Remove the respective connection when a
player disconnects (via 'quit') from the server.
* src/players.py: Add the flag 'is_admin', which is unused at the moment.
Remove the useless login() and logout() methods.
* src/protocol.py: Lots of fixes.
* addplayer(): Cosmetic changes. Improved locking.
* delplayer(): Better locking. If the player which shall be deleted is
logged in, log him out.
* login(): Check if we are already logged in as any player, and also
check whether anybody else is already logged in as the
player we wanted to log in (shouldn't happen though, except
someone finds out your password). Simplified code.
* logout(): The code was ugly. It's much better + shorter now.
* passwd(): Replace "xxx" with "534", the return code which should be used.
* quit(): If we're logged in, logout. Better locking.
* p(): Prettier output. Do not print the passwords of the players anymore.
This was done for debugging purposes.
* c(): Better locking. Print our playername, if we're logged in.
===================================================================
File: cmdline.py Status: Up-to-date
Working revision: 1.3 Thu Sep 13 18:41:34 2001
Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/cmdline.py,v
Existing Tags:
start (revision: 1.1.1.1)
vendor (branch: 1.1.1)
===================================================================
File: misc.py Status: Up-to-date
Working revision: 1.2 Thu Sep 13 18:41:34 2001
Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/misc.py,v
Existing Tags:
start (revision: 1.1.1.1)
vendor (branch: 1.1.1)
===================================================================
File: net.py Status: Up-to-date
Working revision: 1.2 Thu Sep 13 18:41:34 2001
Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/net.py,v
Existing Tags:
start (revision: 1.1.1.1)
vendor (branch: 1.1.1)
===================================================================
File: players.py Status: Up-to-date
Working revision: 1.3 Thu Sep 13 18:41:34 2001
Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/players.py,v
Existing Tags:
start (revision: 1.1.1.1)
vendor (branch: 1.1.1)
===================================================================
File: protocol.py Status: Up-to-date
Working revision: 1.3 Thu Sep 13 18:41:34 2001
Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v
Existing Tags:
start (revision: 1.1.1.1)
vendor (branch: 1.1.1)
|
|
From: Uwe H. <uh...@us...> - 2001-09-14 23:22:51
|
Date: Friday September 14, 2001 @ 16:22 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv29361/src Modified Files: htsserver.py log.py players.py protocol.py transporters.py Log Message: * src/htsserver.py, log.py: Move the check whether the logfile is given with an absolute path to log.init(), where it belongs to. * src/htsserver.py: The check if we have write permissions to the logfile would fail if the logfile doesn't exist. I completely removed the test, as log.init() already (implicitely) checks whether we can write to the logfile. Index the dict g.towns by ID, not by townname. * src/players.py: Add a 'transporters' attribute. * src/protocol.py: Every new player now gets a random amount of money. Every new player also gets two transporters; each of them is located in a randomly chosen town and has randomly chosen capacity and money. Fix a bug: We need to copy.deepcopy() the players into the 'players' dict, just saying 'g.players[name] = player' will only store a reference to the player, which is not what we want... The 'g' command now displays information about all transporters of each player. It also shows how much money every player has got. * src/transporters.py: Removed the attribute 'id'. The attribute 'goods' is [] per default, now. =================================================================== File: htsserver.py Status: Up-to-date Working revision: 1.3 Fri Sep 14 23:22:49 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/htsserver.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: log.py Status: Up-to-date Working revision: 1.3 Fri Sep 14 23:22:49 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/log.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: players.py Status: Up-to-date Working revision: 1.4 Fri Sep 14 23:22:49 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/players.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.4 Fri Sep 14 23:22:50 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: transporters.py Status: Up-to-date Working revision: 1.2 Fri Sep 14 23:22:50 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/transporters.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2001-09-16 13:07:00
|
Date: Sunday September 16, 2001 @ 6:06 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv11538/src Modified Files: cmdline.py config.py g.py helpstrings.py htsserver.py log.py misc.py net.py protocol.py transporters.py Log Message: * TODO: Removed resolved items. * src/cmdline.py: Check if the port is a number between 1025 and 65535. Check if the argument given to --port is a number at all. Fixed a bug: We must use int() on opt[1], as it's a string but needs to be an integer. * src/config.py: Set the default loglevel to 3 (DEBUG). * src/g.py: Removed cruft. * src/helpstrings.py: Added helpstrings for transporter_drive() and transporter_set_name(). * src/htsserver.py: If loglevel is 0 (NONE) then do not even open/create the logfile. Neither try to write anything in the logfile, of course. * src/log.py: Ensure that log.log is only called with level being either 0, 1, 2 or 3. Bugfix: Log nothing if level == 0. Added cleanup(). * src/misc.py: Simplified daemonize(). Added is_number(). * src/net.py: Most log.log calls now use log.DEBUG, here. * src/protocol.py: Added transporter_drive() and transporter_set_name(). addplayer(): I changed my mind. Index transporters by id, again. logout(): Fixed a bug which would cause locking problems... c(): Display the ID of the transporter, too. * src/transporters.py: Re-added the 'id' attribute. =================================================================== File: cmdline.py Status: Up-to-date Working revision: 1.4 Sun Sep 16 13:06:55 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/cmdline.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: config.py Status: Up-to-date Working revision: 1.2 Sun Sep 16 13:06:55 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/config.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: g.py Status: Up-to-date Working revision: 1.2 Sun Sep 16 13:06:55 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/g.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: helpstrings.py Status: Up-to-date Working revision: 1.2 Sun Sep 16 13:06:56 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/helpstrings.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: htsserver.py Status: Up-to-date Working revision: 1.4 Sun Sep 16 13:06:56 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/htsserver.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: log.py Status: Up-to-date Working revision: 1.4 Sun Sep 16 13:06:56 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/log.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: misc.py Status: Up-to-date Working revision: 1.3 Sun Sep 16 13:06:56 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/misc.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.3 Sun Sep 16 13:06:56 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.5 Sun Sep 16 13:06:57 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: transporters.py Status: Up-to-date Working revision: 1.3 Sun Sep 16 13:06:57 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/transporters.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2001-09-17 13:45:42
|
Date: Monday September 17, 2001 @ 6:45 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv30841/src Modified Files: connections.py helpstrings.py misc.py net.py protocol.py Added Files: servercmds.py Log Message: * src/connections.py: Added the attributes rfile and wfile to Connection. They're used for reading/writing data from/to that connection. * src/helpstrings.py: Documented 'chat'. * src/misc.py: Bugfix in tokenize_line(): Do *not* just cut away any characters other than digits, letters and '_'... * src/net.py: Added send(). * src/protocol.py: Added chat(). This allows any player to send a chat message to a player, to a list of players or to all players who are logged in. * servercmds.py: Added file. Added the server-command 'chat'. =================================================================== File: servercmds.py Status: Up-to-date Working revision: 1.1 Mon Sep 17 13:45:40 2001 Repository revision: 1.1 /cvsroot/htsserver/pyhtsserver/src/servercmds.py,v Existing Tags: No Tags Exist =================================================================== File: connections.py Status: Up-to-date Working revision: 1.3 Mon Sep 17 13:45:38 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/connections.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: helpstrings.py Status: Up-to-date Working revision: 1.3 Mon Sep 17 13:45:38 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/helpstrings.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: misc.py Status: Up-to-date Working revision: 1.4 Mon Sep 17 13:45:39 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/misc.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.4 Mon Sep 17 13:45:39 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.6 Mon Sep 17 13:45:40 2001 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2001-09-17 17:16:03
|
Date: Monday September 17, 2001 @ 10:16 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv24188/src Modified Files: net.py protocol.py servercmds.py Log Message: * TODO: Removed resolved items. Added one item. * src/net.py: Use net.send() everywhere, which will log everything sent. send(): Improved locking. * src/protocol.py: Broadcast 'player_logged_in', 'player_logged_out', 'transporter_arrived' and 'transporter_left'. Fixed a cut'n'paste error. * src/servercmds.py: Added the server-commands 'player_logged_in', 'player_logged_out', 'transporter_arrived' and 'transporter_left'. =================================================================== File: net.py Status: Up-to-date Working revision: 1.5 Mon Sep 17 17:15:56 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.7 Mon Sep 17 17:15:57 2001 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: servercmds.py Status: Up-to-date Working revision: 1.2 Mon Sep 17 17:15:57 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/servercmds.py,v Existing Tags: No Tags Exist |
|
From: Uwe H. <uh...@us...> - 2001-09-20 22:00:22
|
Date: Thursday September 20, 2001 @ 15:00 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv9625/src Modified Files: config.py connections.py misc.py players.py protocol.py servercmds.py Log Message: * src/config.py: Added the config-option 'adminpassword'. * src/connections.py: Added attribute 'is_admin'. * src/misc.py: Added is_valid_playername(), is_valid_transportername() and adminpassword_is_correct(). * src/players.py: Removed attribute 'is_admin'. * src/protocol.py: Added the commands 'adminlogin' and 'adminlogout'. addplayer(): Check if the given playername is valid. delplayer(): Send a 'You are being logged out. Your player will be deleted.' message to the player who will be deleted... transporter_set_name(): Check if the given transportername is valid. quit(): Broadcast the 'player_logged_out' servercommand to everyone, if the player has to be logged out... shutdown(): Only the admin may shutdown the server. * src/servercmds.py: Added the 'shutdown' servercommand. =================================================================== File: config.py Status: Up-to-date Working revision: 1.3 Thu Sep 20 22:00:19 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/config.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: connections.py Status: Up-to-date Working revision: 1.4 Thu Sep 20 22:00:19 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/connections.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: misc.py Status: Up-to-date Working revision: 1.5 Thu Sep 20 22:00:20 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/misc.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: players.py Status: Up-to-date Working revision: 1.5 Thu Sep 20 22:00:20 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/players.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.8 Thu Sep 20 22:00:21 2001 Repository revision: 1.8 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: servercmds.py Status: Up-to-date Working revision: 1.3 Thu Sep 20 22:00:21 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/servercmds.py,v Existing Tags: No Tags Exist |
|
From: Uwe H. <uh...@us...> - 2001-09-24 23:13:46
|
Date: Monday September 24, 2001 @ 16:13 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv26122/src Modified Files: helpstrings.py htsserver.py misc.py net.py protocol.py Log Message: * TODO: Removed resolved items. * src/helpstrings.py: Documented the commands money_t_p and money_p_t. * src/htsserver.py, src/misc.py, src/net.py, src/protocol.py: Change all 'foo = foo + 1' constructs to 'foo += 1' as this is supported by Python 2.0 or better... * src/protocol.py: Implement the commands money_t_p and money_p_t. Small cosmetic change in p(). =================================================================== File: helpstrings.py Status: Up-to-date Working revision: 1.4 Mon Sep 24 23:13:44 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/helpstrings.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: htsserver.py Status: Up-to-date Working revision: 1.5 Mon Sep 24 23:13:44 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/htsserver.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: misc.py Status: Up-to-date Working revision: 1.6 Mon Sep 24 23:13:44 2001 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/misc.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.6 Mon Sep 24 23:13:44 2001 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.9 Mon Sep 24 23:13:45 2001 Repository revision: 1.9 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2001-09-30 20:40:02
|
Date: Sunday September 30, 2001 @ 13:40 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv12704/src Modified Files: g.py htsserver.py net.py protocol.py Log Message: * src/g.py: Added towns_lock. * src/htsserver.py: Create the g.towns_lock lock. * src/net.py: Small safety fix. * src/protocol.py: login(): Better PROTOCOL conformance. Send init data upon every player login. Added send_init_data(). =================================================================== File: g.py Status: Up-to-date Working revision: 1.3 Sun Sep 30 20:39:59 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/g.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: htsserver.py Status: Up-to-date Working revision: 1.6 Sun Sep 30 20:39:59 2001 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/htsserver.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.7 Sun Sep 30 20:39:59 2001 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.10 Sun Sep 30 20:40:01 2001 Repository revision: 1.10 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2001-11-08 14:51:52
|
Date: Thursday November 8, 2001 @ 6:51 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv18090/src Modified Files: helpstrings.py net.py protocol.py towns.py transporters.py Log Message: * README, TODO: Small fixes. * src/helpstrings.py: Added documentation for buy_town_t and sell_t_town. * src/net.py: Improved format of the sent/rcvd log messages. * src/protocol.py: Added buy_town_t (needs some more fixing) and sell_t_town (which is not yet implemented). Moved command_dict to the end of the file. * src/towns.py: Added the Town method 'good'. * src/transporters.py: Added the Transporter methods 'freecapacity' and 'good'. =================================================================== File: helpstrings.py Status: Up-to-date Working revision: 1.5 Thu Nov 8 14:51:50 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/helpstrings.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.8 Thu Nov 8 14:51:50 2001 Repository revision: 1.8 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.11 Thu Nov 8 14:51:51 2001 Repository revision: 1.11 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: towns.py Status: Up-to-date Working revision: 1.2 Thu Nov 8 14:51:51 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/towns.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: transporters.py Status: Up-to-date Working revision: 1.4 Thu Nov 8 14:51:51 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/transporters.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2001-11-13 12:26:51
|
Date: Tuesday November 13, 2001 @ 4:26 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv5043/src Modified Files: cmdline.py config.py connections.py g.py gamedata.py goods.py helpstrings.py log.py misc.py net.py players.py protocol.py servercmds.py towns.py transporters.py Log Message: * src/cmdline.py, src/config.py, src/connections.py, src/g.py, src/gamedata.py, src/goods.py, src/helpstrings.py, src/log.py, src/misc.py, src/net.py, src/players.py, src/protocol.py, src/servercmds.py, src/towns.py, src/transporters.py: Removed '#!/usr/bin/env python2' from all files which are not executed directly. * src/cmdline.py: Removed unused imports. Use g.BUGREPORTS. * src/cmdline.py, src/protocol.py: Replaced usage of is_number() by isdigit(). * src/g.py: Added BUGREPORTS. * src/misc.py: Removed is_number(). =================================================================== File: cmdline.py Status: Up-to-date Working revision: 1.5 Tue Nov 13 12:26:45 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/cmdline.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: config.py Status: Up-to-date Working revision: 1.4 Tue Nov 13 12:26:45 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/config.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: connections.py Status: Up-to-date Working revision: 1.5 Tue Nov 13 12:26:45 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/connections.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: g.py Status: Up-to-date Working revision: 1.4 Tue Nov 13 12:26:45 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/g.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: gamedata.py Status: Up-to-date Working revision: 1.2 Tue Nov 13 12:26:46 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/gamedata.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: goods.py Status: Up-to-date Working revision: 1.2 Tue Nov 13 12:26:46 2001 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/goods.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: helpstrings.py Status: Up-to-date Working revision: 1.6 Tue Nov 13 12:26:46 2001 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/helpstrings.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: log.py Status: Up-to-date Working revision: 1.5 Tue Nov 13 12:26:47 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/log.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: misc.py Status: Up-to-date Working revision: 1.7 Tue Nov 13 12:26:47 2001 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/misc.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.9 Tue Nov 13 12:26:47 2001 Repository revision: 1.9 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: players.py Status: Up-to-date Working revision: 1.6 Tue Nov 13 12:26:47 2001 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/players.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.12 Tue Nov 13 12:26:48 2001 Repository revision: 1.12 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: servercmds.py Status: Up-to-date Working revision: 1.4 Tue Nov 13 12:26:48 2001 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/servercmds.py,v Existing Tags: No Tags Exist =================================================================== File: towns.py Status: Up-to-date Working revision: 1.3 Tue Nov 13 12:26:48 2001 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/towns.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: transporters.py Status: Up-to-date Working revision: 1.5 Tue Nov 13 12:26:49 2001 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/transporters.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2002-02-14 20:03:25
|
Date: Thursday February 14, 2002 @ 12:03 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv6591/src Modified Files: cmdline.py config.py connections.py g.py gamedata.py goods.py helpstrings.py htsserver.py log.py misc.py net.py players.py protocol.py servercmds.py towns.py transporters.py Log Message: * AUTHORS: Small fix. * Makefile, README, docs/htsserver.6, src/cmdline.py, src/config.py, src/connections.py, src/g.py, src/gamedata.py, src/goods.py, src/helpstrings.py, src/htsserver.py, src/log.py, src/misc.py, src/players.py, src/protocol.py, src/servercmds.py, src/towns.py, src/transporters.py: Updated 'Copyright' date to 2002. * docs/htsserver.6, src/helpstrings.py: Fixed typos. * src/cmdline.py: Fixed decription of --loglevel. * src/log.py: Removed useless code. * src/players.py: Made some parts of the code shorter/clearer. =================================================================== File: cmdline.py Status: Up-to-date Working revision: 1.6 Thu Feb 14 20:03:20 2002 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/cmdline.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: config.py Status: Up-to-date Working revision: 1.5 Thu Feb 14 20:03:20 2002 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/config.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: connections.py Status: Up-to-date Working revision: 1.6 Thu Feb 14 20:03:20 2002 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/connections.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: g.py Status: Up-to-date Working revision: 1.5 Thu Feb 14 20:03:20 2002 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/g.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: gamedata.py Status: Up-to-date Working revision: 1.3 Thu Feb 14 20:03:20 2002 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/gamedata.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: goods.py Status: Up-to-date Working revision: 1.3 Thu Feb 14 20:03:20 2002 Repository revision: 1.3 /cvsroot/htsserver/pyhtsserver/src/goods.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: helpstrings.py Status: Up-to-date Working revision: 1.7 Thu Feb 14 20:03:20 2002 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/helpstrings.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: htsserver.py Status: Up-to-date Working revision: 1.7 Thu Feb 14 20:03:21 2002 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/htsserver.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: log.py Status: Up-to-date Working revision: 1.6 Thu Feb 14 20:03:21 2002 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/log.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: misc.py Status: Up-to-date Working revision: 1.8 Thu Feb 14 20:03:21 2002 Repository revision: 1.8 /cvsroot/htsserver/pyhtsserver/src/misc.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.10 Thu Feb 14 20:03:21 2002 Repository revision: 1.10 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: players.py Status: Up-to-date Working revision: 1.7 Thu Feb 14 20:03:21 2002 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/players.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.13 Thu Feb 14 20:03:23 2002 Repository revision: 1.13 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: servercmds.py Status: Up-to-date Working revision: 1.5 Thu Feb 14 20:03:23 2002 Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/servercmds.py,v Existing Tags: No Tags Exist =================================================================== File: towns.py Status: Up-to-date Working revision: 1.4 Thu Feb 14 20:03:23 2002 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/towns.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: transporters.py Status: Up-to-date Working revision: 1.6 Thu Feb 14 20:03:23 2002 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/transporters.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2002-06-07 23:19:13
|
Date: Friday June 7, 2002 @ 16:19 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv29604/src Modified Files: connections.py g.py gamedata.py goods.py helpstrings.py htsserver.py log.py net.py players.py Log Message: * src/connections.py: Smaller changes. Added the class variable 'highest'. Added the methods recv(), send() and close(), which are not completely implemented, yet. * src/g.py: Removed cruft. Email address for bugreports is hts...@li... now. * src/gamedata.py: Removed most content, needs to be re-designed. * src/goods.py: There's a buy_price and sell_price now. Added calculate_buy_price() and calculate_sell_price(). * src/helpstrings.py: Removed lots of strings, as the network protocol needs a major re-design. * src/htsserver.py: Update to use the new classes etc. * src/log.py: Encapsulate all the logging code in the class Log. * src/net.py: Added a preliminary version of the new networking framework. This needs a lot more work. * src/players.py: The class Player is more generic now. There are two subclasses of Player: HumanPlayer and AIPlayer. =================================================================== File: connections.py Status: Up-to-date Working revision: 1.7 Fri Jun 7 23:19:12 2002 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/connections.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: g.py Status: Up-to-date Working revision: 1.6 Fri Jun 7 23:19:12 2002 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/g.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: gamedata.py Status: Up-to-date Working revision: 1.4 Fri Jun 7 23:19:12 2002 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/gamedata.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: goods.py Status: Up-to-date Working revision: 1.4 Fri Jun 7 23:19:12 2002 Repository revision: 1.4 /cvsroot/htsserver/pyhtsserver/src/goods.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: helpstrings.py Status: Up-to-date Working revision: 1.8 Fri Jun 7 23:19:12 2002 Repository revision: 1.8 /cvsroot/htsserver/pyhtsserver/src/helpstrings.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: htsserver.py Status: Up-to-date Working revision: 1.8 Fri Jun 7 23:19:12 2002 Repository revision: 1.8 /cvsroot/htsserver/pyhtsserver/src/htsserver.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: log.py Status: Up-to-date Working revision: 1.7 Fri Jun 7 23:19:12 2002 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/log.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.11 Fri Jun 7 23:19:12 2002 Repository revision: 1.11 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: players.py Status: Up-to-date Working revision: 1.8 Fri Jun 7 23:19:12 2002 Repository revision: 1.8 /cvsroot/htsserver/pyhtsserver/src/players.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2002-06-07 23:25:30
|
Date: Friday June 7, 2002 @ 16:25 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv30988/src Added Files: locations.py tradepartners.py Removed Files: towns.py transporters.py Log Message: * src/locations.py, src/tradepartners.py: Added files. * src/towns.py, src/transporters.py: Removed files. The classes Town and Transporter are in src/tradepartners.py now. =================================================================== File: locations.py Status: Up-to-date Working revision: 1.1 Fri Jun 7 23:25:29 2002 Repository revision: 1.1 /cvsroot/htsserver/pyhtsserver/src/locations.py,v Existing Tags: No Tags Exist =================================================================== File: tradepartners.py Status: Up-to-date Working revision: 1.1 Fri Jun 7 23:25:29 2002 Repository revision: 1.1 /cvsroot/htsserver/pyhtsserver/src/tradepartners.py,v Existing Tags: No Tags Exist =================================================================== File: no file towns.py Status: Up-to-date Working revision: No entry for towns.py Repository revision: 1.5 /cvsroot/htsserver/pyhtsserver/src/Attic/towns.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: no file transporters.py Status: Up-to-date Working revision: No entry for transporters.py Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/Attic/transporters.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) |
|
From: Uwe H. <uh...@us...> - 2002-06-07 23:29:07
|
Date: Friday June 7, 2002 @ 16:29 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv31658/src Modified Files: protocol.py servercmds.py Log Message: * src/protocol.py, src/servercmds.py: Emptied files. These need to be re-designed. =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.14 Fri Jun 7 23:29:07 2002 Repository revision: 1.14 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: servercmds.py Status: Up-to-date Working revision: 1.6 Fri Jun 7 23:29:07 2002 Repository revision: 1.6 /cvsroot/htsserver/pyhtsserver/src/servercmds.py,v Existing Tags: No Tags Exist |
|
From: Uwe H. <uh...@us...> - 2002-06-12 11:26:45
|
Date: Wednesday June 12, 2002 @ 4:26 Author: uh1763 Update of /cvsroot/htsserver/pyhtsserver/src In directory usw-pr-cvs1:/tmp/cvs-serv25597/src Modified Files: connections.py g.py htsserver.py log.py misc.py net.py players.py protocol.py tradepartners.py Added Files: triggers.py Log Message: * docs/PROTOCOL: Commands and arguments are separated by whitespace. Documented a few user commands and server commands. * src/connections.py: Added Connection.all and Connection.maxid. Added Connection.selfdestruct(). Smaller fixes. * src/g.py: Added 'socket'. Removed a few dicts, those are in the respective classes now (Foo.all dicts). * src/htsserver.py: Dop not start the server if the default password is used. Fix logging code. Start the main loop. * src/log.py: Reverted the recent changes (it wasn't a good idea). * src/misc.py: Moved is_valid_playername() to player.py. * src/net.py: Redesign. Added create_socket() and loop(). This needs a lot more work... * src/players.py: Added Player.maxid and Player.all. Smaller fixes. * src/protocol.py: Added a prototype of addplayer(). Doesn't work yet. * src/tradepartners.py: Added TradePartner.maxid and TradePartner.all. * src/triggers.py: Added file. =================================================================== File: triggers.py Status: Up-to-date Working revision: 1.1 Wed Jun 12 11:26:43 2002 Repository revision: 1.1 /cvsroot/htsserver/pyhtsserver/src/triggers.py,v Existing Tags: No Tags Exist =================================================================== File: connections.py Status: Up-to-date Working revision: 1.8 Wed Jun 12 11:26:43 2002 Repository revision: 1.8 /cvsroot/htsserver/pyhtsserver/src/connections.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: g.py Status: Up-to-date Working revision: 1.7 Wed Jun 12 11:26:43 2002 Repository revision: 1.7 /cvsroot/htsserver/pyhtsserver/src/g.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: htsserver.py Status: Up-to-date Working revision: 1.9 Wed Jun 12 11:26:43 2002 Repository revision: 1.9 /cvsroot/htsserver/pyhtsserver/src/htsserver.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: log.py Status: Up-to-date Working revision: 1.8 Wed Jun 12 11:26:43 2002 Repository revision: 1.8 /cvsroot/htsserver/pyhtsserver/src/log.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: misc.py Status: Up-to-date Working revision: 1.9 Wed Jun 12 11:26:43 2002 Repository revision: 1.9 /cvsroot/htsserver/pyhtsserver/src/misc.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: net.py Status: Up-to-date Working revision: 1.12 Wed Jun 12 11:26:43 2002 Repository revision: 1.12 /cvsroot/htsserver/pyhtsserver/src/net.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: players.py Status: Up-to-date Working revision: 1.9 Wed Jun 12 11:26:43 2002 Repository revision: 1.9 /cvsroot/htsserver/pyhtsserver/src/players.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: protocol.py Status: Up-to-date Working revision: 1.15 Wed Jun 12 11:26:43 2002 Repository revision: 1.15 /cvsroot/htsserver/pyhtsserver/src/protocol.py,v Existing Tags: start (revision: 1.1.1.1) vendor (branch: 1.1.1) =================================================================== File: tradepartners.py Status: Up-to-date Working revision: 1.2 Wed Jun 12 11:26:43 2002 Repository revision: 1.2 /cvsroot/htsserver/pyhtsserver/src/tradepartners.py,v Existing Tags: No Tags Exist |