• 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.0/1.1 latest source. 64 and 32 bits. Pics and lots of explanation.

Thanks dominique it was the version i downloaded what brought the problem, now i wanna now if someone can ask me something, i customized the sprite file and the OTB.. and i added around 30 items or more, but a lot of them does not save when i log off example, items from id 23400 to 23410 are saving but then it jumped to 43300 and items from that id and beyond are deleted when a player log off, i guess i have to edit something before i compile right? so that ids are saved? (not real numbers just an example)

This is something that can probably be solved in the support area, not here.
 
Is there a way I can add a parameter for server saves into the config file? I know it has the server save that happens once a day but I want to add one that occurs every 30 mins without shutting down the server or blocking people from logging in. Even if I just need to add a global event. I tried to change the existing serversave.lua changing time to interval but it still wont work :/
 
Is there a way I can add a parameter for server saves into the config file? I know it has the server save that happens once a day but I want to add one that occurs every 30 mins without shutting down the server or blocking people from logging in. Even if I just need to add a global event. I tried to change the existing serversave.lua changing time to interval but it still wont work :/
Like I said to the user above:
These questions are not related to this tutorial, post them somewhere else.
FYI Yes its possible; If you post in the support board someone will show you how to do it.
 
trying to compile latest tfs. followed this guide. get this error when writing wildcardtree.cpp:
Code:
1>connection.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
1>otpch.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
1>D:\OTSERVER\tfs 31 07 clean\vc12\x64\Release\theforgottenserver.exe : fatal error LNK1120: 2 unresolved externals
 
I get this error when rebuilding i did everything like you said dont know why

Error 1 error LNK1181: cannot open input file 'lua51.lib' C:\Users\myname\Documents\forgottenserver-master\vc12\LINK theforgottenserver
 
I get this error when rebuilding i did everything like you said dont know why

Error 1 error LNK1181: cannot open input file 'lua51.lib' C:\Users\myname\Documents\forgottenserver-master\vc12\LINK theforgottenserver

Looks like you are not following the instructions correctly.
 
How do i see the crash log? I already compile in debug mod, but it didnt work.
 
Last edited:
You need to run it in the debugger.

if i choose debugging mod in MVS, while in running, it says "cannot open config.lua", but all files are in "vc12/x64/Debug/"
 
Last edited:
Hello, guys.
I got this warning while compiling:

1>c:\users\thivod\desktop\forgottenserver\src\otserv.cpp(112): warning C4702: unreachable code

What should I do to get rid of this warning?

Thank you!
 
