• 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 simple tutorial for beginners

UpInSmoke

Supreme Ruler
Joined
Nov 16, 2008
Messages
303
Reaction score
21
Okay so I had many problems compiling and here is the only way I was able to. So I thought I would would share this to help anyone who is having troubles.

1. Download: Download | Microsoft Visual Studio 2012

2. Download VC (this includes all the librarys/boost): https://mega.co.nz/#!WVBDlCTR!X2baCAYMXwsW-gP209rsCy12Ty5BThEUAWJKsuLnv-Q

3. Extract VC to your desktop

4. Download your sources from here for regular user: Subversion and premium users: Subversion

5. Extract your sources to your desktop

6. goto your the servers folder you just downloaded and extracted -> sources -> v10
(if you dont have a v10 folder download mine here, tested with 2 different trucks, should work with all I hope.. v10.zip - Speedy Share - upload your files here)

7. rightclick tfs VC++ project -> open with -> MS 2012

8. rightclick tfs (in solution explorer) -> properties -> C/C++

9. Click on addition include librarys (click the little arrow at the right) -> edit -> (click in the white) click the ... thing and located your VC folder on your desktop. Inside your vc folder link the include folder. Then link the VC folder itself. Should look something like this:
C:\Users\USER\Desktop\VC\include
C:\Users\USER\Desktop\VC

10. now click OK -> Apply -> Click the linker tab on the left -> Additional Library Directories (Should be 9th from the top in the list). Now in this one we will link the boost_1_53_0, lib64 and library64.
Should look something like this:
C:\Users\USER\Desktop\VC\boost_1_53_0
C:\Users\USER\Desktop\VC\lib64
C:\Users\USER\Desktop\VC\library64

11. Click OK -> Apply

12. Now at the top of the properties list you will see Configuration, Make sure it is set to Release then beside that you will see Platform, set that to your platform.
(If you dont know what platform you have go to your start menu -> computer -> (rightclick) properties -> System Type (It will be 32 or 64 bit)

13. Now you are ready to compile ;) click OK to the properties page in MSVC 2012

14. right click tfs in Solution Explorer and click Rebuild

15. a tfs.exe should be now created in your servers source (will be in x64 -> release)

16. Inside the x64 -> release where the new tfs.exe is make sure you add the proper dll pack: http://otland.net/f18/opentibia-dll-pack-v2-0-a-155310/

17. drag and drop the dlls from your dll pack into the release folder. Now go back to the source code of your server, find the file called config.lua.dist and put that file into your release folder. right click it -> rename -> delete the .dist part (this is your config.lua)

18. go to the main folder of your server and take your sql files/datapack and drag it also into your release folder.

There now when you click the tfs.exe it will run :)

Hope this has helped, if you get any errors post here and i will try to help
 
Finally some tutorial which works, but I have so many warnings, what is that?

I deleted several errors from code, because there is limit to 10000 letters in the message.

Code:
1>------ Rebuild All started: Project: theforgottenserver, Configuration: Release x64 ------
1>  otpch.cpp
1>  actions.cpp
1>  admin.cpp
1>  ban.cpp
1>  baseevents.cpp
1>  beds.cpp
1>  combat.cpp
1>  commands.cpp
1>  condition.cpp
1>  configmanager.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\connection.cpp)
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\container.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\creature.cpp)
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  depotchest.cpp
1>  depotlocker.cpp
1>  fileloader.cpp
1>  game.cpp
1>  globalevent.cpp
1>  groups.cpp
1>  guild.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\game.cpp)
1>  house.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\globalevent.cpp)
1>  housetile.cpp
1>  inbox.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\housetile.cpp)
1>  iomap.cpp
1>  iomapserialize.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\iologindata.cpp)
1>  iomarket.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\iomap.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\iomapserialize.cpp)
1>  item.cpp
1>  items.cpp
1>  logger.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\item.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\luascript.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\mailbox.cpp)
1>  map.cpp
1>  md5.cpp
1>  modalwindow.cpp
1>  monster.cpp
1>  monsters.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\map.cpp)
1>  mounts.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\monsters.cpp)
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\movement.cpp)
1>  outfit.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\npc.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\otserv.cpp)
1>  outputmessage.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\outputmessage.cpp)
1>  party.cpp
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\protocol.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\party.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\player.cpp)
1>  protocollogin.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\protocolgame.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\protocollogin.cpp)
1>  protocolold.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\protocolold.cpp)
1>  quests.cpp
1>  raids.cpp
1>  rsa.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\scheduler.cpp)
1>  server.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\raids.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\server.cpp)
1>  sha1.cpp
1>  spawn.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\scriptmanager.cpp)
1>  spells.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\spawn.cpp)
1>  status.cpp
1>  talkaction.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\spells.cpp)
1>  tasks.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\tasks.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\status.cpp)
1>  teleport.cpp
1>  thing.cpp
1>  tile.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\teleport.cpp)
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>  waitlist.cpp
1>  weapons.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\tile.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\trashholder.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\weapons.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\waitlist.cpp)
1>  wildcardtree.cpp
1>  Generating code
1>  Finished generating code
1>  theforgottenserver.vcxproj -> D:\Tibia Server Project\TFS 1.0\forgottenserver-master\forgottenserver-master\vc11\x64\Release\theforgottenserver.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

