I've seen users having troubles with the official compiling guide (path environment variables to be precise) and in this tutorial I will show how you set path environment variables properly.
Let us start with Step 2 (step 2 from the official guide) where we are supposed to run register_tfssdk_env.bat and register_boost_env.bat to set path environment variable for TFS SDK and Boost C++ libraries.
______________________________________________________________________
Step 1
Before you run register_tfssdk_env.bat/register_boost_env.bat, right-click on it and then click on edit.
Step 2
Start Visual Studio and compile forgottenserver right away (you don't need to link libraries manually).
Let us start with Step 2 (step 2 from the official guide) where we are supposed to run register_tfssdk_env.bat and register_boost_env.bat to set path environment variable for TFS SDK and Boost C++ libraries.
______________________________________________________________________
Step 1
Before you run register_tfssdk_env.bat/register_boost_env.bat, right-click on it and then click on edit.
This is what you will find in there
What we will do is adding quotation marks around "%CD%" and add pause at the end so it looks like this (Don't forget to SAVE).
Run the .bat's and hopefully you will get the same result as I got (if the path is set to C:\windows\system32 or something else that's incorrect automatically then move onto next step)
______________________________________________________________________
Step 2
Right-click on Computer and click on Properties
Click on Advanced system settings
Click on Environment Variables...
The image speaks for itself, add new variable if you don't have the variables TFSSDKDir/BOOST_ROOT or edit variable if the value is incorrect
______________________________________________________________________
Start Visual Studio and compile forgottenserver right away (you don't need to link libraries manually).
Last edited: