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

[VIDEOTUTORIAL] Learning how to compile TFS 1.5 on Windows (8.60 downgraded by Nekiro)

Forking is like copying someone's work folder, in your own desktop/desired folder and start modificating it. You can easily fork a repository using GitHub Desktop, and all the changes you make get registered simple by hitting "Commit". They got automatically updated when you change the source code on visual studio.

The main differences from 0.4 is the fact that downgrade let you use the latest code syntaxis, specifically revscriptsys, which is much more simple to install (just by dragging and droping the script in "scripts" folder). It also reads some newer attributes such as monster "skill reductions", among other features that hasn't been removed from the main branch downgrade; but they got good compatibility and can be perfectly stable on 8.60.

In conclusion, revscript is much faster for programmers that's why they support it. You just make one big file for scripts folder instead of making a creaturescript, a lib script, a moveevent script, etc, etc... for the same .lua system. If I have missed something, just add it to the feed ^^

Regards!
Well you closed the deal! I think ill go this direction starting with your fork lol. Thx for the explanations. And thanks for the tutorial. See you around.
 
Could anyone share with me compiled 8.0 version? My compiled version doesn't run properly and I cannot figure the problem myself. (1.2/1.4 can be compiled without any problems and work normally)
 
Bump @up! I'm really frustrated that my compiled win64 version doesn't work properly.
 
Been getting some errors related to fmt::format() could anyone help? Below a description, haven't found anyone else having similar problems and haven't found anyone to contact. I am trying to compile the TFS 1.5 8.60 downgrade from Nekiro and have tried Greed's aswell, both the same issue.

Steps to reproduce (include any configuration/script required to reproduce)​

  1. Installed VCPKG and all dependencies from the wiki step-by-step for W10
  2. Opened theforgottenserver.vcxproj, set Release and x64
  3. Went to Build > Build theforgottenserver

Expected behaviour​

Complete build of the source code.

Actual behaviour​

Getting build errors regarding call to fmt::format() in iomapserialize.cpp

Code:
1>C:\vcpkg\installed\x64-windows\include\fmt\core.h(1691,7): 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)

The line that is triggering the error is
Code:
fmt::format("{:d}, {}, {:s}", house->getId(), GUEST_LIST, db.escapeString(listText))
I imagine that the following lines will also trigger the same problem

Environment​

Using Visual Studio Community 2022, vcpkg at latest versions. Windows 10.

You can follow further updates on this on the issue I opened on the TFS repository since this seems to be affecting the original source aswell Compilation Error - FMT::FORMAT() · Issue #4465 · otland/forgottenserver (https://github.com/otland/forgottenserver/issues/4465)
 
Last edited:
Been getting some errors related to fmt::format() could anyone help? Below a description, haven't found anyone else having similar problems and haven't found anyone to contact. I am trying to compile the TFS 1.5 8.60 downgrade from Nekiro and have tried Greed's aswell, both the same issue.

Steps to reproduce (include any configuration/script required to reproduce)​

  1. Installed VCPKG and all dependencies from the wiki step-by-step for W10
  2. Opened theforgottenserver.vcxproj, set Release and x64
  3. Went to Build > Build theforgottenserver

Expected behaviour​

Complete build of the source code.

Actual behaviour​

Getting build errors regarding call to fmt::format() in iomapserialize.cpp

Code:
1>C:\vcpkg\installed\x64-windows\include\fmt\core.h(1691,7): 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)

The line that is triggering the error is
Code:
fmt::format("{:d}, {}, {:s}", house->getId(), GUEST_LIST, db.escapeString(listText))
I imagine that the following lines will also trigger the same problem

Environment​

Using Visual Studio Community 2022, vcpkg at latest versions. Windows 10.

You can follow further updates on this on the issue I opened on the TFS repository since this seems to be affecting the original source aswell Compilation Error - FMT::FORMAT() · Issue #4465 · otland/forgottenserver (https://github.com/otland/forgottenserver/issues/4465)

Hi! Try this and tell me if works. Pheraps is just an error on the lib since we're all using the same sources and they work.

.\vcpkg remove --purge fmt:x64-windows
.\vcpkg install fmt:x64-windows
.\vcpkg integrate install