That's TFS 1.0.
 
Im really not sure what that is.. ive only compiled 8.6 and 9.8
does the server work fine? i know another way to compile which i like even better now, if you want ill compile it through teamviewer for you.
 
Warning 1 warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification E:\vc\source\vc10\LINK tfs

What this warning?
 
I'm got this error
Code:
1>libboost_thread-vc110-mt-1_53.lib(thread.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

Note: i'm using win 32bits
 
I'm got this error
Code:
1>libboost_thread-vc110-mt-1_53.lib(thread.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

Note: i'm using win 32bits
this problem states that you need to use 64 bit.
Make sure you are using MSVC 2012
if you need help pm me your skype and we will chat in there
 
Hello, here I suffer with the following error.

Code:
Error    1    error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'    C:\Users\Michel\Desktop\forgottenserver\vc11\libboost_thread-vc110-mt-gd-1_53.lib(thread.obj)    theforgottenserver

Use MSVC 2012 Ultimater
Note: I use Win 8.1 32 bit

Sorry for English I use Google translator.
I do not understand much English.

A big hug and be with God!
 
Hello, here I suffer with the following error.

Code:
Error    1    error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'    C:\Users\Michel\Desktop\forgottenserver\vc11\libboost_thread-vc110-mt-gd-1_53.lib(thread.obj)    theforgottenserver

Use MSVC 2012 Ultimater
Note: I use Win 8.1 32 bit

Sorry for English I use Google translator.
I do not understand much English.

A big hug and be with God!

You cant compile a x64 on x86. Get a x64 OS to compile in x64, or just compile in x86
 
Finally some tutorial which works, but I have so many warnings, what is that?

I deleted several errors from code, because there is limit to 10000 letters in the message.

Code:
1>------ Rebuild All started: Project: theforgottenserver, Configuration: Release x64 ------
1>  otpch.cpp
1>  actions.cpp
1>  admin.cpp
1>  ban.cpp
1>  baseevents.cpp
1>  beds.cpp
1>  combat.cpp
1>  commands.cpp
1>  condition.cpp
1>  configmanager.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\connection.cpp)
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\container.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\creature.cpp)
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  depotchest.cpp
1>  depotlocker.cpp
1>  fileloader.cpp
1>  game.cpp
1>  globalevent.cpp
1>  groups.cpp
1>  guild.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\game.cpp)
1>  house.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\globalevent.cpp)
1>  housetile.cpp
1>  inbox.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\housetile.cpp)
1>  iomap.cpp
1>  iomapserialize.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\iologindata.cpp)
1>  iomarket.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\iomap.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\iomapserialize.cpp)
1>  item.cpp
1>  items.cpp
1>  logger.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\item.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\luascript.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\mailbox.cpp)
1>  map.cpp
1>  md5.cpp
1>  modalwindow.cpp
1>  monster.cpp
1>  monsters.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\map.cpp)
1>  mounts.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\monsters.cpp)
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\movement.cpp)
1>  outfit.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\npc.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\otserv.cpp)
1>  outputmessage.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\outputmessage.cpp)
1>  party.cpp
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\protocol.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\party.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\player.cpp)
1>  protocollogin.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\protocolgame.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\protocollogin.cpp)
1>  protocolold.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\protocolold.cpp)
1>  quests.cpp
1>  raids.cpp
1>  rsa.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\scheduler.cpp)
1>  server.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\raids.cpp)
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\server.cpp)
1>  sha1.cpp
1>  spawn.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\scriptmanager.cpp)
1>  spells.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\spawn.cpp)
1>  status.cpp
1>  talkaction.cpp
1>D:\Pobrane\Chrome\VC\VC\boost/thread/future.hpp(354): warning C4913: user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used (..\src\spells.cpp)
1>  tasks.cpp

1>  Generating code
1>  Finished generating code
1>  theforgottenserver.vcxproj -> D:\Tibia Server Project\TFS 1.0\forgottenserver-master\forgottenserver-master\vc11\x64\Release\theforgottenserver.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

That's TFS 1.0.



I having this erros too.. Help... Only Future.hpp
 
Back
Top