• 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 OTclient, impossible!

Booker

New Member
Joined
Apr 2, 2015
Messages
46
Reaction score
4
Hello.
So, i'm trying to compile OT Client and it seems impossible to accomplish this frustrating task. I tried edubart's tutorial and searched, searched and searched with no success. I just get a thousand of errors at the beginning to the end.

I'm using MSVC 2017, windows. Already tried edubart's 2017 and 2015 tutorial, none of them even get close to succeeding, even though seems so easy looking at his 3-step tutorial. Tried to change boost version, download all libs from vcpkg, otclient sdk and nothing. I'll leave a part of the error log inside a spoiler:
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
houses.cpp
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
item.cpp
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
itemtype.cpp
cl : Command line warning D9002: ignoring unknown option '/arch:SSE2'
lightview.cpp
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luaobject.h(85): warning C4100: 'other': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luainterface.h(309): warning C4100: 'index': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luaobject.h(85): warning C4100: 'other': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luaobject.h(85): warning C4100: 'other': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luainterface.h(309): warning C4100: 'index': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luainterface.h(309): warning C4100: 'index': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luaobject.h(85): warning C4100: 'other': unreferenced formal parameter (compiling source file ..\src\client\lightview.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luainterface.h(309): warning C4100: 'index': unreferenced formal parameter (compiling source file ..\src\client\lightview.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'lightView': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'animate': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'scaleFactor': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'dest': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(41): warning C4100: 'id': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'oldPos': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'newPos': unreferenced formal parameter (compiling source file ..\src\client\itemtype.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'lightView': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'animate': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'scaleFactor': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'dest': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(41): warning C4100: 'id': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'oldPos': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'newPos': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'lightView': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'animate': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'scaleFactor': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'dest': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(41): warning C4100: 'id': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'oldPos': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'newPos': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\map.h(202): warning C4389: '==': signed/unsigned mismatch (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\map.h(202): warning C4389: '==': signed/unsigned mismatch (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(58): warning C4100: 'tuple': unreferenced formal parameter (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(56): note: see reference to function template instantiation 'int stdext::expand_snprintf<0>::call<Tuple,unsigned int>(char *,size_t,const char *,const Tuple &,const unsigned int &)' being compiled
with
[
Tuple=std::tuple<unsigned int>
] (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(71): note: see reference to function template instantiation 'int stdext::expand_snprintf<1>::call<std::tuple<unsigned int>,>(char *,size_t,const char *,const Tuple &)' being compiled
with
[
Tuple=std::tuple<unsigned int>
] (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(71): note: see reference to function template instantiation 'int stdext::expand_snprintf<1>::call<std::tuple<unsigned int>,>(char *,size_t,const char *,const Tuple &)' being compiled
with
[
Tuple=std::tuple<unsigned int>
] (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(94): note: see reference to function template instantiation 'int stdext::snprintf<uint32>(char *,size_t,const char *,const uint32 &)' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\houses.cpp(75): note: see reference to function template instantiation 'std::string stdext::format<uint32>(const std::string &,const uint32 &)' being compiled
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\asio\use_future.hpp(138): note: see reference to class template instantiation 'boost::asio::use_future_t<std::allocator<void>>::std_allocator_void' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\asio\use_future.hpp(146): note: see reference to class template instantiation 'boost::asio::use_future_t<std::allocator<void>>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(54): note: see reference to class template instantiation 'boost::arg<9>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(53): note: see reference to class template instantiation 'boost::arg<8>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(52): note: see reference to class template instantiation 'boost::arg<7>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(51): note: see reference to class template instantiation 'boost::arg<6>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(50): note: see reference to class template instantiation 'boost::arg<5>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(49): note: see reference to class template instantiation 'boost::arg<4>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(48): note: see reference to class template instantiation 'boost::arg<3>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(47): note: see reference to class template instantiation 'boost::arg<2>' being compiled (compiling source file ..\src\client\houses.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(46): note: see reference to class template instantiation 'boost::arg<1>' being compiled (compiling source file ..\src\client\houses.cpp)
localplayer.cpp
luafunctions.cpp
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(58): warning C4100: 'tuple': unreferenced formal parameter (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(56): note: see reference to function template instantiation 'int stdext::expand_snprintf<0>::call<Tuple,int>(char *,size_t,const char *,const Tuple &,const int &)' being compiled
with
[
Tuple=std::tuple<int>
] (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(71): note: see reference to function template instantiation 'int stdext::expand_snprintf<1>::call<std::tuple<int>,>(char *,size_t,const char *,const Tuple &)' being compiled
with
[
Tuple=std::tuple<int>
] (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(71): note: see reference to function template instantiation 'int stdext::expand_snprintf<1>::call<std::tuple<int>,>(char *,size_t,const char *,const Tuple &)' being compiled
with
[
Tuple=std::tuple<int>
] (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\stdext\format.h(94): note: see reference to function template instantiation 'int stdext::snprintf<int>(char *,size_t,const char *,const int &)' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\item.cpp(177): note: see reference to function template instantiation 'std::string stdext::format<int>(const std::string &,const int &)' being compiled
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\asio\use_future.hpp(138): note: see reference to class template instantiation 'boost::asio::use_future_t<std::allocator<void>>::std_allocator_void' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\asio\use_future.hpp(146): note: see reference to class template instantiation 'boost::asio::use_future_t<std::allocator<void>>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(54): note: see reference to class template instantiation 'boost::arg<9>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(53): note: see reference to class template instantiation 'boost::arg<8>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(52): note: see reference to class template instantiation 'boost::arg<7>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(51): note: see reference to class template instantiation 'boost::arg<6>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(50): note: see reference to class template instantiation 'boost::arg<5>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(49): note: see reference to class template instantiation 'boost::arg<4>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(48): note: see reference to class template instantiation 'boost::arg<3>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(47): note: see reference to class template instantiation 'boost::arg<2>' being compiled (compiling source file ..\src\client\item.cpp)
c:\users\pichau\desktop\ot\otclient-sdk-master\boost_1_68_0\boost\bind\placeholders.hpp(46): note: see reference to class template instantiation 'boost::arg<1>' being compiled (compiling source file ..\src\client\item.cpp)
luavaluecasts.cpp
map.cpp
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luaobject.h(85): warning C4100: 'other': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luainterface.h(309): warning C4100: 'index': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luaobject.h(85): warning C4100: 'other': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luainterface.h(309): warning C4100: 'index': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'lightView': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'animate': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'scaleFactor': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'dest': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(41): warning C4100: 'id': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'oldPos': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'newPos': unreferenced formal parameter (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'lightView': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'animate': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'scaleFactor': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'dest': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(41): warning C4100: 'id': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'oldPos': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(126): warning C4100: 'newPos': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\map.h(202): warning C4389: '==': signed/unsigned mismatch (compiling source file ..\src\client\localplayer.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\localplayer.cpp(65): warning C4100: 'direction': unreferenced formal parameter
c:\users\pichau\desktop\ot\otclient\src\client\map.h(202): warning C4389: '==': signed/unsigned mismatch (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luaobject.h(85): warning C4100: 'other': unreferenced formal parameter (compiling source file ..\src\client\luavaluecasts.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\luaengine\luainterface.h(309): warning C4100: 'index': unreferenced formal parameter (compiling source file ..\src\client\luavaluecasts.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\ui\uilayout.h(39): warning C4100: 'styleNode': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\ui\uilayout.h(40): warning C4100: 'widget': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\framework\ui\uilayout.h(41): warning C4100: 'widget': unreferenced formal parameter (compiling source file ..\src\client\luafunctions.cpp)
c:\users\pichau\desktop\ot\otclient\src\client\thing.h(39): warning C4100: 'lightView': unreferenced formal parameter (compiling source file ..\src\client\luavaluecasts.cpp)

If someone has the knowledge to fix this, i would be very thankful.
 
Solution
Visual C++ in Visual Studio 2015
Visual C++ installed, but cannot find cl.exe?

CL.exe is from Visual so not really a OTC problem, did you install C++ in the installation?

In Visual Studio 2015, Visual C++ is not installed by default. When installing, be sure to choose Custom installation and then choose the C++ components you require. Or, if Visual Studio is already installed, choose File | New | Project | C++ and you will be prompted to install the necessary components.
Use VS 2015

Includes:
SUciTpy.png


Linker:
YSw9A4a.png


That's it
 
@Mr Trala , did that and nothing. All i get is 1 error now:
Error TRK0005 Failed to locate: "CL.exe". O sistema não pode encontrar o arquivo especificado. otclient C:\Users\Pichau\Desktop\OT\otclient\vc14\TRACKER 1

Question is, are my configs correct?
jmSIqux.jpg
 
Visual C++ in Visual Studio 2015
Visual C++ installed, but cannot find cl.exe?

CL.exe is from Visual so not really a OTC problem, did you install C++ in the installation?

In Visual Studio 2015, Visual C++ is not installed by default. When installing, be sure to choose Custom installation and then choose the C++ components you require. Or, if Visual Studio is already installed, choose File | New | Project | C++ and you will be prompted to install the necessary components.
 
Last edited:
Solution
Visual C++ in Visual Studio 2015
Visual C++ installed, but cannot find cl.exe?

CL.exe is from Visual so not really a OTC problem, did you install C++ in the installation?

In Visual Studio 2015, Visual C++ is not installed by default. When installing, be sure to choose Custom installation and then choose the C++ components you require. Or, if Visual Studio is already installed, choose File | New | Project | C++ and you will be prompted to install the necessary components.
Thank you @Mr Trala, it actually works! I've missed the C++ components. Still, i don't understand why MSVC 2017 doesn't do the job, do you have an explanation ?
For the ones that are trying to compile too: after successful compilation, remember to copy the .dll files that are in otclient-sdk to the otclient.exe folder!
 
wat
what do you mean it doesn't do the job
there's some shit you gotta manually fix but i dont remember what exactly because this shit broken
i deleted otc 10 min after i compiled it cause i hate it, so i don't remember much about compiling it
 
wat
what do you mean it doesn't do the job
there's some shit you gotta manually fix but i dont remember what exactly because this shit broken
i deleted otc 10 min after i compiled it cause i hate it, so i don't remember much about compiling it
idk, it gives a milion errors and doesn't compile, even tho i did the exact same lib/inc importing as in vs 2015. Anyway, it's solved now :)
 
After compilation, where can I set the server's IP or dns by default?

I would like my client or players to just click on play or update when there is an update.
 
Back
Top