Good job, helped me a lot.
Thank you.
Code:
Error    1    error C2660: 'Player::eek:nGainSharedExperience' : function does not take 1 arguments    C:\forgottenserver-master\src\party.cpp    401    1    theforgottenserver
Error    2    error C2065: 'deathLossPercent' : undeclared identifier    C:\forgottenserver-master\src\player.cpp    1933    1    theforgottenserver
Error    3    error C2601: 'Player::getPercentLevel' : local function definitions are illegal    C:\forgottenserver-master\src\player.cpp    1979    1    theforgottenserver
Error    4    error C2601: 'Player::eek:nBlockHit' : local function definitions are illegal    C:\forgottenserver-master\src\player.cpp    1992    1    theforgottenserver
Error    5    error C2601: 'Player::eek:nAttackedCreatureBlockHit' : local function definitions are illegal    C:\forgottenserver-master\src\player.cpp    2003    1    theforgottenserver
Error    6    error C2601: 'Player::hasShield' : local function definitions are illegal    C:\forgottenserver-master\src\player.cpp    2034    1    theforgottenserver
Error    7    error C2601: 'Player::blockHit' : local function definitions are illegal    C:\forgottenserver-master\src\player.cpp    2049    1    theforgottenserver
Error    8    error C2601: 'Player::getIP' : local function definitions are illegal    C:\forgottenserver-master\src\player.cpp    2106    1    theforgottenserver
Error    9    error C2601: 'Player::death' : local function definitions are illegal    C:\forgottenserver-master\src\player.cpp    2115    1    theforgottenserver
Error    10    error C2181: illegal else without matching if    C:\forgottenserver-master\src\player.cpp    2293    1    theforgottenserver
Error    11    error C2065: 'expLoss' : undeclared identifier    C:\forgottenserver-master\src\player.cpp    2212    1    theforgottenserver
Error    12    error C2275: 'uint64_t' : illegal use of this type as an expression    C:\forgottenserver-master\src\player.cpp    2232    1    theforgottenserver
Error    13    error C2146: syntax error : missing ';' before identifier 'nextLevelExp'    C:\forgottenserver-master\src\player.cpp    2232    1    theforgottenserver
Error    14    error C2065: 'nextLevelExp' : undeclared identifier    C:\forgottenserver-master\src\player.cpp    2232    1    theforgottenserver
Error    15    error C2059: syntax error : 'if'    C:\forgottenserver-master\src\player.cpp    2233    1    theforgottenserver
Error    16    error C2143: syntax error : missing ';' before '{'    C:\forgottenserver-master\src\player.cpp    2233    1    theforgottenserver
Error    17    error C2065: 'nextLevelExp' : undeclared identifier    C:\forgottenserver-master\src\player.cpp    2234    1    theforgottenserver
Error    18    error C2660: 'Player::getPercentLevel' : function does not take 1 arguments    C:\forgottenserver-master\src\player.cpp    2234    1    theforgottenserver
Error    19    error C2059: syntax error : '}'    C:\forgottenserver-master\src\player.cpp    2236    1    theforgottenserver
Error    20    error C2181: illegal else without matching if    C:\forgottenserver-master\src\player.cpp    2237    1    theforgottenserver
Error    21    error C2106: '=' : left operand must be l-value    C:\forgottenserver-master\src\player.cpp    2238    1    theforgottenserver
Error    22    error C2059: syntax error : '}'    C:\forgottenserver-master\src\player.cpp    2240    1    theforgottenserver
Error    23    error C2065: 'unfairFightReduction' : undeclared identifier    C:\forgottenserver-master\src\player.cpp    2271    1    theforgottenserver
    24    IntelliSense: identifier "WSA13" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    70    19    theforgottenserver
    25    IntelliSense: identifier "WSA102" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    73    34    theforgottenserver
    26    IntelliSense: identifier "WSA100" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    76    20    theforgottenserver
    27    IntelliSense: identifier "WSA113" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    79    23    theforgottenserver
    28    IntelliSense: identifier "WSA103" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    82    21    theforgottenserver
    29    IntelliSense: identifier "WSA106" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    90    24    theforgottenserver
    30    IntelliSense: identifier "WSA107" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    93    24    theforgottenserver
    31    IntelliSense: identifier "WSA108" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    96    22    theforgottenserver
    32    IntelliSense: identifier "WSA9" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    99    20    theforgottenserver
    33    IntelliSense: identifier "WSA14" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    102    11    theforgottenserver
    34    IntelliSense: identifier "WSA110" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    105    22    theforgottenserver
    35    IntelliSense: identifier "WSA112" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    108    17    theforgottenserver
    36    IntelliSense: identifier "WSA4" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    111    17    theforgottenserver
    37    IntelliSense: identifier "WSA22" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    114    22    theforgottenserver
    38    IntelliSense: identifier "WSA115" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    117    18    theforgottenserver
    39    IntelliSense: identifier "WSA38" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    120    19    theforgottenserver
    40    IntelliSense: identifier "WSA116" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    123    18    theforgottenserver
    41    IntelliSense: identifier "WSA117" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    126    19    theforgottenserver
    42    IntelliSense: identifier "WSA118" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    129    25    theforgottenserver
    43    IntelliSense: identifier "WSA24" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    132    20    theforgottenserver
    44    IntelliSense: identifier "WSA119" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    135    21    theforgottenserver
    45    IntelliSense: identifier "WSA123" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    148    24    theforgottenserver
    46    IntelliSense: identifier "WSA126" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    151    19    theforgottenserver
    47    IntelliSense: identifier "WSA128" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    154    16    theforgottenserver
    48    IntelliSense: identifier "WSA130" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    162    29    theforgottenserver
    49    IntelliSense: identifier "WSA138" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    168    15    theforgottenserver
    50    IntelliSense: identifier "WSA140" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    176    17    theforgottenserver
    51    IntelliSense: identifier "WSA11001L" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    182    20    theforgottenserver
    52    IntelliSense: identifier "WSA11002L" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    185    30    theforgottenserver
    53    IntelliSense: identifier "WSA11004L" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    188    13    theforgottenserver
    54    IntelliSense: identifier "WSA11003L" is undefined    c:\boost_1_55_0\boost\asio\error.hpp    191    17    theforgottenserver
    55    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0x00000002" is undefined    c:\boost_1_55_0\boost\asio\ip\resolver_query_base.hpp    66    22    theforgottenserver
  theforgottenserver
 
