• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

[8.60] The Forgotten Server 0.4

Rutserzim

New Member
Joined
Jul 9, 2019
Messages
5
Reaction score
3

Adix910

New Member
Joined
Aug 14, 2015
Messages
37
Reaction score
1
Hello, when i compile this tfs on debian i have error. Someone can help me please?

Code:
protocolgame.cpp: In member function ‘void ProtocolGame::AddCreatureSpeak(Networ                                                               kMessage_ptr, const Creature*, SpeakClasses, std::__cxx11::string, uint16_t, uin                                                               t32_t, Position*, ProtocolGame*)’:
protocolgame.cpp:2971:158: warning: suggest parentheses around ‘&&’ within ‘||’                                                                [-Wparentheses]
   if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !sp                                                               eaker->hasCustomFlag(PlayerCustomFlag_HideLevel) && (pg == NULL || pg != NULL &&                                                                !pg->getIsCast()))
                                                                                                                                                                                                                  ~~~~~~~~~~~^~                                                               ~~~~~~~~~~~~~~~~~
mv -f .deps/protocol.Tpo .deps/protocol.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1 -O2 -fo                                                               mit-frame-pointer -D__USE_MYSQL__ -D__USE_SQLITE__  -D__ENABLE_SERVER_DIAGNOSTIC                                                               __ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-a                                                               liasing -Wno-unused-parameter -Wno-array-bounds -pthread -pipe -MT protocolold.o                                                                -MD -MP -MF .deps/protocolold.Tpo -c -o protocolold.o protocolold.cpp
player.cpp: In member function ‘void Player::manageAccount(const string&)’:
player.cpp:4844:20: warning: iteration 11 invokes undefined behavior [-Waggressi                                                               ve-loop-optimizations]
       talkState[i] = false;
       ~~~~~~~~~~~~~^~~~~~~
player.cpp:4843:26: note: within this loop
      for(int8_t i = 2; i <= 14; i++)
                        ~~^~~~~
