Hi there.
Below are the errors that got me stuck. I someone can give me a hand with them, I'll finish building them and post them back here as soon as possible.
(sorry if they are too basic and too lame.... I'll learn better...)
(PS.: I did setup the environment to point to the 2010 sdk, and removed any trace that was left of 2009.)
Error 1 error LNK2019: unresolved external symbol "public: class CStr __thiscall IPathConfigMgr::GetFullFilePath(char const *,bool)const " (?GetFullFilePath@IPathConfigMgr@@QBE?AVCStr@@PBD_N@Z) referenced in function "class std::basic_string,class std::allocator > __cdecl GetFullPath(char const *)" (?GetFullPath@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBD@Z) exportmain.obj kwxport
Error 2 error LNK2019: unresolved external symbol "public: char const * __thiscall IGameFX::GetEffectFileName(void)" (?GetEffectFileName@IGameFX@@QAEPBDXZ) referenced in function "public: void __thiscall IGameExporter::WriteGeometry(class IGameScene *,class IGameNode *,class IGameObject *,struct ID3DXFileSaveData *)" (?WriteGeometry@IGameExporter@@QAEXPAVIGameScene@@PAVIGameNode@@PAVIGameObject@@PAUID3DXFileSaveData@@@Z) exportmain.obj kwxport
Thanks for all the effort!
Thanks for all the effort! I've ported kW X-port 1.4.0 to Max 2010 (solving these problems), as well as re-built a new installer for Max 2009, 2008 and 9. Among other exciting features is support for MaxScript to change settings and animation clips!
Click the download link above to go to the download page.
Binaries
I also got it to compile and it seems to be working ok,
Here's the binaries if anyone wants them. (Hope I'm ok to post them)
http://skatehed.ho8.com/kwxport/kwxport_2010_x86.zip
http://skatehed.ho8.com/kwxport/kwxport_2010_x64.zip
(Only tested in x64)
Cheers.
Hi there
I was trying out your x86 version, but alas was faced with this error during loading:
If you can get a solution up soon I'd sing your name.
Otherwise I will cry it! Thanks, and good luck everybody involved.
help!
I'm running into this too. I desperately need a solution!
I had the same error with
I had the same error with both versions...
Take a look at the "Plug in
Take a look at the "Plug in Upgrade guide" in the programmer's guide - they list functions that have been removed in 2010. Unfortunately, they didn't remove the functions from the header files, making it harder to track down the problem.
Here's what I did to get it to compile. In exportmain.cpp:
At the top, add
#include (IFileResolutionManager.h)
#pragma comment (lib,"assetmanagement")
In GetFullPath(), replace the first line with
std::string texPath(IFileResolutionManager::GetInstance()->GetFullFilePath(path,MaxSDK::AssetManagement::kOtherAsset));
Around line 1615, replace
char const *effectName = gfx == NULL ? "null" : gfx->GetEffectFileName();
with
char const *effectName = gfx == NULL ? "null" : gfx->GetEffectFile().GetFileName();
Around line 1680, replace
std::string fxPath = gfx->GetEffectFileName();
with
std::string fxPath = gfx->GetEffectFile().GetFileName();
Everything built for me, but it crashes during export, freeing memory in the "Aslifx" DLL. I haven't had a chance to figure out what's going wrong yet.
Thanks, fwr. I must have
Thanks, fwr.
I must have skipped those first lines that had to be added to the main cpp file.
Did that and all went well.
Tried here with a simple teapot and with skinned model human model, and both exported and imported well.
PM me (marcelo_wrk at yahoo.com.br) if you would like to take a look at the project, or the binaries.
M.