Last edited:
HELP ME!
Code:
56    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0x00000001" is undefined    c:\boost_1_55_0\boost\asio\ip\resolver_query_base.hpp    67    15    theforgottenserver
    57    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0x00000004" is undefined    c:\boost_1_55_0\boost\asio\ip\resolver_query_base.hpp    68    20    theforgottenserver
    58    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0x00000008" is undefined    c:\boost_1_55_0\boost\asio\ip\resolver_query_base.hpp    69    23    theforgottenserver
    59    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0x00000800" is undefined    c:\boost_1_55_0\boost\asio\ip\resolver_query_base.hpp    70    17    theforgottenserver
    60    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0x00000100" is undefined    c:\boost_1_55_0\boost\asio\ip\resolver_query_base.hpp    71    20    theforgottenserver
    61    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0x00000400" is undefined    c:\boost_1_55_0\boost\asio\ip\resolver_query_base.hpp    72    26    theforgottenserver
    62    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0" is undefined    c:\boost_1_55_0\boost\asio\ip\multicast.hpp    51    3    theforgottenserver
    63    IntelliSense: identifier "BOOST_ASIO_OS_DEF_12" is undefined    c:\boost_1_55_0\boost\asio\ip\multicast.hpp    52    3    theforgottenserver
    64    IntelliSense: identifier "BOOST_ASIO_OS_DEF_13" is undefined    c:\boost_1_55_0\boost\asio\ip\multicast.hpp    80    3    theforgottenserver
    65    IntelliSense: identifier "BOOST_ASIO_OS_DEF_9" is undefined    c:\boost_1_55_0\boost\asio\ip\multicast.hpp    108    3    theforgottenserver
    66    IntelliSense: identifier "BOOST_ASIO_OS_DEF_10" is undefined    c:\boost_1_55_0\boost\asio\ip\multicast.hpp    144    3    theforgottenserver
    67    IntelliSense: identifier "BOOST_ASIO_OS_DEF_11" is undefined    c:\boost_1_55_0\boost\asio\ip\multicast.hpp    181    3    theforgottenserver
    68    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0x0001" is undefined    c:\boost_1_55_0\boost\asio\ip\tcp.hpp    126    37    theforgottenserver
    69    IntelliSense: identifier "BOOST_ASIO_OS_DEF_0" is undefined    c:\boost_1_55_0\boost\asio\ip\unicast.hpp    59    3    theforgottenserver
    70    IntelliSense: identifier "BOOST_ASIO_OS_DEF_4" is undefined    c:\boost_1_55_0\boost\asio\ip\unicast.hpp    60    3    theforgottenserver
    71    IntelliSense: too few arguments in function call    c:\forgottenserver-master\src\party.cpp    401    49

Now
Code:
Error    1    error C2171: '!' : illegal on operands of type 'void'    C:\forgottenserver-master\src\player.cpp    1852    1    theforgottenserver
Error    2    error C2451: conditional expression of type 'void' is illegal    C:\forgottenserver-master\src\player.cpp    1852    1    theforgottenserver
Error    3    error C2171: '!' : illegal on operands of type 'void'    C:\forgottenserver-master\src\player.cpp    1935    1    theforgottenserver
Error    4    error C2451: conditional expression of type 'void' is illegal    C:\forgottenserver-master\src\player.cpp    1935    1    theforgottenserver
Error    5    error C2451: conditional expression of type 'void' is illegal    C:\forgottenserver-master\src\player.cpp    2240    1    theforgottenserver

