logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Preferred Environment for Compiling nwnx and plugins?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
pdwalker
Guest





PostPosted: Tue Aug 09, 2005 17:57    Post subject: Preferred Environment for Compiling nwnx and plugins? Reply with quote

Hi All,

What is the preferred tool for building nwnx and the associated plugins?

I've tried using MS VS .NET 2003 and only get a slew of errors when I try to compile anything.
Back to top
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Aug 09, 2005 19:04    Post subject: Reply with quote

NWNX is developed with Visual Studio 6.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
pdwalker



Joined: 09 Aug 2005
Posts: 22

PostPosted: Wed Aug 10, 2005 19:31    Post subject: Reply with quote

Thank you,

I'll get and give that one a try.

- Paul
Back to top
View user's profile Send private message
RadiKS



Joined: 26 Oct 2005
Posts: 2

PostPosted: Wed Oct 26, 2005 3:03    Post subject: Reply with quote

Visual studio 2005 beta compiles plugins, but (at least the one I attempted, dazzle's functions with some changes to prevent overwriting more than allocated memory) crash nwserver on startup.
Back to top
View user's profile Send private message
nova82



Joined: 27 Jun 2006
Posts: 3

PostPosted: Tue Jun 27, 2006 5:32    Post subject: Reply with quote

(old thread, yeah yeah)

I moved NWNX2 to vc7.1 while modifying nwnx2 to detect a freeze crash that it couldn't detect & handle.

dunno about the plugins, but compiling nwnx2 with vc7.1,
here are the main things you need to do:

Code:
(and similar functions & their declarations of course)
void CNWNX2Dlg::OnServerRestartedProcess(WPARAM wParam, LPARAM lParam)
{
   m_intCrashCounterProcess++;
   UpdateData(FALSE);
}

to

LRESULT CNWNX2Dlg::OnServerRestartedProcess(WPARAM wParam, LPARAM lParam)
{
   m_intCrashCounterProcess++;
   UpdateData(FALSE);
   return 0;
}

-------------

void RotateLogs()
has RTC problem with tmpNo variable in debug release, can't be bothered to fix it currently
so disabling it when debug is defined

void RotateLogs()
{
  #ifndef _DEBUG

RotateLogs code in here.

  #endif
}

------------------
nwnx2.cpp

move "#include <string>" before the ifdef _DEBUG

or you will get xdebug errors while compiling.


------------------------------
less important code to include

Code:


  NWNX2Dlg.cpp
CNWNX2Dlg::~CNWNX2Dlg()

  delete watchdogProcess;
  delete watchdogGamespy;
}

  nwnx2.cpp
CNWNX2App::~CNWNX2App()
{
    delete cmdline;
}


-----------------


nova
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group