mv -f .deps/protocolhttp.Tpo .deps/protocolhttp.Po
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1 -O2 -fo                                                               mit-frame-pointer -D__USE_MYSQL__ -D__USE_SQLITE__  -D__ENABLE_SERVER_DIAGNOSTIC                                                               __ -D__ROOT_PERMISSION__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Wno-strict-a                                                               liasing -Wno-unused-parameter -Wno-array-bounds -pthread -pipe -MT quests.o -MD                                                                -MP -MF .deps/quests.Tpo -c -o quests.o quests.cpp
Makefile:547: recipe for target 'protocolgame.o' failed
make[1]: *** [protocolgame.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/protocollogin.Tpo .deps/protocollogin.Po
mv -f .deps/protocolold.Tpo .deps/protocolold.Po
mv -f .deps/player.Tpo .deps/player.Po
mv -f .deps/quests.Tpo .deps/quests.Po
make[1]: Leaving directory '/home/tfs04/src'
Makefile:404: recipe for target 'all' failed
make: *** [all] Error 2
 

forumek

Member
Joined
Jan 14, 2019
Messages
61
Reaction score
22
I recommend using TFS 1.3 (or TFS 0.3.7 if this is not possible).
This TFS is very old, I think there is no crashbugs, but have bad codes.
but I think that those new TFS distros doesn't preserve original mechanics from 8.6 even though they are downgraded to that version
3777 and 3884 are the original ones for 8.6 and imitate that client best I guess or am I wrong?
 

forumek

Member
Joined
Jan 14, 2019
Messages
61
Reaction score
22
by the way do you know how to compile 3884 with this? I tried to copycat everything and got this huge amount of errors:
your source compiles without problems

C++:
1>..\databasesqlite.cpp(144): error C2440: 'initializing' : cannot convert from 'SQLiteResult *' to 'DBResult *'
1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

1>..\exception.cpp(237): error C2039: 'Eax' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(238): error C2039: 'Ebx' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(239): error C2039: 'Ecx' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(240): error C2039: 'Edx' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(241): error C2039: 'Esi' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(242): error C2039: 'Edi' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(243): error C2039: 'Ebp' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(244): error C2039: 'Esp' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(248): error C2039: 'Esp' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'
1>..\exception.cpp(258): error C2039: 'Ebp' : is not a member of '_CONTEXT'
1>          C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(3294) : see declaration of '_CONTEXT'

1>..\game.cpp(3687): warning C4800: 'ReturnValue' : forcing value to bool 'true' or 'false' (performance warning)
1>..\game.cpp(6357): error C2057: expected constant expression
1>..\game.cpp(6357): error C2466: cannot allocate an array of constant size 0
1>..\game.cpp(6357): error C2133: 'buffer' : unknown size

1>..\iologindata.cpp(338): error C2668: 'ceil' : ambiguous call to overloaded function
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(135): could be 'double ceil(double)'
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(509): or       'float ceil(float)'
1>          C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\math.h(557): or       'long double ceil(long double)'
1>          while trying to match the argument list '(uint64_t)'

1>..\iologindata.cpp(1053): error C2057: expected constant expression
1>..\iologindata.cpp(1053): error C2466: cannot allocate an array of constant size 0
1>..\iologindata.cpp(1053): error C2133: 'buffer' : unknown size
1>..\iologindata.cpp(1081): error C2057: expected constant expression
1>..\iologindata.cpp(1081): error C2466: cannot allocate an array of constant size 0
1>..\iologindata.cpp(1081): error C2133: 'buffer' : unknown size

1>..\items.cpp(1346): fatal error C1061: compiler limit : blocks nested too deeply

1>..\luascript.cpp(153): error C2057: expected constant expression
1>..\luascript.cpp(153): error C2466: cannot allocate an array of constant size 0
1>..\luascript.cpp(153): error C2133: 'buffer' : unknown size
1>..\luascript.cpp(741): error C2039: 'leaf' : is not a member of 'boost::filesystem3::directory_entry'
1>          D:\vc10_pack\include\boost/filesystem/v3/operations.hpp(472) : see declaration of 'boost::filesystem3::directory_entry'
1>..\luascript.cpp(744): error C2676: binary '+' : 'boost::filesystem3::path' does not define this operator or a conversion to a type acceptable to the predefined operator

1>..\protocollogin.cpp(158): error C2057: expected constant expression
1>..\protocollogin.cpp(158): error C2466: cannot allocate an array of constant size 0
1>..\protocollogin.cpp(158): error C2133: 'buffer' : unknown size

1>..\protocolgame.cpp(124): error C2057: expected constant expression
1>..\protocolgame.cpp(124): error C2466: cannot allocate an array of constant size 0
1>..\protocolgame.cpp(124): error C2133: 'buffer' : unknown size

1>..\protocolgame.cpp(497): error C2057: expected constant expression
1>..\protocolgame.cpp(497): error C2466: cannot allocate an array of constant size 0
1>..\protocolgame.cpp(497): error C2133: 'buffer' : unknown size

1>..\scriptmanager.cpp(130): error C2039: 'leaf' : is not a member of 'boost::filesystem3::directory_entry'
1>          D:\vc10_pack\include\boost/filesystem/v3/operations.hpp(472) : see declaration of 'boost::filesystem3::directory_entry'

1>..\talkaction.cpp(137): error C2075: 'cmd' : array initialization needs curly braces
1>..\talkaction.cpp(137): error C2075: 'param' : array initialization needs curly braces

1>..\talkaction.cpp(797): error C2057: expected constant expression
1>..\talkaction.cpp(797): error C2466: cannot allocate an array of constant size 0
1>..\talkaction.cpp(797): error C2133: 'buffer' : unknown size
1>..\talkaction.cpp(806): error C2057: expected constant expression
1>..\talkaction.cpp(806): error C2466: cannot allocate an array of constant size 0
1>..\talkaction.cpp(806): error C2133: 'buffer' : unknown size
1>..\talkaction.cpp(815): error C2057: expected constant expression
1>..\talkaction.cpp(815): error C2466: cannot allocate an array of constant size 0
1>..\talkaction.cpp(815): error C2133: 'buffer' : unknown size
1>..\talkaction.cpp(1098): error C2057: expected constant expression
1>..\talkaction.cpp(1098): error C2466: cannot allocate an array of constant size 0
1>..\talkaction.cpp(1098): error C2133: 'buffer' : unknown size

1>..\tools.cpp(34): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(34): error C2146: syntax error : missing ';' before identifier 'hash'

1>..\tools.cpp(34): error C2065: 'hash' : undeclared identifier
1>..\tools.cpp(37): error C2065: 'byte' : undeclared identifier
1>..\tools.cpp(37): error C2146: syntax error : missing ';' before identifier 'digest'
1>..\tools.cpp(37): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(37): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(37): error C2065: 'DIGESTSIZE' : undeclared identifier
1>..\tools.cpp(40): error C2065: 'hash' : undeclared identifier
1>..\tools.cpp(40): error C2228: left of '.CalculateDigest' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(40): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(40): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>..\tools.cpp(40): error C2146: syntax error : missing ')' before identifier 'byte'
1>..\tools.cpp(40): error C2065: 'byte' : undeclared identifier
1>..\tools.cpp(40): error C2059: syntax error : ')'
1>..\tools.cpp(40): error C2059: syntax error : ')'
1>..\tools.cpp(43): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(43): error C2065: 'HexEncoder' : undeclared identifier
1>..\tools.cpp(43): error C2146: syntax error : missing ';' before identifier 'encoder'
1>..\tools.cpp(43): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(49): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(49): error C2228: left of '.Attach' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(49): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(49): error C2061: syntax error : identifier 'StringSink'
1>..\tools.cpp(50): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(50): error C2228: left of '.Put' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(50): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(50): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(50): error C2070: ''unknown-type'': illegal sizeof operand
1>..\tools.cpp(51): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(51): error C2228: left of '.MessageEnd' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(64): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(64): error C2146: syntax error : missing ';' before identifier 'hash'
1>..\tools.cpp(64): warning C4551: function call missing argument list
1>..\tools.cpp(64): error C2065: 'hash' : undeclared identifier
1>..\tools.cpp(67): error C2065: 'byte' : undeclared identifier
1>..\tools.cpp(67): error C2146: syntax error : missing ';' before identifier 'digest'
1>..\tools.cpp(67): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(67): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(67): error C2065: 'DIGESTSIZE' : undeclared identifier
1>..\tools.cpp(70): error C2065: 'hash' : undeclared identifier
1>..\tools.cpp(70): error C2228: left of '.CalculateDigest' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(70): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>..\tools.cpp(70): error C2146: syntax error : missing ')' before identifier 'byte'
1>..\tools.cpp(70): error C2065: 'byte' : undeclared identifier
1>..\tools.cpp(70): error C2059: syntax error : ')'
1>..\tools.cpp(70): error C2059: syntax error : ')'
1>..\tools.cpp(73): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(73): error C2065: 'HexEncoder' : undeclared identifier
1>..\tools.cpp(73): error C2146: syntax error : missing ';' before identifier 'encoder'
1>..\tools.cpp(73): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(79): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(79): error C2228: left of '.Attach' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(79): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(79): error C2061: syntax error : identifier 'StringSink'
1>..\tools.cpp(80): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(80): error C2228: left of '.Put' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(80): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(80): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(80): error C2070: ''unknown-type'': illegal sizeof operand
1>..\tools.cpp(81): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(81): error C2228: left of '.MessageEnd' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(94): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(94): error C2146: syntax error : missing ';' before identifier 'hash'
1>..\tools.cpp(94): warning C4551: function call missing argument list
1>..\tools.cpp(94): error C2065: 'hash' : undeclared identifier
1>..\tools.cpp(97): error C2065: 'byte' : undeclared identifier
1>..\tools.cpp(97): error C2146: syntax error : missing ';' before identifier 'digest'
1>..\tools.cpp(97): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(97): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(97): error C2065: 'DIGESTSIZE' : undeclared identifier
1>..\tools.cpp(100): error C2065: 'hash' : undeclared identifier
1>..\tools.cpp(100): error C2228: left of '.CalculateDigest' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(100): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>..\tools.cpp(100): error C2146: syntax error : missing ')' before identifier 'byte'
1>..\tools.cpp(100): error C2065: 'byte' : undeclared identifier
1>..\tools.cpp(100): error C2059: syntax error : ')'
1>..\tools.cpp(100): error C2059: syntax error : ')'
1>..\tools.cpp(103): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(103): error C2065: 'HexEncoder' : undeclared identifier
1>..\tools.cpp(103): error C2146: syntax error : missing ';' before identifier 'encoder'
1>..\tools.cpp(103): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(109): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(109): error C2228: left of '.Attach' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(109): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(109): error C2061: syntax error : identifier 'StringSink'
1>..\tools.cpp(110): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(110): error C2228: left of '.Put' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(110): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(110): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(110): error C2070: ''unknown-type'': illegal sizeof operand
1>..\tools.cpp(111): error C2065: 'encoder' : undeclared identifier
1>..\tools.cpp(111): error C2228: left of '.MessageEnd' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(124): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(124): error C2146: syntax error : missing ';' before identifier 'hash'
1>..\tools.cpp(124): warning C4551: function call missing argument list
1>..\tools.cpp(124): error C2065: 'hash' : undeclared identifier
1>..\tools.cpp(127): error C2065: 'byte' : undeclared identifier
1>..\tools.cpp(127): error C2146: syntax error : missing ';' before identifier 'digest'
1>..\tools.cpp(127): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(127): error C2653: 'CryptoPP' : is not a class or namespace name
1>..\tools.cpp(127): error C2065: 'DIGESTSIZE' : undeclared identifier
1>..\tools.cpp(130): error C2065: 'hash' : undeclared identifier
1>..\tools.cpp(130): error C2228: left of '.CalculateDigest' must have class/struct/union
1>          type is ''unknown-type''
1>..\tools.cpp(130): error C2065: 'digest' : undeclared identifier
1>..\tools.cpp(130): fatal error C1003: error count exceeds 100; stopping compilation
and many many warnings
 
Last edited:
OP
OP
Fir3element

Fir3element

Active Member
Joined
Dec 31, 2015
Messages
27
Reaction score
44
Location
Argentina
by the way do you know how to compile 3884 with this? I tried to copycat everything and got this huge amount of errors:
your source compiles without problems
I edited so many files to compile in visual studio 2010, I think this support became as default in 9.x+
Try to compare the functions... and I used OpenSSL instead CryptoPP.
 

Adorius Black

Intermediate OT User
Joined
Mar 31, 2020
Messages
244
Solutions
3
Reaction score
126
what libraries i need for compile on windows please? and work with MSVS 2019?

edit:
ok i got it.
 

shakal1

New Member
Joined
Oct 12, 2020
Messages
2
Reaction score
0
Is this source clean? there is nothing to make the otservlist ban me?

The last one I used, even though I didn’t accept MC, and there was no exit trainer, they banned me.

They said that Elias was an old acquaintance of them, famous for spooofy and that's why I took perma ban!
 

Bandoleiro

Member
Joined
Sep 5, 2019
Messages
24
Reaction score
6
Hi in sumary this update have
Install vc10 redistributable package


I had the same problem (500+ players on and 1-2 months uptime)
Sometimes crash rarely, and sometimes daily... Idk how to fix it =/
This source is outdated, try 0.3.7 (OTX2)

Bro you solved the problems crash? i have the same problem DX
 
OP
OP
Fir3element

Fir3element

Active Member
Joined
Dec 31, 2015
Messages
27
Reaction score
44
Location
Argentina
UPDATES

For people still using this server, I did some updates:
  • Added Dockerfile and docker-compose.yml (use "bindOnlyGlobalAddress = true" in config.lua)
  • Added CMakeLists.txt
  • Added LuaJIT (doesn't work on arm64)
  • Fixes to compile on Ubuntu 22.04; macOS Monterey; Visual Studio 2022
  • Fix NPC option "ignore equipped"
  • Added save on close (windows signals)

 
Last edited:

Extrodus

|| Blazera.net ||
Premium User
Joined
Dec 22, 2008
Messages
2,476
Solutions
4
Reaction score
379
Location
Canada
UPDATES

For people still using this server, I did some updates:
  • Added Dockerfile and docker-compose.yml (use "bindOnlyGlobalAddress = true" in config.lua)
  • Added CMakeLists.txt
  • Added LuaJIT (doesn't work on arm64)
  • Fixes to compile on Ubuntu 22.04; macOS Monterey; Visual Studio 2022
  • Fix NPC option "ignore equipped"
  • Added save on close (windows signals)

@Fir3element
Earlier today I was able to view all the commits and changes recently.. now it just shows "Initial commit"
Anyway to get that information back?
 

Evil Puncker

I know nothing
TFS Developer
Joined
May 30, 2009
Messages
8,508
Solutions
260
Reaction score
4,441
just curious, why was debug project removed from vs?
 

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,624
Solutions
34
Reaction score
317
ur new edit don't work on ubuntu 18 and when back to compile old source game don't open anymore idk why lol :S

and when compile ur new source edit by old commands lik
sh autogen.sh && ./configure --enable-server-diag --enable-mysql --enable-debug-symbols && make
compile done and game open but get bug with magiclevel don't go up and always 0
 
Last edited:
Top