• 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 [TFS 1.3 - 8.60] Problem after compiling TFS [vcpkg x64/x86 - MSVS 2019]

Ramon Bernardo

Well-Known Member
TFS Developer
Joined
Oct 7, 2018
Messages
137
Solutions
4
Reaction score
94
After compiling TFS gives no sign of life. The screen turns black when it opens and closes after a time of 1 to 3 seconds.

TFS 1.3 downgrade 8.60 by nekiro: Github

Using
Code:
MSVS 2019
Code:
VCPKG x64 / x84

PTS:
Code:
Visual Studio 2017 (v141)
I also tried with v142 but the memory error:
Code:
Error C2664 'void std :: _ Normal_allocator_traits <_Alloc> :: destroy <_Ty> (_Alloc &, _ Ty *)': Unable to convert an argument 1 from '_Alloc' to '_Alloc &'

Build log:
otpch.cpp
actions.cpp
ban.cpp
baseevents.cpp
bed.cpp
chat.cpp
combat.cpp
c:\users\pc\desktop\forgottenserver-8.6-downgrade\src\actions.cpp(499): warning C4100: 'isScripted': parâmetro formal não referenciado
condition.cpp
configmanager.cpp
connection.cpp
container.cpp
creature.cpp
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\detail\forced_return.hpp(40): warning C4459: a declaração de 'dummy' oculta uma declaração global (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\desktop\forgottenserver-8.6-downgrade\src\configmanager.cpp(202): note: consulte a declaração de 'dummy'
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\detail\visitation_impl.hpp(162): note: consulte a referência à instanciação da função modelo 'T boost::detail::variant::forced_return<result_type>(void)' que está sendo compilada
with
[
T=result_type
] (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\detail\visitation_impl.hpp(231): note: consulte a referência à instanciação da função modelo 'void boost::detail::variant::visitation_impl_invoke<Visitor,VoidPtrCV,NoBackupFlag>(int,Visitor &,VoidPtrCV,boost::detail::variant::apply_visitor_unrolled *,NBF,long)' que está sendo compilada
with
[
Visitor=boost::detail::variant::destroyer,
VoidPtrCV=void *,
NoBackupFlag=boost::variant<boost::blank,std::string,int64_t,double,bool>::has_fallback_type_,
NBF=boost::variant<boost::blank,std::string,int64_t,double,bool>::has_fallback_type_
] (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\variant.hpp(2339): note: consulte a referência à instanciação da função modelo 'void boost::detail::variant::visitation_impl<first_which,first_step,Visitor,VoidPtrCV,boost::variant<boost::blank,std::string,int64_t,double,bool>::has_fallback_type_>(const int,const int,Visitor &,VoidPtrCV,boost::mpl::false_,NoBackupFlag,Which *,step0 *)' que está sendo compilada
with
[
Visitor=boost::detail::variant::destroyer,
VoidPtrCV=void *,
NoBackupFlag=boost::variant<boost::blank,std::string,int64_t,double,bool>::has_fallback_type_,
Which=first_which,
step0=first_step
] (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\variant.hpp(2348): note: consulte a referência à instanciação da função modelo 'void boost::variant<boost::blank,std::string,int64_t,double,bool>::internal_apply_visitor_impl<Visitor,void*>(int,int,Visitor &,VoidPtrCV)' que está sendo compilada
with
[
Visitor=boost::detail::variant::destroyer,
VoidPtrCV=void *
] (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\variant.hpp(2346): note: consulte a referência à instanciação da função modelo 'void boost::variant<boost::blank,std::string,int64_t,double,bool>::internal_apply_visitor_impl<Visitor,void*>(int,int,Visitor &,VoidPtrCV)' que está sendo compilada
with
[
Visitor=boost::detail::variant::destroyer,
VoidPtrCV=void *
] (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\variant.hpp(1365): note: consulte a referência à instanciação da função modelo 'void boost::variant<boost::blank,std::string,int64_t,double,bool>::internal_apply_visitor<boost::detail::variant::destroyer>(Visitor &)' que está sendo compilada
with
[
Visitor=boost::detail::variant::destroyer
] (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\variant.hpp(1365): note: consulte a referência à instanciação da função modelo 'void boost::variant<boost::blank,std::string,int64_t,double,bool>::internal_apply_visitor<boost::detail::variant::destroyer>(Visitor &)' que está sendo compilada
with
[
Visitor=boost::detail::variant::destroyer
] (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\variant.hpp(1363): note: ao compilar a função membro '<Desconhecido>' de classe <Desconhecido> (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\vcpkg\installed\x64-windows\include\boost\variant\variant.hpp(1372): note: consulte a referência à instanciação da função modelo 'void boost::variant<boost::blank,std::string,int64_t,double,bool>::destroy_content(void) noexcept' que está sendo compilada (compilando arquivo de origem ..\src\configmanager.cpp)
c:\users\pc\desktop\forgottenserver-8.6-downgrade\src\item.h(218): note: consulte a referência à instanciação '<Desconhecido>' de classe <Desconhecido> que está sendo compilada (compilando arquivo de origem ..\src\configmanager.cpp)
creatureevent.cpp
cylinder.cpp
database.cpp
databasemanager.cpp
databasetasks.cpp
depotchest.cpp
depotlocker.cpp
events.cpp
fileloader.cpp
game.cpp
globalevent.cpp
groups.cpp
guild.cpp
house.cpp
housetile.cpp
ioguild.cpp
iologindata.cpp
iomap.cpp
iomapserialize.cpp
item.cpp
items.cpp
luascript.cpp
mailbox.cpp
map.cpp
monster.cpp
monsters.cpp
movement.cpp
networkmessage.cpp
npc.cpp
otserv.cpp
outfit.cpp
outputmessage.cpp
party.cpp
player.cpp
position.cpp
protocol.cpp
protocolgame.cpp
protocollogin.cpp
protocolold.cpp
quests.cpp
raids.cpp
rsa.cpp
scheduler.cpp
script.cpp
scriptmanager.cpp
server.cpp
signals.cpp
spawn.cpp
spells.cpp
protocolstatus.cpp
talkaction.cpp
tasks.cpp
teleport.cpp
thing.cpp
tile.cpp
tools.cpp
trashholder.cpp
vocation.cpp
waitlist.cpp
weapons.cpp
wildcardtree.cpp
xtea.cpp
Gerando código
Finalizada a geração de código
theforgottenserver.vcxproj -> C:\Users\PC\Desktop\forgottenserver-8.6-downgrade\vc14\x64\Release\theforgottenserver-x64.exe

Problem:

1575552714755.png
1575552787029.png
The above example is compiled on x86 but I did the same with x64.
I put all the folders to run through the doubts. (I also put the config.lua)

I also tried compiling with boost + SDK (MSVS 2015-17-19)
Code:
boost_1_62_0 (32bit e 64bit)
boost_1_66_0 (32bit e 64bit)
Code:
SDK 3.2

Windows SDK:
Code:
10.0.17763.0
10.0.18362.0
8.1

Problem:
Code:
Unable to open file include: 'pugixml.hpp': No such file or directorY

Translation by google.
 
All you need to do to compile in vs 2017 is install required vcpkg libs

Then you need to change the sdk version to one that you have installed, wait till it parse all things and then hit recompile.
I downloaded vcpkg from 'C:\Users\PC\vcpkg'
1575564717041.png
How do I install correctly on msvs?
1575564841012.png
1575564791250.png

Try doing what he says in this thread:
It is compiling, already put the log.
 

Attachments

Last edited:
You're compiling just fine obviously, you already compiled once with no errors. Read my answer for the crash fix.
Image:
1575565655954.png
Build log:
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
otpch.cpp
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
actions.cpp
ban.cpp
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
baseevents.cpp
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
bed.cpp
chat.cpp
combat.cpp
c:\users\pc\desktop\forgottenserver-8.6-downgrade\src\actions.cpp(499): warning C4100: 'isScripted': unreferenced formal parameter
condition.cpp
configmanager.cpp
connection.cpp
container.cpp
creature.cpp
creatureevent.cpp
cylinder.cpp
database.cpp
databasemanager.cpp
databasetasks.cpp
depotchest.cpp
depotlocker.cpp
events.cpp
fileloader.cpp
game.cpp
globalevent.cpp
groups.cpp
guild.cpp
house.cpp
housetile.cpp
ioguild.cpp
iologindata.cpp
iomap.cpp
iomapserialize.cpp
item.cpp
items.cpp
luascript.cpp
mailbox.cpp
map.cpp
monster.cpp
monsters.cpp
movement.cpp
networkmessage.cpp
npc.cpp
otserv.cpp
outfit.cpp
outputmessage.cpp
party.cpp
player.cpp
position.cpp
protocol.cpp
protocolgame.cpp
protocollogin.cpp
protocolold.cpp
quests.cpp
raids.cpp
rsa.cpp
scheduler.cpp
script.cpp
scriptmanager.cpp
server.cpp
signals.cpp
spawn.cpp
spells.cpp
protocolstatus.cpp
talkaction.cpp
tasks.cpp
teleport.cpp
thing.cpp
tile.cpp
tools.cpp
trashholder.cpp
vocation.cpp
waitlist.cpp
weapons.cpp
wildcardtree.cpp
xtea.cpp
Generating code
Finished generating code
theforgottenserver.vcxproj -> C:\Users\PC\Desktop\forgottenserver-8.6-downgrade\vc14\x64\Release\theforgottenserver-x64.exe
Post automatically merged:

Many thanks to all who helped! You guys are awesome :)
@Delusion worked, despite some errors (mysqlhost request, and database sql) I was able to execute.
I used CMD to get to know the error because when running .exe it closed in less than a second.
1575566081218.png
 
Last edited:
Hello, did you solve your problem? I also have nothing in command line after succesfully compiling the source code.
EDIT:
As already answered - Changing the Enhanced Instruction Set to SSE2 helped me as well.
 
Last edited:
Back
Top