Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: More imporved game starting [patch]
Home

[Freeciv-Dev] Re: More imporved game starting [patch]

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <ChrisK@xxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: More imporved game starting [patch]
From: Daniel L Speyer <dspeyer@xxxxxxxxxxx>
Date: Mon, 24 Dec 2001 17:12:31 -0500 (EST)

On Mon, 24 Dec 2001, Christian Knoke wrote:

> On Mon, Dec 24, 2001 at 02:11:14PM -0500, Daniel L Speyer wrote:
> > Here is an improved version of Andreas's patch from back in October to
> > control the server from the client.  This version supports multiple
> > simultaneous games by checking which ports are available.
> 
> throwing core whenever I want to reload a game:

Oh, right.  I fixed that for new game but forgot for load.  Replace the
line argv[4]="    "; with argv[4]=malloc(6*sizeof(char)); in the function 
start_server_load_game.  Alternatively, wait for the next version,
probably tommorrow.

--Daniel Speyer
"May the /src be with you, always"


> 
> --------------
> 2: Unused entries in file /home/chris/.civclientrc:
> 2:   unused entry: client.city_report_cma
> ...
> Trying 5555...
> Trying 5556...
> Returning 5556
> Speicherzugriffsfehler (core dumped)
> 
> (gdb) bt
> #0  0x4037b1a2 in _IO_default_xsputn () from /lib/libc.so.6
> #1  0x4035b026 in vfprintf () from /lib/libc.so.6
> #2  0x403726a3 in vsprintf () from /lib/libc.so.6
> #3  0x40362f47 in sprintf () from /lib/libc.so.6
> #4  0x080805c0 in start_server_load_game (
>     filename=0x824b548 "/home/chris/freeciv/test/civgame-3850m.sav.gz") at 
> connectdlg.c:677
> #5  0x0808063b in filesel_callback (w=0x827ddc0, data=0x825e9a0) at 
> connectdlg.c:692
> #6  0x400e13c3 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
> #7  0x40113268 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
> #8  0x4011263f in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> #9  0x40110597 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> #10 0x4007a9a8 in gtk_button_clicked () from /usr/lib/libgtk-1.2.so.0
> #11 0x4007c011 in gtk_real_button_released () from /usr/lib/libgtk-1.2.so.0
> #12 0x400e13c3 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
> #13 0x401124cf in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> #14 0x40110597 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> #15 0x4007a8d8 in gtk_button_released () from /usr/lib/libgtk-1.2.so.0
> #16 0x4007b958 in gtk_button_button_release () from /usr/lib/libgtk-1.2.so.0
> #17 0x400e0f2f in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
> #18 0x4011267d in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> #19 0x40110597 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> #20 0x401494ec in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
> #21 0x400e0e65 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
> #22 0x400dfeaf in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
> #23 0x40194dd4 in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0
> #24 0x401c6c46 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
> #25 0x401c7273 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
> #26 0x401c743c in g_main_run () from /usr/lib/libglib-1.2.so.0
> #27 0x400df76c in gtk_main () from /usr/lib/libgtk-1.2.so.0
> #28 0x0808c315 in ui_main (argc=3, argv=0xbffff614) at gui_main.c:836
> #29 0x0805f7cc in main (argc=3, argv=0xbffff614) at civclient.c:189
> #30 0x403277ee in __libc_start_main () from /lib/libc.so.6
> -------------
> 
> > 
> > I'm thinking about illiminating the seperate server window, and making the
> > chatline take that functionality (just give the starting user cmdlevel
> > hack).  What do other people think?
> 
> I think we wanted to *replace* the server window with a gui
> (which doesn't mean there is no server window but it is not 
> necessary any more). If this is the first step toward that, ok.
> 
> > 
> > --Daniel Speyer
> > "May the /src be with you, always"
> 
> Christian
> 
> -- 
> * Christian Knoke                           +49 4852 92248 *
> * D-25541 Brunsbuettel                  Wurtleutetweute 49 *
> * * * * * * * * *  Ceterum censeo Microsoft esse dividendum.
> 
> 
> 



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