• 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!

Compiling TFS1.4.2 vcpkg problem

norol

Member
Joined
Mar 19, 2026
Messages
17
Solutions
2
Reaction score
5
Location
Poland
Hello, I have a problem with vcpkg, namely powershell returns this message when installing bzip2
Bash:
error: building bzip2:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+bzip2
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[bzip2]+Build+error
Include '[bzip2] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-05-05-67e17c1782801cf481be9ac0b3765dff3e4bdeb8
    vcpkg-scripts version: unknown
vcpkg-2022.05.10/vcpkg-2022.06.15
what is the problem?
 
vcpkg-2022.05.10/vcpkg-2022.06.15
2022.06.15 is probably too old version of vcpkg and it won't compile.
Download my version of TFS 1.4 (branch 'compilation'):
It works with Visual Studio 2026 and newest vcpkg (git checkout master in vcpkg directory). You don't need to run vcpkg install xxx, just open vc17/theforgottenserver.sln in Visual Studio and it will download and compile all required vcpkg C++ libraries.
 
2022.06.15 is probably too old version of vcpkg and it won't compile.
Download my version of TFS 1.4 (branch 'compilation'):
It works with Visual Studio 2026 and newest vcpkg (git checkout master in vcpkg directory). You don't need to run vcpkg install xxx, just open vc17/theforgottenserver.sln in Visual Studio and it will download and compile all required vcpkg C++ libraries.
will it work with tfs 1.4.2 or only 1.4.0?
 
will it work with tfs 1.4.2 or only 1.4.0?
It's based on 1.4.2 with minor changes (added "global storage" in C++ that saves in database like on TFS 0.x, so it's values are kept between server restarts). There are also many optimizations and custom features, but almost all are disabled by default and you have to enable them in config.lua.

Only 2 features enabled by default are "OTS Stats" and "Optimized item decay". OTS Stats you can disable in config.lua or totally block in C++ with compilation options. Optimized item decay is replacement of normal TFS decay, so it cannot be disabled - it makes itemDecay use up to 99% less CPU.
 
Back
Top