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

TFS1.4.2 FMT compile error

Upri5e

New Member
Joined
Apr 17, 2024
Messages
5
Reaction score
0
I am trying to compile TFS 1.4.2, after following the instructions on Compiling on Windows (vcpkg) (https://github.com/otland/forgottenserver/wiki/Compiling-on-Windows-%28vcpkg%29) Ikeep getting this error:
Code:
Error    C2079    '_' uses undefined struct 'fmt::v10::detail::type_is_unformattable_for<T,char>'    theforgottenserver    C:\vcpkg\installed\x64-windows\include\fmt\core.h    1600
Error    C2338    static_assert failed: 'Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt' (compiling source file ..\src\iomapserialize.cpp)    theforgottenserver    C:\vcpkg\installed\x64-windows\include\fmt\core.h    1604

I tried to do the vcpkg manifest to force install fmt 9.1.0 like someone said, but Im not sure if thats working or I didnt configure it properly. Anyone here fixed this problem before ?
 
Last edited:
Thank you for the response, I did manage to fix the issue by following this TFS 1.X+ - Errors when compiling TFS v1.4x (v1.4, v1.4.1, v1.4.2) (https://otland.net/threads/errors-when-compiling-tfs-v1-4x-v1-4-v1-4-1-v1-4-2.288569/post-2749377)

Though now I can only run the server if I move the executable to the root folder, so I cannot use visual studio to debug while its running
 
so put data etc into the root compiled folder? xD
Both ways whenever I run it from visual studio, it says it cant load config, unless I manually go to the exe and open it. It something with the way the paths are being handled in visual studio sln I think ?
 
Back
Top