From mboxrd@z Thu Jan 1 00:00:00 1970 From: shebs@sourceware.cygnus.com To: xconq-cvs@sourceware.cygnus.com Subject: xconq ./ChangeLog kernel/cmdline.c kernel/conq ... Date: Sun, 03 Sep 2000 15:46:00 -0000 Message-id: <20000903224602.5774.qmail@sourceware.cygnus.com> X-SW-Source: 2000/msg00433.html List-Id: CVSROOT: /cvs/xconq Module name: xconq Changes by: shebs@sourceware.cygnus.com 2000-09-03 15:46:02 Modified files: . : ChangeLog kernel : cmdline.c conq.h init.c side.c socket.c tp.c tp.h tcltk : tkconq.tcl tkmain.c tkinit.c x11 : xconq.c Log message: General overhaul and cleanup of networking support, including fixed command-line -host/-join handling and ability to load a module directly instead of sending across the net. * cmdline.c (game_chosen): Remove, no longer used. (parse_command_line): Name -h players as "?@" instead of "x@", remove warning messages. (set_players_from_options): Update remote programs with info about players. * init.c, conq.h (start_game_load_stage, start_variant_setup_stage, start_player_pre_setup_stage, start_player_setup_stage, start_game_ready_stage): New functions, control over game setup stages. * side.c: Add a couple comments. * socket.c (wait_for): Comment out excessive output. * tp.c (add_remote_players): Fill in existing players named "?" before creating new players. (net_update_player): New function. (download_game_module): Add case to download module name only. (broadcast_start_variant_setup, broadcast_start_player_setup): New functions. (send_packet): Change timeout warning to a notice. (receive_data): Dump no-op loop counts once/second only. (receive_packet): Handle new stage start packets. (receive_game_checksum): Notify instead of warn about checksum failures. (receive_assignment_setting): Handle player spec packet. * tp.h: Declare new functions. * tkconq.tcl (master_rid): New global, use everywhere instead of assuming master's rid is 1. (set_variant): Change stage only if master. (update_player_entry, update_allplayer_buttons): Don't run if no dialog. (popup_chat): Handle mid-game first-time popup correctly. * tkinit.c: (init_ui): Handle repeated calls. * tkmain.c (TclCmdFn): New function typedef, use for all tcl commands. (tcl_cmd): New function. (initial_ui_init): Use to set up all generic tcl commands. (tk_start_player_setup_stage): New tcl command. (add_remote_locally): Set master_rid. (launch_game_2): Merge into launch_game. * xconq.c (main): Reorganize to handle command-line and interactive setup more uniformly.