diff --git a/projects/vs2010/readme.txt b/projects/vs2010/readme.txt index 77423f3..20b6b0d 100644 --- a/projects/vs2010/readme.txt +++ b/projects/vs2010/readme.txt @@ -6,9 +6,11 @@ projects.sln compiling the valve, dmc and ricochet DLL files. utils.sln - Solution file containing projects for the utilities. Special user interaction - is required in order to compile a share of the projects, see "Installing GLUT - and GLAUX" bellow. + Solution file containing projects for the utilities. + Special user interaction is required in order to compile a share of the + projects, see "Installing GLUT and GLAUX" bellow. + Special user interaction is also required for the smdlexp project, see + "smdlexp project" bellow. The serverctrl project is problematic, see "serverctrl project" bellow. Further project specific notes are also provided bellow. @@ -129,4 +131,17 @@ smdlexp project Please note that this project requires the 3D Studio Max 4.2 SDK. You might need to adjust Include and Additional Library Directories according -to your intallation. +to your intallation in C++ and Linker settings. + +The MAX 4.2 SDK needs adjustment: +Comment out the following line in max.h +#include +So that it reads +//#include Disabled WIN32;_DEBUG;%(PreprocessorDefinitions) c:\3dsmax42\maxsdk\include;c:\3dsmax42\cstudio\sdk;%(AdditionalIncludeDirectories) + false true @@ -61,8 +62,8 @@ c:\3dsmax42\plugins\smdlexp.dle - attrib -r ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib -copy $(TargetPath) ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib + + Post-Build Event @@ -76,6 +77,7 @@ copy $(TargetPath) ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib Level3 WIN32;NDEBUG;%(PreprocessorDefinitions) c:\3dsmax42\maxsdk\include;c:\3dsmax42\cstudio\sdk;%(AdditionalIncludeDirectories) + false true @@ -84,8 +86,8 @@ copy $(TargetPath) ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib c:\3dsmax42\plugins\smdlexp.dle - attrib -r ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib -copy $(TargetPath) ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib + + Post-Build Event diff --git a/utils/smdlexp/smdlexp.cpp b/utils/smdlexp/smdlexp.cpp index d625332..89c344f 100644 --- a/utils/smdlexp/smdlexp.cpp +++ b/utils/smdlexp/smdlexp.cpp @@ -821,7 +821,8 @@ Point3 DumpModelTEP::Pt3GetRVertexNormal(RVertex *prvertex, DWORD smGroupFace) return prvertex->rn.getNormal(); else { - for (int irn = 0; irn < cNormals; irn++) + int irn; + for (irn = 0; irn < cNormals; irn++) if (prvertex->ern[irn].getSmGroup() & smGroupFace) break; @@ -908,7 +909,8 @@ void SetIndexOfINode(INode *pnode, int inode) { TSTR strNodeName(pnode->GetName()); NAMEMAP *pnm; - for (int inm = 0; inm < g_inmMac; inm++) + int inm; + for (inm = 0; inm < g_inmMac; inm++) if (FStrEq(g_rgnm[inm].szNodeName, (char*)strNodeName)) break; if (inm < g_inmMac)