Jump to content
Snre3n

Compiling Source Code ( 2.0 ) With VS2015

Recommended Posts

Hello PKOdev, I created this thread in hope that we could get the source code working with VS2015.
I want to point out that this thread concerns this solution file "Client\Client\proj\kop.sln" from 'FILE.rar'.

 

The build are successful for both MindPower3D (dll) & Game.exe.

 

So what is the problem?
- Running game.bat does nothing
- Running MakeBin.bat does nothing
- Running Game.exe results with "Load Txt File[scripts/txt/CharacterAction.tx] Fail!"


Things I've done to make it compile: ( Something might be missing )

 

- Installed DirectX 8.1 SDK

 

- Set Zc:forScope to 'No' in C/C++ -> Language -> "Force Conformance in For Loop Scope" in MindPower3D.project
Why? To fix these kind of errors, without having to redefine a lot of variables.

 

- Most of libraries in Common folder has to be rebuilt to work with VS2015
Why? They were compiled with old VS version and gave unresolved external symbols.

 

- Ignored libc.lib (MindPower3D.project)
Why? I read somewhere that solved the issue. LOL!

 

- Added legacy_stdio_definitions.lib (MindPower3D)
Why? Fixed error codes, see https://msdn.microsoft.com/en-us/library/bb531344.aspx (Search 'legacy_stdio_definitions.lib')

 

Changes in source code:

 

MPParticleSys.cpp

At row: 4129~, 4179~, 4450~
fwrite(_vecPointRange._Myfirst,sizeof(D3DXVECTOR3),_wVecNum,t_pFile);
To this:
fwrite(_vecPointRange.front(),sizeof(D3DXVECTOR3),_wVecNum,t_pFile);

 

MPFont.cpp

At row: 957~, 962~, 977~, 983~
_pDev->GetDevice()->DrawPrimitiveUP(D3DPT_TRIANGLELIST, prc->iAshNum, prc->_vecHsl._Myfirst,sizeof(FONT_VER));    
To this:
_pDev->GetDevice()->DrawPrimitiveUP(D3DPT_TRIANGLELIST, prc->iAshNum, &prc->_vecAsh[0],sizeof(FONT_VER));

 

UIEditData.cpp

At row: 146~
_memorys.insert( &_memorys[_nCursor], pObj );
To this:
_memorys.insert( _memorys.begin() + _nCursor, pObj );    

At row: 163~
_memorys.erase( &_memorys[nIndex] );
To this:
_memorys.erase( _memorys.begin() + nIndex );

At row: 196~
_memorys.erase( &_memorys[start], &_memorys[end] );
To this:
_memorys.erase( _memorys.begin() + start, _memorys.begin() + end );

 

  • Like 2

Share this post


Link to post
Share on other sites

Which src code? 1.3x or 2.x? Did you try to create the simplest possible characteraction with 1 char and 1 pose to test? Which version of libraries did you get? latest or closest to the version already available? I would like to reproduce these steps tomorrow (my day off).

 

-----

 

Any idea how do I get dx 8.1? I tried using game's but it gives me errors.

Edited by deguix

Share this post


Link to post
Share on other sites
On 6/13/2017 at 8:27 AM, deguix said:

Which src code? 1.3x or 2.x? Did you try to create the simplest possible characteraction with 1 char and 1 pose to test? Which version of libraries did you get? latest or closest to the version already available? I would like to reproduce these steps tomorrow (my day off).

 

-----

 

Any idea how do I get dx 8.1? I tried using game's but it gives me errors.

Use version of Visual Studio that matches project files, you can see that in .sln file.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...