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

[7.4] TFS 1.2

1>------ Rebuild All started: Project: theforgottenserver, Configuration: Release x64 ------
1>otpch.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory
1>Done building project "theforgottenserver.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

i get this error when i tery to compile..

Also had this problem solve by adding additional packages in the Windows SDK for my installation of Visual Studio. The latest SDK 6 boxes tab individual components. Sorry for my English.

I have other errors if someone could help me.

a. I got this when compiling

1>..\src\game.cpp(3409): warning C4189: 'targetPlayer': the local variable is initialized but makes no reference to it
1>..\src\player.cpp(680): warning C4100: 'isLogin': unreferenced formal parameter
1>..\src\protocolgame.cpp(1724): warning C4063: case '2' It is not a valid value for switch of the Enum statement 'PlayerSex_t'
1>c:\users\c10b38rn30t18x\downloads\theforgottenserver-7.4-master\src\enums.h(266): note: see Declaration of 'PlayerSex_t'
1>..\src\weapons.cpp(143): warning C4100: 'level': unreferenced formal parameter
1>..\src\weapons.cpp(148): warning C4100: 'level': unreferenced formal parameter

However the server opens without errors

b. I can not logging on the server using the client with ip 127.0.0.1 i get password incorrect

I create account and player in phpmyadmin
i have xampp-portable-win32-5.6.28-0-VC11-installer

If someone I could help please with this appreciate it very much
 
I'm having trouble mapping for this server, when i add my 7.4 map the server crashes. Only load the original map.
 
open it via cmd and see what the error says
 
\forgottenserver-master\src\otpch.h(42): fatal error C1083: No se puede abrir el archivo incluir: 'boost/asio.hpp': No such file or directory
1>Compilación del proyecto "theforgottenserver.vcxproj" terminada -- ERROR.
 
I also get this errors.

1>..\src\game.cpp(3409): warning C4189: 'targetPlayer': the local variable is initialized but makes no reference to it
1>..\src\player.cpp(680): warning C4100: 'isLogin': unreferenced formal parameter
1>..\src\protocolgame.cpp(1724): warning C4063: case '2' It is not a valid value for switch of the Enum statement 'PlayerSex_t'
1>c:\users\c10b38rn30t18x\downloads\theforgottenserver-7.4-master\src\enums.h(266): note: see Declaration of 'PlayerSex_t'
1>..\src\weapons.cpp(143): warning C4100: 'level': unreferenced formal parameter
1>..\src\weapons.cpp(148): warning C4100: 'level': unreferenced formal parameter
 
I also get this errors.

1>..\src\game.cpp(3409): warning C4189: 'targetPlayer': the local variable is initialized but makes no reference to it
1>..\src\player.cpp(680): warning C4100: 'isLogin': unreferenced formal parameter
1>..\src\protocolgame.cpp(1724): warning C4063: case '2' It is not a valid value for switch of the Enum statement 'PlayerSex_t'
1>c:\users\c10b38rn30t18x\downloads\theforgottenserver-7.4-master\src\enums.h(266): note: see Declaration of 'PlayerSex_t'
1>..\src\weapons.cpp(143): warning C4100: 'level': unreferenced formal parameter
1>..\src\weapons.cpp(148): warning C4100: 'level': unreferenced formal parameter
Compiling on Windows · otland/forgottenserver Wiki · GitHub
 
Bro, I followed that guide like 10 times...

1. Download forgotten7.4
2. Download boost and sdk.
3. run register_tfssdk_env.bat in sdk folder (C:\Users\xxxxx\Documents\tfs-sdk-3.2\register_tfssdk_env.bat)
4. run register_boost_env.bat in boost folder (C:\Users\xxxxx\Documents\boost_1_64_0\register_boost_env.bat)
5. open theforgottenserver.sln
6. select release and x64
7. select Windows SDK version in project/properties/general --> 10.0.15063.0
(default version give me bug)
8. select platform tools Visual Studio 2017 (v141)
(v140 give bug)
9. select compile -> recompile.
 
Bro, I followed that guide like 10 times...

Except you didn't, the one I linked has another version of boost. I had 0 problems at all compiling under Windows 7 with MSVC 2015.
 
Except you didn't, the one I linked has another version of boost. I had 0 problems at all compiling under Windows 7 with MSVC 2015.
This is the errors I'm getting:
Gyazo - e8beeef315304f292dd89577a7a00d5c.png
I followed that steps again removing all I had.
I also installed 2015 version in Windows 10 and didn't work.
Code:
1>------ Rebuild All started: Project: theforgottenserver, Configuration: Release x64 ------
1>  otpch.cpp
1>  actions.cpp
1>  ban.cpp
1>  baseevents.cpp
1>  bed.cpp
1>  chat.cpp
1>  combat.cpp
1>  commands.cpp
1>  condition.cpp
1>  configmanager.cpp
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  databasetasks.cpp
1>  depotchest.cpp
1>  depotlocker.cpp
1>  events.cpp
1>  fileloader.cpp
1>  game.cpp
1>  globalevent.cpp
1>  groups.cpp
1>..\src\game.cpp(3409): warning C4189: 'targetPlayer': local variable is initialized but not referenced
1>  guild.cpp
1>  house.cpp
1>  housetile.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  item.cpp
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outputmessage.cpp
1>  party.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\atomic(659): error C2338: You've instantiated std::atomic<T> with sizeof(T) equal to 2/4/8 and alignof(T) < sizeof(T). Before VS 2015 Update 2, this would have misbehaved at runtime. VS 2015 Update 2 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility. Please define _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this, and that everything you're linking has been compiled with VS 2015 Update 2 (or later). (compiling source file ..\src\outputmessage.cpp)
1>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\atomic(669): note: see reference to class template instantiation 'std::_Atomic_base<_Ty,4>' being compiled
1>          with
1>          [
1>              _Ty=boost::lockfree::detail::tagged_index
1>          ] (compiling source file ..\src\outputmessage.cpp)
1>  C:\local\boost_1_60_0\boost/lockfree/detail/freelist.hpp(603): note: see reference to class template instantiation 'std::atomic<boost::lockfree::detail::tagged_index>' being compiled (compiling source file ..\src\outputmessage.cpp)
1>  C:\local\boost_1_60_0\boost/lockfree/detail/freelist.hpp(604): note: see reference to class template instantiation 'boost::lockfree::detail::fixed_size_freelist<T,NodeStorage>' being compiled (compiling source file ..\src\outputmessage.cpp)
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>..\src\player.cpp(680): warning C4100: 'isLogin': unreferenced formal parameter
1>  protocollogin.cpp
1>  protocolstatus.cpp
1>  raids.cpp
1>..\src\protocolgame.cpp(1724): warning C4063: case '2' is not a valid value for switch of enum 'PlayerSex_t'
1>  c:\users\adri\documents\relyxia\src\enums.h(266): note: see declaration of 'PlayerSex_t'
1>  rsa.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>  server.cpp
1>  spawn.cpp
1>  spells.cpp
1>  talkaction.cpp
1>  tasks.cpp
1>  teleport.cpp
1>  thing.cpp
1>  tile.cpp
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>  waitlist.cpp
1>  weapons.cpp
1>  wildcardtree.cpp
1>..\src\weapons.cpp(143): warning C4100: 'level': unreferenced formal parameter
1>..\src\weapons.cpp(148): warning C4100: 'level': unreferenced formal parameter
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
 
This is the errors I'm getting:
Gyazo - e8beeef315304f292dd89577a7a00d5c.png
I followed that steps again removing all I had.
I also installed 2015 version in Windows 10 and didn't work.
Code:
1>------ Rebuild All started: Project: theforgottenserver, Configuration: Release x64 ------
1>  otpch.cpp
1>  actions.cpp
1>  ban.cpp
1>  baseevents.cpp
1>  bed.cpp
1>  chat.cpp
1>  combat.cpp
1>  commands.cpp
1>  condition.cpp
1>  configmanager.cpp
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  databasetasks.cpp
1>  depotchest.cpp
1>  depotlocker.cpp
1>  events.cpp
1>  fileloader.cpp
1>  game.cpp
1>  globalevent.cpp
1>  groups.cpp
1>..\src\game.cpp(3409): warning C4189: 'targetPlayer': local variable is initialized but not referenced
1>  guild.cpp
1>  house.cpp
1>  housetile.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  item.cpp
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outputmessage.cpp
1>  party.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\atomic(659): error C2338: You've instantiated std::atomic<T> with sizeof(T) equal to 2/4/8 and alignof(T) < sizeof(T). Before VS 2015 Update 2, this would have misbehaved at runtime. VS 2015 Update 2 was fixed to handle this correctly, but the fix inherently changes layout and breaks binary compatibility. Please define _ENABLE_ATOMIC_ALIGNMENT_FIX to acknowledge that you understand this, and that everything you're linking has been compiled with VS 2015 Update 2 (or later). (compiling source file ..\src\outputmessage.cpp)
1>  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\atomic(669): note: see reference to class template instantiation 'std::_Atomic_base<_Ty,4>' being compiled
1>          with
1>          [
1>              _Ty=boost::lockfree::detail::tagged_index
1>          ] (compiling source file ..\src\outputmessage.cpp)
1>  C:\local\boost_1_60_0\boost/lockfree/detail/freelist.hpp(603): note: see reference to class template instantiation 'std::atomic<boost::lockfree::detail::tagged_index>' being compiled (compiling source file ..\src\outputmessage.cpp)
1>  C:\local\boost_1_60_0\boost/lockfree/detail/freelist.hpp(604): note: see reference to class template instantiation 'boost::lockfree::detail::fixed_size_freelist<T,NodeStorage>' being compiled (compiling source file ..\src\outputmessage.cpp)
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>..\src\player.cpp(680): warning C4100: 'isLogin': unreferenced formal parameter
1>  protocollogin.cpp
1>  protocolstatus.cpp
1>  raids.cpp
1>..\src\protocolgame.cpp(1724): warning C4063: case '2' is not a valid value for switch of enum 'PlayerSex_t'
1>  c:\users\adri\documents\relyxia\src\enums.h(266): note: see declaration of 'PlayerSex_t'
1>  rsa.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>  server.cpp
1>  spawn.cpp
1>  spells.cpp
1>  talkaction.cpp
1>  tasks.cpp
1>  teleport.cpp
1>  thing.cpp
1>  tile.cpp
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>  waitlist.cpp
1>  weapons.cpp
1>  wildcardtree.cpp
1>..\src\weapons.cpp(143): warning C4100: 'level': unreferenced formal parameter
1>..\src\weapons.cpp(148): warning C4100: 'level': unreferenced formal parameter
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Well, the errors regarding wrong boost disappeared.
 
Hi @ond !

I've tried to compile your sources in my ubuntu 14.04 64bit and i got this error:

Code:
[  1%] Building CXX object CMakeFiles/tfs.dir/src/tile.cpp.o
/root/tfs/src/tile.cpp: In member function 'virtual void Tile::addThing(int32_t, Thing*)':
/root/tfs/src/tile.cpp:874:29: error: no matching function for call to 'TileItemVector::insert(__gnu_cxx::__normal_iterator<Item* const*, std::vector<Item*> >&, Item*&)'
       items->insert(it, item);
                             ^
/root/tfs/src/tile.cpp:874:29: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
                 from /root/tfs/src/definitions.h:41,
                 from /root/tfs/src/otpch.h:23,
                 from /root/tfs/build/cotire/tfs_CXX_prefix.cxx:4,
                 from /root/tfs/build/cotire/tfs_CXX_prefix.hxx:4:
/usr/include/c++/4.8/bits/stl_vector.h:1044:9: note: template<class _InputIterator, class> void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; <template-parameter-2-2> = <template-parameter-1-2>; _Tp = Item*; _Alloc = std::allocator<Item*>]
         insert(iterator __position, _InputIterator __first,
         ^
/usr/include/c++/4.8/bits/stl_vector.h:1044:9: note:   template argument deduction/substitution failed:
/root/tfs/src/tile.cpp:874:29: note:   cannot convert 'it' (type '__gnu_cxx::__normal_iterator<Item* const*, std::vector<Item*> >') to type 'std::vector<Item*>::iterator {aka __gnu_cxx::__normal_iterator<Item**, std::vector<Item*> >}'
       items->insert(it, item);
                             ^
In file included from /usr/include/c++/4.8/vector:64:0,
                 from /root/tfs/src/definitions.h:41,
                 from /root/tfs/src/otpch.h:23,
                 from /root/tfs/build/cotire/tfs_CXX_prefix.cxx:4,
                 from /root/tfs/build/cotire/tfs_CXX_prefix.hxx:4:
/usr/include/c++/4.8/bits/stl_vector.h:1023:7: note: void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = Item*; _Alloc = std::allocator<Item*>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Item**, std::vector<Item*> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Item**; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = Item*]
       insert(iterator __position, size_type __n, const value_type& __x)
       ^
/usr/include/c++/4.8/bits/stl_vector.h:1023:7: note:   candidate expects 3 arguments, 2 provided
/usr/include/c++/4.8/bits/stl_vector.h:1005:7: note: void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::initializer_list<_Tp>) [with _Tp = Item*; _Alloc = std::allocator<Item*>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Item**, std::vector<Item*> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Item**]
       insert(iterator __position, initializer_list<value_type> __l)
       ^
/usr/include/c++/4.8/bits/stl_vector.h:1005:7: note:   no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<Item* const*, std::vector<Item*> >' to 'std::vector<Item*>::iterator {aka __gnu_cxx::__normal_iterator<Item**, std::vector<Item*> >}'
/usr/include/c++/4.8/bits/stl_vector.h:988:7: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Item*; _Alloc = std::allocator<Item*>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Item**, std::vector<Item*> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Item**; std::vector<_Tp, _Alloc>::value_type = Item*]
       insert(iterator __position, value_type&& __x)
       ^
/usr/include/c++/4.8/bits/stl_vector.h:988:7: note:   no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<Item* const*, std::vector<Item*> >' to 'std::vector<Item*>::iterator {aka __gnu_cxx::__normal_iterator<Item**, std::vector<Item*> >}'
In file included from /usr/include/c++/4.8/vector:69:0,
                 from /root/tfs/src/definitions.h:41,
                 from /root/tfs/src/otpch.h:23,
                 from /root/tfs/build/cotire/tfs_CXX_prefix.cxx:4,
                 from /root/tfs/build/cotire/tfs_CXX_prefix.hxx:4:
/usr/include/c++/4.8/bits/vector.tcc:107:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Item*; _Alloc = std::allocator<Item*>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Item**, std::vector<Item*> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = Item**; std::vector<_Tp, _Alloc>::value_type = Item*]
     vector<_Tp, _Alloc>::
     ^
/usr/include/c++/4.8/bits/vector.tcc:107:5: note:   no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<Item* const*, std::vector<Item*> >' to 'std::vector<Item*>::iterator {aka __gnu_cxx::__normal_iterator<Item**, std::vector<Item*> >}'
make[2]: *** [CMakeFiles/tfs.dir/src/tile.cpp.o] Error 1
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
make: *** [all] Error 2

Also i tried compile with Debian 8 and works successfully


Could you help?
 
Why houses don't work ? While it worked on OTX, it doesnt on this tfs 1.2.. After server start I can log in but when I look on houses door (You see a door), not even OTX headquarter. Also nothing created in mysql - houses etc. anyone know why?
 
I'm running in to some trouble (early trouble when trying to open the forgottenserver.exe). If anybody wishes to help me out please PM me.
 
GitHub - tarantonio/theforgottenserver-7.4

I have compiled those sources and I have obtained these results

C++:
1>------ Compiled operation started: project: theforgottenserver, configuration: Debug x64 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(377,5): warning MSB8004: The Output directory does not end with a final slash. This compilation instance will add the slash because it is necessary so that the Output directory can be evaluated correctly.
1>otpch.cpp
1>Unknown compiler version - please run the configure tests and report the results
1>actions.cpp
1>ban.cpp
1>baseevents.cpp
1>beds.cpp
1>chat.cpp
1>combat.cpp
1>commands.cpp
1>condition.cpp
1>configmanager.cpp
1>connection.cpp
1>container.cpp
1>creature.cpp
1>creatureevent.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>house.cpp
1>housetile.cpp
1>inbox.cpp
1>ioguild.cpp
1>iologindata.cpp
1>iomap.cpp
1>iomapserialize.cpp
1>iomarket.cpp
1>item.cpp
1>items.cpp
1>luascript.cpp
1>mailbox.cpp
1>map.cpp
1>monster.cpp
1>monsters.cpp
1>mounts.cpp
1>movement.cpp
1>networkmessage.cpp
1>npc.cpp
1>otserv.cpp
1>outfit.cpp
1>outputmessage.cpp
1>party.cpp
1>player.cpp
1>position.cpp
1>protocol.cpp
1>protocolgame.cpp
1>protocollogin.cpp
1>quests.cpp
1>\theforgottenserver-master\src\protocollogin.cpp(150): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\um\winsock2.h(1830): note: see the declaration of 'inet_addr'
1>raids.cpp
1>rsa.cpp
1>scheduler.cpp
1>scriptmanager.cpp
1>server.cpp
1>spawn.cpp
1>spells.cpp
1>protocolstatus.cpp
1>talkaction.cpp
1>tasks.cpp
1>teleport.cpp
1>thing.cpp
1>tile.cpp
1>tools.cpp
1>trashholder.cpp
1>vocation.cpp
1>waitlist.cpp
1>weapons.cpp
1>wildcardtree.cpp
1>LINK : fatal error LNK1104: can not open the file 'mpir_d.lib'
1>Project compilation "theforgottenserver.vcxproj" completed -- ERROR.
========== Compile: 0 correct, 1 incorrect, 0 updated, 0 omitted ==========

Someone knows how to solve this
 
Back
Top