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 );