Dominik Tugend 5 years ago
parent
commit
e82f7afafc
3 changed files with 29 additions and 10 deletions
  1. 19
    4
      projects/vs2010/readme.txt
  2. 6
    4
      projects/vs2010/smdlexp.vcxproj
  3. 4
    2
      utils/smdlexp/smdlexp.cpp

+ 19
- 4
projects/vs2010/readme.txt View File

@@ -6,9 +6,11 @@ projects.sln
6 6
   compiling the valve, dmc and ricochet DLL files.
7 7
   
8 8
 utils.sln
9
-  Solution file containing projects for the utilities. Special user interaction
10
-  is required in order to compile a share of the projects, see "Installing GLUT
11
-  and GLAUX" bellow.
9
+  Solution file containing projects for the utilities.
10
+  Special user interaction is required in order to compile a share of the
11
+  projects, see "Installing GLUT and GLAUX" bellow.
12
+  Special user interaction is also required for the smdlexp project, see
13
+  "smdlexp project" bellow.
12 14
   The serverctrl project is problematic, see "serverctrl project" bellow.
13 15
   Further project specific notes are also provided bellow.
14 16
   
@@ -129,4 +131,17 @@ smdlexp project
129 131
 
130 132
 Please note that this project requires the 3D Studio Max 4.2 SDK.
131 133
 You might need to adjust Include and Additional Library Directories according
132
-to your intallation.
134
+to your intallation in C++ and Linker settings.
135
+
136
+The MAX 4.2 SDK needs adjustment:
137
+Comment out the following line in max.h
138
+#include <ctl3d.h>
139
+So that it reads
140
+//#include <ctl3d.h
141
+.
142
+
143
+You also need the phyexp.h from Character Studio, which you should place in
144
+c:\3dsmax42\cstudio\sdk or adjust the Include Directories accordingly.
145
+
146
+Someone should port that project to a newer MAX SDK Version, but that is
147
+really beyond the current scope.

+ 6
- 4
projects/vs2010/smdlexp.vcxproj View File

@@ -53,6 +53,7 @@
53 53
       <Optimization>Disabled</Optimization>
54 54
       <PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
55 55
       <AdditionalIncludeDirectories>c:\3dsmax42\maxsdk\include;c:\3dsmax42\cstudio\sdk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
56
+      <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType>
56 57
     </ClCompile>
57 58
     <Link>
58 59
       <GenerateDebugInformation>true</GenerateDebugInformation>
@@ -61,8 +62,8 @@
61 62
       <OutputFile>c:\3dsmax42\plugins\smdlexp.dle</OutputFile>
62 63
     </Link>
63 64
     <PostBuildEvent>
64
-      <Command>attrib -r ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib
65
-copy $(TargetPath) ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib</Command>
65
+      <Command>
66
+      </Command>
66 67
     </PostBuildEvent>
67 68
     <PostBuildEvent>
68 69
       <Message>Post-Build Event</Message>
@@ -76,6 +77,7 @@ copy $(TargetPath) ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib</Command>
76 77
       <WarningLevel>Level3</WarningLevel>
77 78
       <PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
78 79
       <AdditionalIncludeDirectories>c:\3dsmax42\maxsdk\include;c:\3dsmax42\cstudio\sdk;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
80
+      <TreatWChar_tAsBuiltInType>false</TreatWChar_tAsBuiltInType>
79 81
     </ClCompile>
80 82
     <Link>
81 83
       <GenerateDebugInformation>true</GenerateDebugInformation>
@@ -84,8 +86,8 @@ copy $(TargetPath) ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib</Command>
84 86
       <OutputFile>c:\3dsmax42\plugins\smdlexp.dle</OutputFile>
85 87
     </Link>
86 88
     <PostBuildEvent>
87
-      <Command>attrib -r ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib
88
-copy $(TargetPath) ..\..\utils\procinfo\lib\win32_vc6\procinfo.lib</Command>
89
+      <Command>
90
+      </Command>
89 91
       <Message>Post-Build Event</Message>
90 92
     </PostBuildEvent>
91 93
     <Lib>

+ 4
- 2
utils/smdlexp/smdlexp.cpp View File

@@ -821,7 +821,8 @@ Point3 DumpModelTEP::Pt3GetRVertexNormal(RVertex *prvertex, DWORD smGroupFace)
821 821
 		return prvertex->rn.getNormal();
822 822
 	else
823 823
 	{
824
-		for (int irn = 0; irn < cNormals; irn++)
824
+		int irn;
825
+		for (irn = 0; irn < cNormals; irn++)
825 826
 			if (prvertex->ern[irn].getSmGroup() & smGroupFace)
826 827
 				break;
827 828
 
@@ -908,7 +909,8 @@ void SetIndexOfINode(INode *pnode, int inode)
908 909
 {
909 910
 	TSTR strNodeName(pnode->GetName());
910 911
 	NAMEMAP *pnm;
911
-	for (int inm = 0; inm < g_inmMac; inm++)
912
+	int inm;
913
+	for (inm = 0; inm < g_inmMac; inm++)
912 914
 		if (FStrEq(g_rgnm[inm].szNodeName, (char*)strNodeName))
913 915
 			break;
914 916
 	if (inm < g_inmMac)

Loading…
Cancel
Save