Author Topic: Cannot start a "New Game"  (Read 8885 times)

Obi-Wahn

  • Guest
Cannot start a "New Game"
« on: 3 February 2008, 16:19:09 »
Hi!

I'm Using Glest 3.0.0 on OpenSuse 10.3 from this Repository. When i want to start a new game by using  the "New Game"-button nothing happens. On the console this errror appears:

Code: [Select]
Couldn't process event: Error getting host by name (Error: No such file or directory)
I can play Glest over the scenario-button. What's going on?

btw: I get another message when i run glest:

Code: [Select]
tobias@dhcppc6:~> glest
void Shared::Platform::Window::setStyle(Shared::Platform::WindowStyle) not implemented.
« Last Edit: 1 January 1970, 00:00:00 by Obi-Wahn »

Maledictus

  • Guest
(No subject)
« Reply #1 on: 3 February 2008, 16:31:15 »
Just want to say "me too". I'm using FreeBSD and glest from svn revision 99.
The error message is a little different though:
Quote
Couldn't process event: Error getting host by name (Error: Unknown error: 0)
« Last Edit: 1 January 1970, 00:00:00 by Maledictus »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #2 on: 3 February 2008, 16:54:36 »
I think this is one for MatzeB.
« Last Edit: 1 January 1970, 00:00:00 by martiño »

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #3 on: 3 February 2008, 19:45:34 »
Have you tried running as root?

The exception is thrown at line 211 in socket.cpp becuase gethostbyname returned NULL

Other information on gethostbyname

Try the suggestion here
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

Obi-Wahn

  • Guest
(No subject)
« Reply #4 on: 3 February 2008, 20:23:00 »
Running as root has no effect.

And i have "hosts: file" at my /etc/nsswitch.conf
« Last Edit: 1 January 1970, 00:00:00 by Obi-Wahn »

Maledictus

  • Guest
(No subject)
« Reply #5 on: 3 February 2008, 21:55:22 »
Ok, Problems seems to be related to this:
Code: [Select]
host `hostname`
Host foobar.local not found: 3(NXDOMAIN)
besides foobar.local is in /etc/hosts and
Code: [Select]
% grep hosts /etc/nsswitch.conf
hosts: files dns

When I hardcode my local IP as the return value of Socket::getIP() it works.

Are you sure this is a good method to determine (one of) the local IP(s)? There is also no garanty that it's the right one. This very machine here has e.g. 2 IPs. Imo there should exist a method to choose the IP to bind to or to bind to all (0.0.0.0).

edit:
Code: [Select]
% sockstat -46 | grep glest
male   glest      19336 15 tcp4   *:61357               *:*

I just noticed that it already does bind to all IPs, besides being hardcoded to "192.168.0.1". Whats up here?
« Last Edit: 1 January 1970, 00:00:00 by Maledictus »

Maledictus

  • Guest
(No subject)
« Reply #6 on: 4 February 2008, 14:47:36 »
Seems like the string is only for display. Maybe it should then simply be "Could not determine ip" if gethostbyname returns NULL.
« Last Edit: 1 January 1970, 00:00:00 by Maledictus »

Obi-Wahn

  • Guest
(No subject)
« Reply #7 on: 9 February 2008, 19:51:21 »
It doesn't work with the SVN-version either....
« Last Edit: 1 January 1970, 00:00:00 by Obi-Wahn »

MatzeB

  • Guest
(No subject)
« Reply #8 on: 16 February 2008, 13:42:05 »
should be fixed in svn r116
« Last Edit: 1 January 1970, 00:00:00 by MatzeB »

Obi-Wahn

  • Guest
(No subject)
« Reply #9 on: 16 February 2008, 14:18:12 »
Yes it works! Thanks MatzeB!! :)
« Last Edit: 1 January 1970, 00:00:00 by Obi-Wahn »

vendion

  • Guest
(No subject)
« Reply #10 on: 26 February 2008, 20:06:45 »
I am having a simialr problem with 3.1.0, installed from the binary from the openSUSE repo.  The error that I get is this
Code: [Select]
Couldn't process event: Error accessing value: FogOfWar in: glest.ini
Value not found in propertyMap: FogOfWar, loaded from: glest.ini
 I did not have this problem with the 3.0.0 version of the game installed from the same repo.  I am going to downgrade to that, but I thought that I would bring that little problem up.  Not sure who packaged the openSUSE rpm for it so I can't really bring it up with him.
« Last Edit: 1 January 1970, 00:00:00 by vendion »

Obi-Wahn

  • Guest
(No subject)
« Reply #11 on: 26 February 2008, 21:17:03 »
I also have this problem, but only with the 3.1.0 packages. A solution could be, to build a rpm-package from an *.deb-package via alien.. but this one is too old, it has the other problem... i will try to make my own rpm.
« Last Edit: 1 January 1970, 00:00:00 by Obi-Wahn »

vendion

  • Guest
(No subject)
« Reply #12 on: 27 February 2008, 13:58:54 »
If you do, then can you make a build service account and upload it there?  Also post a link to it?
« Last Edit: 1 January 1970, 00:00:00 by vendion »

Obi-Wahn

  • Guest
(No subject)
« Reply #13 on: 27 February 2008, 18:45:57 »
Yes perhaps, .. but it will take at least a week. ;)
« Last Edit: 1 January 1970, 00:00:00 by Obi-Wahn »

vendion

  • Guest
(No subject)
« Reply #14 on: 29 February 2008, 15:07:22 »
Ok then, I would do it myself, but I am to busy with school work to take the time to learn to use alien.  

BTW: is anyone else having trouble with the "Post Reply" button at the bottom of the page?  When ever I click it it takes me back to the Forums main page.
« Last Edit: 1 January 1970, 00:00:00 by vendion »

vendion

  • Guest
(No subject)
« Reply #15 on: 29 February 2008, 15:09:27 »
Quote from: "vendion"
Ok then, I would do it myself, but I am to busy with school work to take the time to learn to use alien.  

BTW: is anyone else having trouble with the "Post Reply" button at the bottom of the page?  When ever I click it it takes me back to the Forums main page.
Never mind the second I say something about it, it works correctly.
« Last Edit: 1 January 1970, 00:00:00 by vendion »