Solved ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Shit Im so good at programming
 
Last edited:
Hey Domonique,
Thanks for your tutorial, but i'm having a little trouble with this error.

Code:
Warning    1    warning MSB8003: Could not find WindowsSDKDir variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets    362    5    theforgottenserver
Warning    2    warning C4005: '__useHeader' : macro redefinition    c:\program files (x86)\microsoft sdks\windows\v7.1a\include\sal_supp.h    57    1    theforgottenserver
Warning    3    warning C4005: '__on_failure' : macro redefinition    c:\program files (x86)\microsoft sdks\windows\v7.1a\include\specstrings_supp.h    77    1    theforgottenserver
Error    64    error LNK2001: unresolved external symbol IsProcessorFeaturePresent    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\MSVCRT.lib(gs_report.obj)    theforgottenserver
Error    57    error LNK2001: unresolved external symbol GetAcceptExSockaddrs    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\server.obj    theforgottenserver
Error    12    error LNK2001: unresolved external symbol __imp_LeaveCriticalSection    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\connection.obj    theforgottenserver
Error    63    error LNK2001: unresolved external symbol __imp_IsDebuggerPresent    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\MSVCRT.lib(gs_report.obj)    theforgottenserver
Error    9    error LNK2001: unresolved external symbol __imp_ioctlsocket    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\connection.obj    theforgottenserver
Error    41    error LNK2001: unresolved external symbol __imp_InitializeCriticalSectionAndSpinCount    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\server.obj    theforgottenserver
Error    52    error LNK2001: unresolved external symbol __imp_htons    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\server.obj    theforgottenserver
Error    4    error LNK2001: unresolved external symbol __imp_htonl    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\connection.obj    theforgottenserver
Error    16    error LNK2001: unresolved external symbol __imp_GetSystemTimeAsFileTime    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\connection.obj    theforgottenserver
Error    17    error LNK2001: unresolved external symbol __imp_GetSystemTimeAsFileTime    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\MSVCRT.lib(gs_support.obj)    theforgottenserver
Error    68    error LNK1120: 62 unresolved externals    \\psf\Home\Desktop\Tools\Parallels\Tibia\OT\forgottenserver-master\vc12\x64\Release\theforgottenserver.exe    theforgottenserver
[HAD TO REMOVE SOME CODE DUE TO CHARACTER LIMIT] - you get the idea.


Along with these warnings:
Code:
Warning    1    warning MSB8003: Could not find WindowsSDKDir variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets    362    5    theforgottenserver
Warning    2    warning C4005: '__useHeader' : macro redefinition    c:\program files (x86)\microsoft sdks\windows\v7.1a\include\sal_supp.h    57    1    theforgottenserver
Warning    3    warning C4005: '__on_failure' : macro redefinition    c:\program files (x86)\microsoft sdks\windows\v7.1a\include\specstrings_supp.h    77    1    theforgottenserver

Here is my setup:
9pxonl.png

2n6sue.png

Note: I am using Parallels Desktop.

Is there anything I'm doing wrong?

Thanks in advance. :)
 
Last edited:
I know this is a really stupid question, but I just came back to OTs after a couple years, so bear with me please :p I followed the tutorial and managed to make it all the way to the end without a hitch; I set up Znote AAC, and created an account. But I can't for the love of all that is holy figure out what client I am supposed to use <.< I have 10.53 and 10.41, but I can't find any doc anywhere where it says what version is currently supported.

So... that. If anyone could enlighten me, I'd be forever in your debt. Thanks in advance.

Edit: Nevermind, I figured it out. Btw, for those looking for wich client is currently working, you have to check the src/definitions.h file. As of Aug 30th it's 10.41
 
Last edited:
Back
Top