MegaGlest Forum

Archives (read only) => Vanilla Glest => Linux and other ports => Topic started by: Obi-Wahn on 3 February 2008, 16:19:09

Title: Cannot start a "New Game"
Post by: Obi-Wahn on 3 February 2008, 16:19:09
Hi!

I'm Using Glest 3.0.0 on OpenSuse 10.3 from this Repository (http://http://download.opensuse.org/repositories/games:/strategy:/realtime/openSUSE_10.3/repodata/). 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.
Title:
Post by: Maledictus 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)
Title:
Post by: martiƱo on 3 February 2008, 16:54:36
I think this is one for MatzeB.
Title:
Post by: hailstone 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 (http://http://en.wikipedia.org/wiki/Berkeley_sockets#gethostbyname.28.29_and_gethostbyaddr.28.29) returned NULL

Other information on gethostbyname (http://http://www.uwo.ca/its/doc/courses/notes/socket/)

Try the suggestion here (http://http://www.linuxquestions.org/questions/linux-general-1/i-m-getting-the-error-unknown-host-while-im-pinging-with-the-host-name-266003/)
Title:
Post by: Obi-Wahn on 3 February 2008, 20:23:00
Running as root has no effect.

And i have "hosts: file" at my /etc/nsswitch.conf
Title:
Post by: Maledictus 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?
Title:
Post by: Maledictus 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.
Title:
Post by: Obi-Wahn on 9 February 2008, 19:51:21
It doesn't work with the SVN-version either....
Title:
Post by: MatzeB on 16 February 2008, 13:42:05
should be fixed in svn r116
Title:
Post by: Obi-Wahn on 16 February 2008, 14:18:12
Yes it works! Thanks MatzeB!! :)
Title:
Post by: vendion 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.
Title:
Post by: Obi-Wahn 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 (http://http://www.getdeb.net/release.php?id=2176) one is too old, it has the other problem... i will try to make my own rpm.
Title:
Post by: vendion 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?
Title:
Post by: Obi-Wahn on 27 February 2008, 18:45:57
Yes perhaps, .. but it will take at least a week. ;)
Title:
Post by: vendion 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.
Title:
Post by: vendion 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.