Took this solution from here:
Error compiling latest tfs (https://otland.net/threads/error-compiling-latest-tfs.275663/#post-2696705)

Could anyone share with me compiled 8.0 version? My compiled version doesn't run properly and I cannot figure the problem myself. (1.2/1.4 can be compiled without any problems and work normally)
For the moment I can't help you, but try reinstalling the vpckg libraries, it's worth a try ^^
Someone who already have a compiled 8.0 please help with this one!

Regards!
 
Hi! Try this and tell me if works. Pheraps is just an error on the lib since we're all using the same sources and they work.

.\vcpkg remove --purge fmt:x64-windows
.\vcpkg install fmt:x64-windows
.\vcpkg integrate install

Took this solution from here:
Error compiling latest tfs (https://otland.net/threads/error-compiling-latest-tfs.275663/#post-2696705)


For the moment I can't help you, but try reinstalling the vpckg libraries, it's worth a try ^^
Someone who already have a compiled 8.0 please help with this one!

Regards!
Thanks for answering, I fixed the part of the source code causing the error, just check the issue I linked! Thank you very much either way!
 
./vcpkg/vcpkg integrate install is saying no such file or directory?
Post automatically merged:

I followed all and did integrate install then rebuild forgottenserver, and it gives me all the errors still ending with
Severity Code Description Project File Line Suppression State
Warning C4275 non dll-interface class 'std::runtime_error' used as base for dll-interface class 'fmt::v10::format_error' (compiling source file ..\src\raids.cpp) theforgottenserver C:\vcpkg\installed\x64-windows\include\fmt\format.h 1055
"
 
Last edited:
./vcpkg/vcpkg integrate install is saying no such file or directory?
Post automatically merged:

I followed all and did integrate install then rebuild forgottenserver, and it gives me all the errors still ending with


"
I've got same problem once reinstalled whole libs or installed vs2022 and libs on other computer. Cannot compile 8.0 and 8.6 versions, while I could compile them before reinstalling libs, but .exe didnt work properly (after opening, blank window popped up and closed after few secs).
 
I've got same problem once reinstalled whole libs or installed vs2022 and libs on other computer. Cannot compile 8.0 and 8.6 versions, while I could compile them before reinstalling libs, but .exe didnt work properly (after opening, blank window popped up and closed after few secs).
in that case check if you can see what logs does console tell you, before closing. Simply run the console on cmd and see where the error comes from TFS 1.X+ - Console crash log (https://otland.net/threads/console-crash-log.260905/#post-2522884)
 
Good to know that TSF 1.5 use the Sources with .xml and .lua! I'm still using TSF 0.3.6 but i'll give a try.
 
so how to fix the compilation errors ?
Hi! Try this and tell me if works. Pheraps is just an error on the lib since we're all using the same sources and they work.

.\vcpkg remove --purge fmt:x64-windows
.\vcpkg install fmt:x64-windows
.\vcpkg integrate install

Took this solution from here:
Error compiling latest tfs (https://otland.net/threads/error-compiling-latest-tfs.275663/#post-2696705)


For the moment I can't help you, but try reinstalling the vpckg libraries, it's worth a try ^^
Someone who already have a compiled 8.0 please help with this one!

Regards!
i've made these changes, also added these commit
the error persits
the error is is the main forgottenserver repository too, before formatting my computer i was able to compile withut any of these editions in sources

this fixed the compiler error for me forgottenserver/src/tools.h at 819e30b95e121070cef45bc15d0ab2d5ec387a40 · Unreal-TFS/forgottenserver (https://github.com/Unreal-TFS/forgottenserver/blob/819e30b95e121070cef45bc15d0ab2d5ec387a40/src/tools.h)
 
Last edited:
Thanks to everyone who watched the tutorial. I have reached 3k views for this video on YouTube.
I'm very happy to achieve it! Regards :)
 
lately the newer tfs 1.5 sources 8.6 seems to be non compilable, somebody has donde it succesfully?
 
@Jeyci for those who are struggling with

fmt::v10::format_error and static_assert

I made a quick tutorial to fix it. Take a look into this thread ;)

Regards!
 
@Jeyci for those who are struggling with

fmt::v10::format_error and static_assert

I made a quick tutorial to fix it. Take a look into this thread ;)

Regards!
Yes with this i was able to compile your repository but not moviebr, millhioreBT repositories. i need it for a test. thank you
 
cant find package "pugixml::pugixml"
View attachment 79911
Sorry for the late response. Which distribution you're using?
I recently had a problem compiling sources, since there have been some recent commits that requieres the update of pugixml.

I have a vcpkg that works well specifically for TFS-1.5-downgrades 8.6 and for my own server, I got thoose on a github from otservbr but it's no longer avaible (if someone can help me found a link to thoose before having to upload them). Please try using GitHub - nekiro/TFS-1.5-Downgrades at 8.60 (https://github.com/nekiro/TFS-1.5-Downgrades/tree/8.60) and not newer repositories if you wish to go for 8.6. This is a good stable base to start crafting c++, it only has some issues on potions and stuff, but you can see the majority of the changes I have made on my own fork here Commits · ralke23/Greed-TFS-1.5-Downgrades (https://github.com/ralke23/Greed-TFS-1.5-Downgrades/commits/8.60/). Aren't so much so it will be easy to see one by one.

Ok, but who can provide the compiled x86/x64 version already compiled?
You should see the tutorial and try, c++ is a really usefull tool that will be handy.
Regards!
 
Back
Top