Re: [QUIZ] Space Merchant (#71)



On Tue, 2006-03-21 at 17:56 +0900, Ross Bamford wrote:
On Tue, 2006-03-21 at 08:45 +0900, James Edward Gray II wrote:
On Mar 20, 2006, at 3:00 PM, Ross Bamford wrote:

On Tue, 2006-03-21 at 02:48 +0900, James Edward Gray II wrote:
On Mar 20, 2006, at 11:41 AM, Ross Bamford wrote:

Anyway, the problem with that was that, since Sector handles most
of the
output (and will probably just call puts) the output all goes to the
server's terminal :(

Could you have the client pass you $stdout and $stdin, then set them
on the server?

I had a go with this, but couldn't get it to work.

Bummer. Here is where I got the idea, just FYI:

http://ian.blenke.com/drb

Ahh, I see. It looks like we had pretty similar concepts of how it
should work, but my stdout/stdin references kept on turning into
DRb::DRbUnknown instances after I made the first call on them.


Okay, I have this working now after a fashion, but still can't get it to
work with the station implementation - I don't know highline well, but
looking through it seems to use readline, termios, or something else on
Windows and I'm not sure we can do anything about that...

So currently it can play multiplayer, as long as you don't dock with a
station (which causes the server to wait for input!) :-(

Have to say, though, that playing in one-player is actually pretty good,
it's coming together well guys :) I think I need to make some
adjustments to the galaxy generation, not just because it sometimes
generates those galaxies with a couple of interlinked, unreachable
sectors, but also because it feels a bit sparse in terms of planets and
stations...

--
Ross Bamford - rosco@xxxxxxxxxxxxxxxxxxxxxx



.



Relevant Pages

  • Re: multiprocessing and accessing servers stdout
    ... I'm using multiprocessing's BaseManager to create a server on one ... The client fires a request and the ... I need the client machine to see the stdout of the process ... No, I close stdin, stderr, and stdout on the server processes and attach ...
    (comp.lang.python)
  • Re: select + stderr
    ... > I have a client - server, but this works only for stdout. ... > file), I get the error message on server side on stderr, but on client ...
    (comp.unix.programmer)
  • Re: select + stderr
    ... What means stdout in the context of a server-client pair? ... >>file), I get the error message on server side on stderr, but on client ...
    (comp.unix.programmer)
  • Re: multiprocessing and accessing servers stdout
    ... I'm using multiprocessing's BaseManager to create a server on one ... The client fires a request and the ... I need the client machine to see the stdout of the process ... do you redirect stdout on the server to a socket and have the ...
    (comp.lang.python)
  • Re: How to display binary file contents if it is stored in an integer array?
    ... a file to the server, then the server should display the content of ... What do you expect to display on stdout? ...
    (comp.lang.c)