Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
Master update 1
Browse files Browse the repository at this point in the history
Upgrade to new HavokLib.
Changed explicit path to debug working directory for pos-build event.
Update README.md.
  • Loading branch information
PredatorCZ committed May 13, 2019
1 parent 06e6e34 commit 3118e3d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
3 changes: 1 addition & 2 deletions HavokMax.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
<ResourceCompile Include="src\HavokMax.rc" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="3rd_party\HavokLib\3rd_party\PreCore\datas\esString.cpp" />
<ClCompile Include="src\DllEntry.cpp" />
<ClCompile Include="src\HavokExport.cpp" />
<ClCompile Include="src\HavokImport.cpp" />
Expand Down Expand Up @@ -144,7 +143,7 @@
<OutputFile>$(OutDir)$(TargetName).dlu</OutputFile>
</Link>
<PostBuildEvent>
<Command>COPY /Y /V "$(OutDir)$(TargetName).dlu" /B "C:\Program Files\Autodesk\3ds Max $(Configuration)\Plugins\" /B</Command>
<Command>COPY /Y /V "$(OutDir)$(TargetName).dlu" /B "$(LocalDebuggerWorkingDirectory)Plugins\" /B</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
3 changes: 0 additions & 3 deletions HavokMax.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="3rd_party\HavokLib\3rd_party\PreCore\datas\esString.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\HavokMax.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# HavokMax
HavokMax is Havok importer/exporter for 3ds max. Builded with VS2015.
HavokMax is Havok importer/exporter for 3ds max.\
Builded with VS2015.\
Supported 3ds max versions: **2010 - 2019**\
Tested on 3ds max versions: **2017**

Supported 3ds max versions: 2010 - 2019

Tested on 3ds max versions: 2017

## Editing .vcxproj
## Building
### Editing .vcxproj
All essential configurations are within **PropertyGroup Label="MAXConfigurations"** field.
- **MaxSDK**: changes path where is your MAX SDK installation.
If your MAX SDK installation is somewhere else than default path stated in this field, you can edit it here.
- **MaxDebugConfiguration**: changes 3ds max version and platform, so all necessary files are copied into plugin directory, this will enable post-build event.

## Post-build event
Change 3ds max installation path (Default is C:\Program Files\Autodesk\). Do not change anything else unless you know what you're doing!
- **MaxDebugConfiguration**: changes 3ds max version and platform, so all necessary files are copied into plugin directory, this will enable post-build event. You must have set ***Working Directory*** under ***Debugging*** in ***Project Properties*** to location, where 3ds max is installed (where 3dsmax.exe is).

## Installation
### [Latest Release](https://github.com/PredatorCZ/HavokMax/releases/)
Move corresponding .dlu located in correct version folder into ***%3ds max installation directory%/plugins***. \
Versions must match!\
Additionally plugin will require **Visual C++ Redistributable for Visual Studio 2015** to be installed in order to work.

## License
This plugin is available under GPL v3 license. (See LICENSE.md)
Expand Down
3 changes: 3 additions & 0 deletions src/DllEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ __declspec( dllexport ) ULONG LibVersion()

void PrintLog(TCHAR* msg)
{
if (!IsWindowVisible(the_listener_window) || IsIconic(the_listener_window))
show_listener();

mprintf(msg);
mflush();
}
Expand Down
2 changes: 1 addition & 1 deletion src/HavokMax.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class HavokMax
HWND comboHandle;
HWND hWnd;
TSTRING cfgpath;
t_Flags<char> sanityCheck;
esFlags<char> sanityCheck;
const TCHAR *CFGFile;
NewIDConfigValue(IDC_EDIT_SCALE);
NewIDConfigIndex(IDC_CB_TOOLSET);
Expand Down

0 comments on commit 3118e3d

Please sign in to comment.