Nexuiz startup vs network stability

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby ai » Sat Mar 28, 2009 3:45 pm

Thank Div0 for this. Really this is amazing.
ai
Forum addon
 
Posts: 2131
Joined: Sun Mar 05, 2006 3:54 pm
Location: Behind you

Postby divVerent » Sat Mar 28, 2009 4:15 pm

Anyone tried it?
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 mand1nga » Sat Mar 28, 2009 5:26 pm

divVerent wrote:Anyone tried it?


It works like a charm
mand1nga
Alien trapper
 
Posts: 321
Joined: Mon May 12, 2008 12:19 am

Postby Alien » Sat Mar 28, 2009 7:49 pm

You should use _WIN32 for MSVC.

I haven't seen the hardcoded Master Server IP, but fallback might be already there, so sorry for bothering if that's the case.
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Postby divVerent » Sat Mar 28, 2009 9:06 pm

We don't use MSVC, and I just used the same define also used in other places.
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 Alien » Sat Mar 28, 2009 9:47 pm

I mean you (darkplaces) still provide MSVC project files (not that you use it) and MSVC uses _WIN32. WIN32 is defined internally by some windows header files and those aren't included one needs to use /DWIN32 to compile. Same can be said about NetRadiant.
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Postby divVerent » Sun Mar 29, 2009 6:21 pm

I have no idea about this, and won't dare to change this as this MAY break compilation with mingw, or even cause subtle runtime issues.

I would however take a patch changing this from someone who actually TESTED it (but then, with mingw too!).

BTW, NetRadiant is ONLY compiled with mingw, and has no MSVC support. But, feel free to create project files for it if you want.
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 Alien » Sun Mar 29, 2009 6:37 pm

http://lists.boost.org/Archives/boost/2004/07/68241.php
http://predef.sourceforge.net/preos.html#sec24

You can use (WIN32) || (_WIN32) if cautious. WIN32 is defined in windef.h

I am interested in compiling darkplaces with intel c++ compiler, which is free on linux to further optimize dp for atom on netbooks.
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Postby divVerent » Sun Mar 29, 2009 7:16 pm

Anyway, all existing DP code uses the WIN32 macro, and I'm not going to change this without LH's okay, as the existing code works fine. WHY it works fine, I don't care.
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 Alien » Sun Mar 29, 2009 7:27 pm

It works because it includes windows.h, which includes windef.h

I'm not asking to remove anything from dp, but you could use #ifdef (WIN32) || (_WIN32) in NetRadiant.
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron