Even if Ryzom Core supports Visual C++ 2008, 2010, 2012, 2015 and 2017, we recommend to use the last one because it supports most features and needs less steps to configure. It also supports Qt 5 with an available extension.
To download the latest version of Visual Studio Community Edition : https://www.visualstudio.com/downloads/ Warning! Be sure to check Visual C++ components.
Install Tortoise Hg, CMake, 7-Zip, DirectX 9 SDK, Qt 5, Notepad++, WinMerge 2011 and Microsoft Visual Studio Community 2017. Don't forget to check all C++ components for this last one.
If you got an error S1023 when installing the DirectX 9 SDK, please check : https://support.microsoft.com/en-us/kb/2728613
Create a new folder called Ryzom somewhere where you have write access, go in it with Explorer. Click with right mouse button, then on TortoiseHg -> Clone, you will get a dialog. In Source enter https://bitbucket.org/ryzom/ryzomcore and Destination will be filled automatically with ryzomcore. Finally, click on Clone to download all Ryzom Core files.
We need to configure TortoiseHg to simplify code update later. Right click on your new directory ryzomcore and click on Hg Workbench, it should launch TortoiseHg.
Select the last commit line where appears compatibility-develop in Branch column, right-click on it and Update....
Now go to Files -> Settings and define different options :
If you want to edit these options later, you can also directly edit the file C:\Users\<Login>\mercurial.ini. Mine is :
[ui] username = <username> merge = winmergeu [tortoisehg] ui.language = en vdiff = winmergeu editor = notepad++ autoresolve = True postpull = update shell = windows_command_prompt vdiff = winmergeu engmsg = True [extensions] mercurial_keyring = purge = eol = transplant = hggit = strip = [eol] native = LF [auth] bitbucket.prefix = bitbucket.org bitbucket.username = <login> bitbucket.password = <password> bitbucket.schemes = https
Create an external directory in ryzomcore and uncompress external_vc141.7z here.
Double-click on RyzomCore.sln file in build directory.
If you want to compile for 64-bit, you'll additionally need:
If Windows SDK installer complains about a beta version of .NET Framework 4 being installed:
open regedit and edit these two strings:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Client\Version
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Full\Version
You might have to give yourself ownership of Client and Full folder and then all access rights to be able to edit the Version label... replace the version with '4.0.30319'. Relaunch the Microsoft Windows SDK installer, and when it's finished restore the original value into the version field and change permissions back.
Solution taken from: http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10/32322920#32322920
With Visual Studio 2010 you'll normally encounter following error:
error C2719: '_Val': formal parameter with __declspec(align('16')) won't be aligned
You have to edit the header file C:\Programs\Microsoft Visual Studio 10.0\VC\include\vector
change line 869
from:
void resize(size_type _Newsize, _Ty _Val)
to:
void resize(size_type _Newsize, const _Ty& _Val)