View previous topic :: View next topic |
Author |
Message |
pdwalker Guest
|
Posted: Tue Aug 09, 2005 17:57 Post subject: Preferred Environment for Compiling nwnx and plugins? |
|
|
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
|
Posted: Tue Aug 09, 2005 19:04 Post subject: |
|
|
NWNX is developed with Visual Studio 6. _________________ Papillon |
|
Back to top |
|
|
pdwalker
Joined: 09 Aug 2005 Posts: 22
|
Posted: Wed Aug 10, 2005 19:31 Post subject: |
|
|
Thank you,
I'll get and give that one a try.
- Paul |
|
Back to top |
|
|
RadiKS
Joined: 26 Oct 2005 Posts: 2
|
Posted: Wed Oct 26, 2005 3:03 Post subject: |
|
|
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 |
|
|
nova82
Joined: 27 Jun 2006 Posts: 3
|
Posted: Tue Jun 27, 2006 5:32 Post subject: |
|
|
(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 |
|
|
|