Nexuiz startup vs network stability

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Nexuiz startup vs network stability

Postby alpha » Wed Mar 25, 2009 1:56 pm

So if I understand everything right, on startup nexuiz checks master server for a list of IPs of public servers.

The problem is, if my DNS server is down, or my router is down/dying, nexuiz freezes for some 1-2 minutes without any signs of life. This also happens on computers connected to internet via http proxy.

Can this be fixed, like maybe start downloading server list only when user presses a button?

Thanks.
quit for good
alpha
Alien trapper
 
Posts: 492
Joined: Tue Jun 17, 2008 7:18 pm

Postby divVerent » Wed Mar 25, 2009 1:58 pm

The only real fix would be doing that DNS resolve in a separate thread. Which is not easy to do in a platform independent way, but might be done in the future.

And there is no simple way to avoid loading the server list on startup anyway, as the menu immediately shows it.

Well, there is ONE way: telling your OS that there is no DNS for it to query (e.g. by emptying /etc/resolv.conf on Linux). Then it won't try and time out.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby alpha » Wed Mar 25, 2009 1:59 pm

divVerent wrote:The menu immediately shows it.

Then maybe it shouldn't? I think this bug is really annoying.
quit for good
alpha
Alien trapper
 
Posts: 492
Joined: Tue Jun 17, 2008 7:18 pm

Postby esteel » Wed Mar 25, 2009 2:41 pm

Well as i said on irc, i think this behavoir makes sense for most of the users..
Maybe net_slist_pause 1 set via startup paramater stops the menu from updating the server list from the start on?
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby divVerent » Wed Mar 25, 2009 3:14 pm

Plus, it's a feature and not a bug, as it's convenient for most people.

Another thing that would solve it would be not using DNS for the master servers, but hardcoded IPs. But servers might move...
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby alpha » Wed Mar 25, 2009 5:34 pm

divVerent wrote:Plus, it's a feature and not a bug, as it's convenient for most people.

Another thing that would solve it would be not using DNS for the master servers, but hardcoded IPs. But servers might move...


Don't you think that it's wrong to ASSUME that user is connected to internet whenever nexuiz starts?
quit for good
alpha
Alien trapper
 
Posts: 492
Joined: Tue Jun 17, 2008 7:18 pm

Postby divVerent » Wed Mar 25, 2009 6:30 pm

Nope, as Nexuiz is a multiplayer game. If you were talking about Zymotic, on the other hand, you'd be right.

Also, if you are NOT connected to the internet, you shouldn't have a DNS server address set up, and then it wouldn't wait.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby alpha » Wed Mar 25, 2009 7:52 pm

divVerent wrote:Nope, as Nexuiz is a multiplayer game. If you were talking about Zymotic, on the other hand, you'd be right.

Also, if you are NOT connected to the internet, you shouldn't have a DNS server address set up, and then it wouldn't wait.


Allow me to point certain flaws in your thinking.

Firstly, nexuiz isn't just a multiplayer game. You can play bots for (basic) skills and aim practice. And second, more important (for me at least) -- nexuiz is also a trickjump/speed game, and these things you can practice on your own without internet.

And about DNS thing - consider a situation where internet service provider's DNS server suddenly gets DoSed and stops responding? This is the kind of situation I have from time to time. And, frustrating as it is, it does not get any better when my nexuiz(which I start to spend some time while ISP gets his stuff together) freezes on startup.
quit for good
alpha
Alien trapper
 
Posts: 492
Joined: Tue Jun 17, 2008 7:18 pm

Postby [-z-] » Wed Mar 25, 2009 11:51 pm

alpha wrote:Don't you think that it's wrong to ASSUME that user is connected to internet whenever nexuiz starts?


I agree with this.

If possible, perhaps when the multiplayer window is selected the internet connection takes place, that would make more sense.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby terencehill » Thu Mar 26, 2009 12:42 am

But you should focus on what the majority of ppl do with this game: play online.

Alpha can be right talking logically, but actually no. This is the point. When I start Nexuiz, if I click the multiplayer window after some seconds, I have some chance to see quickly the servers already in the list. Only this matters. If in rare cases happens some weird things, IMO this is perfectly acceptable. Even if that would happen to me. The advantages are more then the disadvantages, this matter.
terencehill
Alien
 
Posts: 176
Joined: Thu Jul 10, 2008 10:33 pm
Location: Italy

Next

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron