Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: Improved game starting (version 8)
Home

[Freeciv-Dev] Re: Improved game starting (version 8)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Daniel L Speyer <dspeyer@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Improved game starting (version 8)
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 27 Jan 2002 14:46:01 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Sun, Jan 20, 2002 at 12:51:54AM -0500, Daniel L Speyer wrote:
> Here is yet another version of the improved game starting patch.  The
> server control buttons now send there commands over the network, and there
> is now a checkbox to start the game immediately.  I have also moved the
> extern statement from connectdlg.c to connectdlg.h.

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I./../include -I../../common 
-I../../intl -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include  
-Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations 
-Werror  -g -O2 -Wall -c connectdlg.c
cc1: warnings being treated as errors
connectdlg.c:501: warning: no previous prototype for `remove_server_controls'
connectdlg.c:513: warning: no previous prototype for `savegame_callback'
connectdlg.c:523: warning: no previous prototype for `save_game'
connectdlg.c:542: warning: no previous prototype for `add_server_ctrl_buttons'
connectdlg.c:570: warning: no previous prototype for `chosen_name_callback'
connectdlg.c:611: warning: no previous prototype for `get_player_name'
connectdlg.c:743: warning: no previous prototype for `min_free_port'

Try to build it for the xaw client:

gcc  -g -O2 -Wall  -o civclient  attribute.o citydlg_common.o cityrepdata.o 
civclient.o climisc.o clinet.o control.o goto.o helpdata.o mapview_common.o 
packhand.o options.o tilespec.o gui-xaw/libguiclient.a ../common/libcivcommon.a 
../intl/libintl.a  gui-xaw/libguiclient.a ../common/libcivcommon.a  
-L/usr/X11R6/lib -lXaw -lXpm -lXmu -lXt  -lSM -lICE -lXext -lX11  -lz
civclient.o: In function `set_client_state':
client/civclient.c:551: undefined reference to `popup_main_menu'

Overall I think that the people will just like it very much.

Issues:
 - if I load a file which isn't a savegame there is no feedback
 - if I delete the "select player to be" dialog there is no other open
 window
 - if I select file "foobar" as savefile name it will create a "foobar.gz"
 - there is no error if the game couldn't be saved. Just remove the
 write permissions *evil grin*.
 - in the "new game" dialog: the ok button should have the same size
 as the cancel button
 - I would like the ability to dump the server communication. Best
 would be a file. Enabled by command line option or a DUMP_SERVER_IO
 pre-processor switch.
 - please cleanup the code: indent (or add the spaces by hand), add
 {}, seperate variable declaration from method body, use fc_malloc
 instead of malloc,...)
 - sizeof(char) is by definition 1
 - are you serious about _the thing_ in get_player_name? Use a struct
 which has MAX_NUM_PLAYERS slots.
 - I shudder if I see (I'm broken down from the AI)
+  gtk_widget_destroy(*( ((GtkWidget**)data) +5));
   or 
+  GtkWidget **pass=(GtkWidget**)malloc(7*sizeof(GtkWidget*));

   What is this 5 and what this 7?

 - what about fdopen so that we can use fputs or fprintf instead of
 this ugly write?

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Understanding is a three-edged sword; 
  your side, their side, and the truth."
    -- a well-known Vorlon



[Prev in Thread] Current Thread [Next in Thread]