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: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Improved game starting (version 8)
From: Christian Knoke <ChrisK@xxxxxxxx>
Date: Mon, 21 Jan 2002 10:25:54 +0100

On Mon, Jan 21, 2002 at 12:46:46AM -0500, Daniel L Speyer wrote:
> On Sun, 20 Jan 2002, Christian Knoke wrote:
> 
> > On Sun, Jan 20, 2002 at 03:12:17PM -0500, Daniel L Speyer wrote:
> > > On Sun, 20 Jan 2002, Christian Knoke wrote:
> > > 
> > > > This patch (which applied cleanly to current CVS) still hangs
> > > > on each load of a saved game, at the point when I chose a player
> > > > name. The button looks "pressed" and the GUI freezes.
> > > > 
> > > > I'm very uncommon with the use of gdb, but it seems to show me
> > > > that the program hangs in line 597 of connectdlg.c:
> > > > 
> > > > 595       write(stdin_pipe[1],"cmdlevel hack first\n",14);
> > > > 596       c=0;
> > > > 597       while(!read(stdout_pipe[0],&c,1) || c!='>'); /*Wait for 
> > > > responce from the server*/
> > > > 
> > > 
> > > Hmm, I still have no problem, even with the game you supplied.
> > > 
> > > Try replacing line 597 with 
> > > while(!read(stdout_pipe[0],&c,1) || c!='>') fprintf(stderr,"<%c>",c);
> > > and see what gets output.
> > 
> > The output is:
> > !@#$%^<c><m><d><l><e><v><e><l>< ><h><a><c><k>< >
> > 
> > > 
> > > Have you done anything unusual with your server interface?  
> > 
> > No.
> > 
> > > Are you using readline?  
> > 
> > Yes. v.4.2
> > 
> 
> I suspect this is part of the problem.  Readline was a massive pain back
> when I was writing TCL/tk front ends.  Could you try disabling it and
> loading the game?  If that works, I'll see about adding a 'disable
> readline' option to the server.

Civclient hangs at the same spot, printing:
----------
!@#$%^<D><e><f><a><u><l><t>< ><c><o><m><m><a><n><d>< > 
<a><c><c><e><s><s>< ><l><e><v><e><l>< ><s><e><t>< ><t><o> 
< ><'><h><a><c><k><'><.>< ><'><F><i><r><s><t>< ><c><o><m> 
<e><'>< ><c><o><m><m><a><n><d>< ><a><c><c><e><s><s>< >
<l><e><v><e><l>< ><a><l><s><o>< ><r><a><i><s><e><d>< ><t><o>
< ><'><h><a><c><k><'><.>< ><>>< >
----------

Just a thought: Why not introduce a server option "--hackfirst"?

> 
> --Daniel Speyer
> "May the /src be with you, always"
> 
> 
> > 
> > > Are you using localization?
> > 
> > Yes.
> > The problem keeps present when I start with 'LANG= civclient -t trident'.
> > 
> > > 
> > > This is the sort of place that caused lots of trouble in setting up, but
> > > I'd thought I finnally had it.
> > 
> > When I wrote CivGo, I have had a lot of trouble with the pipes, too.

Christian

-- 
* Christian Knoke                           +49 4852 92248 *
* D-25541 Brunsbuettel                  Wurtleutetweute 49 *
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.



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