Something really stupid happened.
I added some cout lines to debug the code. To find out where it would
hang. I recompiled it (third time) and now it's fine!

Well, it looks great! I think we can use it in the game engine!

Thanks for the code man. And a nice job at clean coding again!

Regards,

Gert-Jan

Op do, 06-01-2005 te 14:30 -0300, schreef Pablo Nicolás Nuñez Pölcher:
> It's a stupid question that of mine, but was the server window focused
> when you pressed "g"? I cannot think of any other problem right now...
> Anyway, thanks for checking it. :)
> 
> Regards,
> Pablo
> 
> On Thu, 06 Jan 2005 18:06:16 +0100, Gert-Jan de Boer
> <[EMAIL PROTECTED]> wrote:
> > No the server did nothing. It stated:
> > 
> > SDLNet initialized.
> > Server IP 0 at port 7280
> > Server up and running!
> > StarlaneModel 2
> > 
> > Regards,
> > 
> > Gert-Jan
> > 
> > Op do, 06-01-2005 te 13:49 -0300, schreef Pablo Nicolás Nuñez Pölcher:
> > > Never checked the CPU usage of the server, but since I never optimized
> > > the server main loop, I guess it's normal for it to do that. :(
> > >
> > > As for the starmap transfer error, I'll check that when I get home. It
> > > worked fine both on SuSE 6.4 (P-III 450, 256MB RAM, glibc 2.2, kernel
> > > 2.5.0, GCC 2.9.5.2) and Gentoo 2004.2 (Athlon64 3000+, 512MB RAM,
> > > glibc 2.3.3, GCC 3.4.3), so I guess there's something I'm not
> > > considering in the code. Anyway, please bear in mind that I've not
> > > touched that code in almost a year, and it was a two-month work only.
> > > Maybe I could try installing Fedora Core and trying to compile it
> > > there.
> > >
> > > By the way, did the server dump all of the starmap data to the console?
> > >
> > > Anyway, thanks for taking a look at the code! :)
> > >
> > > Regards,
> > > Pablo
> > >
> > >
> > > On Thu, 06 Jan 2005 17:43:00 +0100, Gert-Jan de Boer
> > > <[EMAIL PROTECTED]> wrote:
> > > > It compiled fine with me.
> > > > I only got some errors in unpacking it. That the time of some files was
> > > > in the future.
> > > >
> > > > After compiling I start sserver, and it uses almos 100% CPU.
> > > > I got black screen in window. Then I press G and connect the sclient. It
> > > > connects fine, but drops after a while with the error: Starmap transfer
> > > > error.
> > > >
> > > > Specs:
> > > > Fedora Core 3
> > > > P4 2,6ghz 512MB RAM
> > > > All libs are current
> > > > GCC 3.4
> > > >
> > > > Regards,
> > > >
> > > > Gert-Jan
> > > >
> > > > Op do, 06-01-2005 te 02:52 +0000, schreef Pablo Nicolás Nuñez Pölcher:
> > > > > I thought that instead of uploading this code to the CVS server
> > > > > (that has nothing to do with the project itself), I should rather send
> > > > > it as an attachment. It is what I had done so far of my Ascendancy-
> > > > > -like game until I had no more time to spend in it. It's not really 
> > > > > much,
> > > > > but maybe there's something that can be used. Hope it helps!
> > > > >
> > > > > By the way, it should compile without any problems (I just compiled
> > > > > it and worked fine). It needs SDL_net, as well as libxml2.
> > > > >
> > > > > To run it, first change the base path in the config.xml file to the
> > > > > directory you put it into, then run "sserver", press "g" (to generate
> > > > > a galaxy), and run "sclient". The client should connect to the
> > > > > server, get the galaxy data and render it. Stars look as triangles,
> > > > > since I never had the time to add real stars. And the colors of the
> > > > > lines indicate what kind of starlane it is. "w", "a", "s" and "d" 
> > > > > keys, as
> > > > > well as the mouse move the camera around.
> > > > >
> > > > > That's all!
> > > > > Regards,
> > > > > Pablo
> > > > >
> > > > > P.S.: I compiled Starline Empire without any trouble by using a newer
> > > > > gcc (3.4) instead of 3.3
> > > > --
> > > > Gert-Jan de Boer <[EMAIL PROTECTED]>
> > > >
> > > >
> > --
> > Gert-Jan de Boer <[EMAIL PROTECTED]>
> > 
> >
-- 
Gert-Jan de Boer <[EMAIL PROTECTED]>


Reply via email to