• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Error installing libraries and compiling TFS

Sir Mido

New Member
Joined
Dec 14, 2015
Messages
68
Reaction score
0
When installing libraries using this command , i get this error
LUA:
.\vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-variant boost-lockfree boost-locale boost-beast boost-json luajit libmariadb pugixml openssl fmt
1732291686439.webp

Tried to do git pull and vcpkge update but says everything is already updated


While trying to compile , Visual studio starts with these lines
1732291746550.webp


used to get these errors
1732291796501.webp

but now i am getting only this
1732291815218.webp

I am using Visual Studio Community 2022 on Windows 10 and trying to compile the latest TFS from the official repository.
I followed this tutorial: Compiling on Windows (vcpkg)
 
I am using Visual Studio Community 2022 on Windows 10 and trying to compile the latest TFS from the official repository.
I followed this tutorial: Compiling on Windows (vcpkg)
This tutorial is not up-to-date. In TFS 1.4 times you had to run:
Code:
.\vcpkg install --triplet x64-windows boost-iostreams boost-asio boost-system boost-variant boost-lockfree boost-locale boost-beast boost-json luajit libmariadb pugixml openssl fmt

New TFS (1.6+) contains file vcpkg.json in main directory and Visual Studio project is setup to use 'vcpkg manifest' ( forgottenserver/vc17/theforgottenserver.vcxproj at master · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/vc17/theforgottenserver.vcxproj#L94) ), which makes Visual Studio install required vcpkg libraries into vcpkg_installed subdirectory in TFS main directory.

While trying to compile , Visual studio starts with these lines
Does it finish with no error about some library download/compilation?
vcpkg uses a lot of servers with C++ libraries not controlled by vcpkg authors. Some of these servers may go down and for minutes/hours vcpkg won't work. You can run same commands again and it may work.
 
Last edited:
This tutorial is not up-to-date. In TFS 1.4 times you had to run:
I managed to install the libraries by reinstalling VS and vcpkg. I'm not sure if it's related, but it happened. Previously, I tried running the library commands many times, but they didn’t work or ended up with errors

Just one more thing: I noticed that the TFS 1.6 config file doesn’t include MySQL information lines. Should I add them manually, or am I doing something wrong?

I added these lines and changed info to be exactly same as the uploaded DB but getting this

1732307437566.webp
LUA:
-- MySQL
mysqlHost = "127.0.0.1"
mysqlUser = "forgottenserver"
mysqlPass = ""
mysqlDatabase = "forgottenserver"
mysqlPort = 3306
mysqlSock = ""




NVM i had to grant all the privileges

it's working now , thank you
 
Last edited:
Back
Top