diff options
| author | Neo2003 <none@none> | 2008-10-02 16:23:55 -0500 |
|---|---|---|
| committer | Neo2003 <none@none> | 2008-10-02 16:23:55 -0500 |
| commit | 9b1c0e006f20091f28f3f468cfcab1feb51286bd (patch) | |
| tree | b5d1ba94a656e6679f8737f9ea6bed1239b73b14 /contrib/vmap_assembler | |
[svn] * Proper SVN structureinit
--HG--
branch : trunk
Diffstat (limited to 'contrib/vmap_assembler')
| -rw-r--r-- | contrib/vmap_assembler/VC71/vmap_assembler.vcproj | 322 | ||||
| -rw-r--r-- | contrib/vmap_assembler/VC80/vmap_assembler.vcproj | 456 | ||||
| -rw-r--r-- | contrib/vmap_assembler/splitConfig.txt | 17 | ||||
| -rw-r--r-- | contrib/vmap_assembler/vmap_assembler.cpp | 118 | ||||
| -rw-r--r-- | contrib/vmap_assembler/vmap_assemblerVC71.sln | 23 | ||||
| -rw-r--r-- | contrib/vmap_assembler/vmap_assemblerVC80.sln | 19 |
6 files changed, 955 insertions, 0 deletions
diff --git a/contrib/vmap_assembler/VC71/vmap_assembler.vcproj b/contrib/vmap_assembler/VC71/vmap_assembler.vcproj new file mode 100644 index 00000000000..aaaeb4dfc3c --- /dev/null +++ b/contrib/vmap_assembler/VC71/vmap_assembler.vcproj @@ -0,0 +1,322 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="7.10" + Name="vmap_assembler" + ProjectGUID="{572FFF74-480C-4472-8ABF-81733BB4049D}" + Keyword="Win32Proj"> + <Platforms> + <Platform + Name="Win32"/> + </Platforms> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="..\Debug" + IntermediateDirectory="..\Debug\obj" + ConfigurationType="1" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\..\dep\include\g3dlite; ..\..\..\src\shared\vmap" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" + MinimalRebuild="TRUE" + BasicRuntimeChecks="3" + RuntimeLibrary="1" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="4"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)/vmap_assembler.exe" + LinkIncremental="2" + GenerateDebugInformation="TRUE" + ProgramDatabaseFile="$(OutDir)/vmap_assembler.pdb" + SubSystem="1" + TargetMachine="1"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCWebDeploymentTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="..\Release" + IntermediateDirectory="..\Release\obj" + ConfigurationType="1" + CharacterSet="2"> + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="..\..\..\dep\include\g3dlite; ..\..\..\src\shared\vmap" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + RuntimeLibrary="0" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="TRUE" + DebugInformationFormat="3"/> + <Tool + Name="VCCustomBuildTool"/> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)/vmap_assembler.exe" + LinkIncremental="1" + GenerateDebugInformation="TRUE" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1"/> + <Tool + Name="VCMIDLTool"/> + <Tool + Name="VCPostBuildEventTool"/> + <Tool + Name="VCPreBuildEventTool"/> + <Tool + Name="VCPreLinkEventTool"/> + <Tool + Name="VCResourceCompilerTool"/> + <Tool + Name="VCWebServiceProxyGeneratorTool"/> + <Tool + Name="VCXMLDataGeneratorTool"/> + <Tool + Name="VCWebDeploymentTool"/> + <Tool + Name="VCManagedWrapperGeneratorTool"/> + <Tool + Name="VCAuxiliaryManagedWrapperGeneratorTool"/> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> + <File + RelativePath=".\..\vmap_assembler.cpp"> + </File> + </Filter> + <Filter + Name="vmaplib"> + <File + RelativePath="..\..\..\src\shared\vmap\AABSPTree.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\BaseModel.cpp"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\BaseModel.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\CoordModelMapping.cpp"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\CoordModelMapping.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\DebugCmdLogger.cpp"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\DebugCmdLogger.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ManagedModelContainer.cpp"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ManagedModelContainer.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ModelContainer.cpp"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ModelContainer.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\NodeValueAccess.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ShortBox.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ShortVector.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\SubModel.cpp"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\SubModel.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\TileAssembler.cpp"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\TileAssembler.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\TreeNode.cpp"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\TreeNode.h"> + </File> + <File + RelativePath="..\..\..\src\shared\vmap\VMapTools.h"> + </File> + </Filter> + <Filter + Name="g3dlite"> + <File + RelativePath="..\..\..\dep\src\g3dlite\AABox.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\AABox.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\AABSPTree.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Array.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Box.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Box.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\CollisionDetection.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\CoordinateFrame.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Crypto.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Crypto.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\debug.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\format.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\format.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\g3dmath.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\g3dmath.inl"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\GCamera.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Line.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Matrix3.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Matrix3.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Plane.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Plane.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\platform.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Quat.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Quat.inl"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Ray.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\RegistryUtil.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Sphere.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\stringutils.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\System.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\System.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Table.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Triangle.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Triangle.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector2.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector2.inl"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector2int16.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Vector3.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector3.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector3.inl"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector3int16.h"> + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Vector4.cpp"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector4.h"> + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector4.inl"> + </File> + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/contrib/vmap_assembler/VC80/vmap_assembler.vcproj b/contrib/vmap_assembler/VC80/vmap_assembler.vcproj new file mode 100644 index 00000000000..3b3a58a05aa --- /dev/null +++ b/contrib/vmap_assembler/VC80/vmap_assembler.vcproj @@ -0,0 +1,456 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8,00" + Name="vmap_assembler" + ProjectGUID="{572FFF74-480C-4472-8ABF-81733BB4049D}" + Keyword="Win32Proj" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory="..\Debug" + IntermediateDirectory="..\Debug\obj" + ConfigurationType="1" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + AdditionalIncludeDirectories="..\..\..\dep\include\g3dlite;..\..\..\src\shared\vmap;" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="1" + EnableEnhancedInstructionSet="1" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)/vmap_assembler.exe" + LinkIncremental="2" + GenerateDebugInformation="true" + ProgramDatabaseFile="$(OutDir)/vmap_assembler.pdb" + SubSystem="1" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory="..\Release" + IntermediateDirectory="..\Release\obj" + ConfigurationType="1" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + /> + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="..\..\..\dep\include\g3dlite;..\..\..\src\shared\vmap;" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + RuntimeLibrary="0" + EnableEnhancedInstructionSet="1" + UsePrecompiledHeader="0" + WarningLevel="3" + Detect64BitPortabilityProblems="true" + DebugInformationFormat="3" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + OutputFile="$(OutDir)/vmap_assembler.exe" + LinkIncremental="1" + GenerateDebugInformation="true" + SubSystem="1" + OptimizeReferences="2" + EnableCOMDATFolding="2" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" + UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" + > + <File + RelativePath=".\..\vmap_assembler.cpp" + > + </File> + </Filter> + <Filter + Name="vmaplib" + > + <File + RelativePath="..\..\..\src\shared\vmap\AABSPTree.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\BaseModel.cpp" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\BaseModel.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\CoordModelMapping.cpp" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\CoordModelMapping.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\DebugCmdLogger.cpp" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\DebugCmdLogger.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ManagedModelContainer.cpp" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ManagedModelContainer.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ModelContainer.cpp" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ModelContainer.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\NodeValueAccess.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ShortBox.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\ShortVector.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\SubModel.cpp" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\SubModel.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\TileAssembler.cpp" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\TileAssembler.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\TreeNode.cpp" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\TreeNode.h" + > + </File> + <File + RelativePath="..\..\..\src\shared\vmap\VMapTools.h" + > + </File> + </Filter> + <Filter + Name="g3dlite" + > + <File + RelativePath="..\..\..\dep\src\g3dlite\AABox.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\AABox.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\AABSPTree.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Array.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Box.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Box.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\CollisionDetection.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\CoordinateFrame.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Crypto.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Crypto.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\debug.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\format.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\format.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\g3dmath.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\g3dmath.inl" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\GCamera.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Line.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Matrix3.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Matrix3.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Plane.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Plane.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\platform.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Quat.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Quat.inl" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Ray.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\RegistryUtil.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Sphere.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\stringutils.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\System.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\System.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Table.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Triangle.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Triangle.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector2.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector2.inl" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector2int16.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Vector3.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector3.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector3.inl" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector3int16.h" + > + </File> + <File + RelativePath="..\..\..\dep\src\g3dlite\Vector4.cpp" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector4.h" + > + </File> + <File + RelativePath="..\..\..\dep\include\g3dlite\G3D\Vector4.inl" + > + </File> + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> diff --git a/contrib/vmap_assembler/splitConfig.txt b/contrib/vmap_assembler/splitConfig.txt new file mode 100644 index 00000000000..de8fd67bdc4 --- /dev/null +++ b/contrib/vmap_assembler/splitConfig.txt @@ -0,0 +1,17 @@ +# list of map names + +509 #AhnQiraj +469 #BlackwingLair +189 #MonasteryInstances +030 #PVPZone01 +037 #PVPZone02 +033 #Shadowfang +533 #Stratholme Raid +209 #TanarisInstance +309 #Zul'gurub +560 #HillsbradPast +534 #HyjalPast +532 #Karazahn +543 #HellfireRampart +568 #ZulAman +564 #BlackTemple diff --git a/contrib/vmap_assembler/vmap_assembler.cpp b/contrib/vmap_assembler/vmap_assembler.cpp new file mode 100644 index 00000000000..233d4ba3c28 --- /dev/null +++ b/contrib/vmap_assembler/vmap_assembler.cpp @@ -0,0 +1,118 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string> + +#include "TileAssembler.h" + +//======================================================= +// remove last return or LF and tailing SPACE +// remove all char after a # + +void chompAndTrim(std::string& str) +{ + for(unsigned int i=0;i<str.length(); ++i) { + char lc = str[i]; + if(lc == '#') { + str = str.substr(0,i); + break; + } + } + + while(str.length() >0) { + char lc = str[str.length()-1]; + if(lc == '\r' || lc == '\n' || lc == ' ') { + str = str.substr(0,str.length()-1); + } else { + break; + } + } +} + +//======================================================= +/** +This callback method is called for each model found in the dir file. +return true if it should be included in the vmap +*/ +bool modelNameFilter(char *pName) +{ +#if 0 + bool result; + result = !Wildcard::wildcardfit("*bush[0-9]*", pName); + if(result) result = !Wildcard::wildcardfit("*shrub[0-9]*", pName); + if(result) result = !Wildcard::wildcardfit("*_Bushes_*", pName); + if(result) result = !Wildcard::wildcardfit("*_Bush_*", pName); + if(!result) { + printf("%s",pName); + } +#endif + return true; +} + +//======================================================= +/** +File contains map names that should be split into tiles +A '#' at the beginning of a line defines a comment +*/ + +bool readConfigFile(char *pConffile, VMAP::TileAssembler* pTa) +{ + bool result = false; + char buffer[501]; + FILE *cf = fopen(pConffile, "rb"); + if(cf) { + while(fgets(buffer, 500, cf)) { + std::string name = std::string(buffer); + size_t pos = name.find_first_not_of(' '); + name = name.substr(pos); + chompAndTrim(name); // just to be sure + if(name[0] != '#' && name.size() >0) { // comment? + unsigned int mapId = atoi(name.c_str()); + pTa->addWorldAreaMapId(mapId); + } + } + fclose(cf); + result = true; + } + return(result); +} +//======================================================= +int main(int argc, char* argv[]) +{ + if(argc == 3 || argc == 4) + { + bool ok = true; + char *src = argv[1]; + char *dest = argv[2]; + char *conffile = NULL; + if(argc >= 4) { + conffile = argv[3]; + } + VMAP::TileAssembler* ta = new VMAP::TileAssembler(std::string(src), std::string(dest)); + ta->setModelNameFilterMethod(modelNameFilter); + + /* + All the names in the list are considered to be world maps or huge instances. + These maps will be spilt into tiles in the vmap assemble process + */ + if(conffile != NULL) { + ok = readConfigFile(conffile, ta); + if(!ok) { + printf("Can not open file config file: %s\n", conffile); + } + } + if(ok) { ok = ta->convertWorld(); } + if(ok) { + printf("Ok, all done\n"); + } else { + printf("exit with errors\n"); + return 1; + } + delete ta; + } + else + { + printf("\nusage: %s <raw data dir> <vmap dest dir> [config file name]\n", argv[0]); + return 1; + } + return 0; +} diff --git a/contrib/vmap_assembler/vmap_assemblerVC71.sln b/contrib/vmap_assembler/vmap_assemblerVC71.sln new file mode 100644 index 00000000000..8fc03541941 --- /dev/null +++ b/contrib/vmap_assembler/vmap_assemblerVC71.sln @@ -0,0 +1,23 @@ +Microsoft Visual Studio Solution File, Format Version 8.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vmap_assembler", "VC71\vmap_assembler.vcproj", "{572FFF74-480C-4472-8ABF-81733BB4049D}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + Debug = Debug + Release = Release + EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {572FFF74-480C-4472-8ABF-81733BB4049D}.Debug.ActiveCfg = Debug|Win32 + {572FFF74-480C-4472-8ABF-81733BB4049D}.Debug.Build.0 = Debug|Win32 + {572FFF74-480C-4472-8ABF-81733BB4049D}.Release.ActiveCfg = Release|Win32 + {572FFF74-480C-4472-8ABF-81733BB4049D}.Release.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/contrib/vmap_assembler/vmap_assemblerVC80.sln b/contrib/vmap_assembler/vmap_assemblerVC80.sln new file mode 100644 index 00000000000..66489bd0a79 --- /dev/null +++ b/contrib/vmap_assembler/vmap_assemblerVC80.sln @@ -0,0 +1,19 @@ +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual C++ Express 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vmap_assembler", "VC80\vmap_assembler.vcproj", "{572FFF74-480C-4472-8ABF-81733BB4049D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {572FFF74-480C-4472-8ABF-81733BB4049D}.Debug|Win32.ActiveCfg = Debug|Win32 + {572FFF74-480C-4472-8ABF-81733BB4049D}.Debug|Win32.Build.0 = Debug|Win32 + {572FFF74-480C-4472-8ABF-81733BB4049D}.Release|Win32.ActiveCfg = Release|Win32 + {572FFF74-480C-4472-8ABF-81733BB4049D}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal |
