• 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

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
>LINK : fatal error LNK1104: can not open the file 'mpir_d.lib'
 
Hello @zinicox,

what about reading the output?

Code:
>\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

It says what you should do to compile it, I'd also suggest you to run this on Linux instead, it's really pointless to run a server on windows.

Best Wishes,
Okke
 
Can't edit my post, I don't know why but I actually removed the line I said that from Peonso + my post will probably lead you into compiling it successfully and without any bloody warnings.
 


Hi, I`ve take this OTS and I was also able to start this on Debian 8 but I have problem about Tibia version.

In definitons.h is set Tibia 7.72, map for Tibia 7.4 is not working and the OTS itself is, I think, not 7.4 version. Can anyone confirm this? And if there is a possibility to downgrade this tfs from 7.72 into 7.4 then how?
 
Hi, I`ve take this OTS and I was also able to start this on Debian 8 but I have problem about Tibia version.

In definitons.h is set Tibia 7.72, map for Tibia 7.4 is not working and the OTS itself is, I think, not 7.4 version. Can anyone confirm this? And if there is a possibility to downgrade this tfs from 7.72 into 7.4 then how?
You need to use the client that comes with it.
 
Not sure what I need to write here but...

Note:
I have never used Github before, so if I made any mistakes you will know why.

About:
  • Based on a downgraded branch by ninjalulz, which according to the file 'definition.h' is TFS 1.2
  • Will load older otb/otbm(7.4 to 7.72) files
  • 7.4 items.otb/otbm follows, can be changed to 7.7. Just take the items folder from like OTHire or similar
  • Custom client included (7.72 client with 7.4 dat/spr/pic)
I don't know any bugs yet since I haven't tried it so hard. I only made it possible to login, change outfit, and all those other necessary things...

I have only stripped the code from functions/features to make the server work with older protocols, which means that all credits goes to the hard-working TFS developers + ninjalulz for downgrading it in the first place to 8.0

Download:
https://github.com/babymannen/theforgottenserver-7.4

Please upload again or close the post
 
Hello src is broken it is not going to compile on linux ubunty 18.04 src has bugs


Code:
[  1%] Generating CXX prefix source cotire/tfs_CXX_prefix.cxx
[  2%] Generating CXX prefix header cotire/tfs_CXX_prefix.hxx
[  4%] Building CXX precompiled header cotire/tfs_CXX_prefix.hxx.gch
Scanning dependencies of target tfs
[  5%] Building CXX object CMakeFiles/tfs.dir/src/otpch.cpp.o
[  6%] Building CXX object CMakeFiles/tfs.dir/src/actions.cpp.o
[  8%] Building CXX object CMakeFiles/tfs.dir/src/ban.cpp.o
[  9%] Building CXX object CMakeFiles/tfs.dir/src/baseevents.cpp.o
[ 10%] Building CXX object CMakeFiles/tfs.dir/src/bed.cpp.o
[ 12%] Building CXX object CMakeFiles/tfs.dir/src/chat.cpp.o
[ 13%] Building CXX object CMakeFiles/tfs.dir/src/combat.cpp.o
[ 14%] Building CXX object CMakeFiles/tfs.dir/src/commands.cpp.o
[ 16%] Building CXX object CMakeFiles/tfs.dir/src/condition.cpp.o
[ 17%] Building CXX object CMakeFiles/tfs.dir/src/configmanager.cpp.o
[ 18%] Building CXX object CMakeFiles/tfs.dir/src/connection.cpp.o
[ 20%] Building CXX object CMakeFiles/tfs.dir/src/container.cpp.o
[ 21%] Building CXX object CMakeFiles/tfs.dir/src/creature.cpp.o
[ 22%] Building CXX object CMakeFiles/tfs.dir/src/creatureevent.cpp.o
[ 24%] Building CXX object CMakeFiles/tfs.dir/src/cylinder.cpp.o
[ 25%] Building CXX object CMakeFiles/tfs.dir/src/database.cpp.o
[ 26%] Building CXX object CMakeFiles/tfs.dir/src/databasemanager.cpp.o
[ 28%] Building CXX object CMakeFiles/tfs.dir/src/databasetasks.cpp.o
[ 29%] Building CXX object CMakeFiles/tfs.dir/src/depotchest.cpp.o
[ 30%] Building CXX object CMakeFiles/tfs.dir/src/depotlocker.cpp.o
[ 32%] Building CXX object CMakeFiles/tfs.dir/src/events.cpp.o
[ 33%] Building CXX object CMakeFiles/tfs.dir/src/fileloader.cpp.o
[ 34%] Building CXX object CMakeFiles/tfs.dir/src/game.cpp.o
/home/ots1/src/game.cpp: In member function ‘bool Game::combatChangeHealth(Creat                                                                                                                                                             ure*, Creature*, CombatDamage&)’:
/home/ots1/src/game.cpp:3402:11: warning: variable ‘attackerPlayer’ set but not                                                                                                                                                              used [-Wunused-but-set-variable]
   Player* attackerPlayer;
           ^~~~~~~~~~~~~~
/home/ots1/src/game.cpp:3409:11: warning: unused variable ‘targetPlayer’ [-Wunus                                                                                                                                                             ed-variable]
   Player* targetPlayer = target->getPlayer();
           ^~~~~~~~~~~~
[ 36%] Building CXX object CMakeFiles/tfs.dir/src/globalevent.cpp.o
[ 37%] Building CXX object CMakeFiles/tfs.dir/src/guild.cpp.o
[ 38%] Building CXX object CMakeFiles/tfs.dir/src/groups.cpp.o
[ 40%] Building CXX object CMakeFiles/tfs.dir/src/house.cpp.o
[ 41%] Building CXX object CMakeFiles/tfs.dir/src/housetile.cpp.o
[ 42%] Building CXX object CMakeFiles/tfs.dir/src/ioguild.cpp.o
[ 44%] Building CXX object CMakeFiles/tfs.dir/src/iologindata.cpp.o
[ 45%] Building CXX object CMakeFiles/tfs.dir/src/iomap.cpp.o
[ 46%] Building CXX object CMakeFiles/tfs.dir/src/iomapserialize.cpp.o
[ 48%] Building CXX object CMakeFiles/tfs.dir/src/item.cpp.o
[ 49%] Building CXX object CMakeFiles/tfs.dir/src/items.cpp.o
[ 50%] Building CXX object CMakeFiles/tfs.dir/src/luascript.cpp.o
[ 52%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/mailbox.cpp.o
[ 53%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/map.cpp.o
[ 54%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/monster.cpp.o
[ 56%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/monsters.cpp.o
[ 57%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/movement.cpp.o
[ 58%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/networkmessage.cpp.o
[ 60%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/npc.cpp.o
[ 61%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/otserv.cpp.o
[ 62%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/outfit.cpp.o
[ 64%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/outputmessage.cpp.o
[ 65%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/party.cpp.o
[ 66%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/player.cpp.o
[ 68%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/position.cpp.o
[ 69%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/protocol.cpp.o
[ 70%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/protocolgame.cpp.o
/home/ots1/src/protocolgame.cpp: W funkcji składowej 'void ProtocolGame::sendOutf itWindow()':
/home/ots1/src/protocolgame.cpp:1724:2: ostrzeżenie: wielkość liter '2' nie jest w enumerate typu 'PlayerSex_t' [-Wswitch]
  przypadek 2:
  ^~~~
[ 72%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/protocollogin.cpp.o
[ 73%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/protocolstatus.cpp.o
[ 74%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/quests.cpp.o
[ 76%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/raids.cpp.o
[ 77%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/rsa.cpp.o
[ 78%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/scheduler.cpp.o
[ 80%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/scriptmanager.cpp.o
[ 81%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/server.cpp.o
[ 82%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/spawn.cpp.o
[ 84%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/spells.cpp.o
[ 85%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/talkaction.cpp.o
[ 86%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/tasks.cpp.o
[ 88%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/teleport.cpp.o
[ 89%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/thing.cpp.o
[ 90%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/tile.cpp.o
[ 92%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/tools.cpp.o
[ 93%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/trashholder.cpp.o
[ 94%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/vocation.cpp.o
[ 96%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/waitlist.cpp.o
[ 97%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/weapons.cpp.o
[ 98%] Budowanie obiektu CXX CMakeFiles/tfs.dir/src/wildcardtree.cpp.o
[100%] Łączenie pliku wykonywalnego CXX
 
Last edited by a moderator:
Im stuck on account creation, use SHA1 hash generator, below is my database record, but still got Account number or password is not correct feedback from the server

@Edit nevermind, solved via instaling znote and creating via this ACC.
 

Attachments

Last edited:
Im stuck on account creation, use SHA1 hash generator, below is my database record, but still got Account number or password is not correct feedback from the server

@Edit nevermind, solved via instaling znote and creating via this ACC.
Confirm this is set correctly
 
yeah, config is right, also sha1 hash generated by znote is same as I pasted into database rotfl. find first issue with this distro. You cannot take blank rune into your hand, and also has weird descripton Screenshot_11.png
 
Both problems from up has been solved. Blank rune - change type of item. Putting items into hands, needed to turn on classic equipment slots, but not like it was in config (true/false), it work for 0/1 value in config.lua. Now I got a problem, no existing mana/life and other fluids like milk. Here is item.xmlScreenshot_31.png
 
Could anyone point me in the direction of the best version of acc creator? I am getting an error with the current 1.2 version of gesiors.
 
Back
Top