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

[Tutorial] Complie the TFS 0.4.

Whenever i try to compile TFS i always get a similar error, that looks like this:

Compiler: Default compiler
Building Makefile: "C:\Users\Piotrek\Desktop\trunk.r4382\dev-cpp\Makefile.win"
Executing make clean
rm -f obj//actions.o obj//admin.o obj//allocator.o obj//baseevents.o obj//beds.o obj//chat.o obj//combat.o obj//condition.o obj//configmanager.o obj//connection.o obj//container.o obj//creature.o obj//creatureevent.o obj//cylinder.o obj//database.o obj//databasemanager.o obj//databasemysql.o obj//databasesqlite.o obj//depot.o obj//dispatcher.o obj//exception.o obj//fileloader.o obj//game.o obj//gameservers.o obj//globalevent.o obj//group.o obj//house.o obj//housetile.o obj//ioban.o obj//ioguild.o obj//iologindata.o obj//iomap.o obj//iomapserialize.o obj//item.o obj//itemattributes.o obj//items.o obj//luascript.o obj//mailbox.o obj//manager.o obj//map.o obj//monster.o obj//monsters.o obj//movement.o obj//networkmessage.o obj//npc.o obj//otserv.o obj//outfit.o obj//outputmessage.o obj//party.o obj//player.o obj//position.o obj//protocol.o obj//protocolgame.o obj//protocolhttp.o obj//protocollogin.o obj//protocolold.o obj//quests.o obj//raids.o obj//scheduler.o obj//scriptmanager.o obj//server.o obj//spawn.o obj//spells.o obj//status.o obj//talkaction.o obj//teleport.o obj//textlogger.o obj//thing.o obj//tile.o obj//tools.o obj//trashholder.o obj//vocation.o obj//waitlist.o obj//weapons.o obj//mounts.o obj//TheForgottenServer_private.res TheForgottenServer.exe

g++.exe -c ../actions.cpp -o obj//actions.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2 -fexpensive-optimizations -O1

In file included from ../luascript.h:39,
from ../baseevents.h:22,
from ../actions.h:20,
from ../actions.cpp:20:
../database.h: In constructor `DBQuery::DBQuery()':
../database.h:248: error: 'class boost::recursive_mutex' has no member named 'lock'

../database.h: In destructor `virtual DBQuery::~DBQuery()':
../database.h:249: error: 'class boost::recursive_mutex' has no member named 'unlock'

In file included from ../scheduler.h:22,
from ../game.h:25,
from ../actions.cpp:30:
../dispatcher.h: At global scope:
../dispatcher.h:46: error: using-declaration for non-member at class scope

../dispatcher.h:46: error: expected `;' before "m_expiration"
../dispatcher.h: In constructor `Task::Task(const boost::function<void ()(), std::allocator<void> >&)':
../dispatcher.h:28: error: class `Task' does not have any field named `m_expiration'

../dispatcher.h: In constructor `Task::Task(uint32_t, const boost::function<void ()(), std::allocator<void> >&)':
../dispatcher.h:30: error: class `Task' does not have any field named `m_expiration'

../dispatcher.h:31: error: `get_system_time' is not a member of `boost'

../dispatcher.h: In member function `void Task::unsetExpiration()':
../dispatcher.h:36: error: `m_expiration' undeclared (first use this function)
../dispatcher.h:36: error: (Each undeclared identifier is reported only once for each function it appears in.)
../dispatcher.h: In member function `bool Task::hasExpired() const':
../dispatcher.h:39: error: `m_expiration' undeclared (first use this function)
../dispatcher.h:42: error: `get_system_time' is not a member of `boost'

../dispatcher.h: At global scope:
../dispatcher.h:88: error: using-declaration for non-member at class scope
../dispatcher.h:88: error: expected `;' before "m_taskSignal"

In file included from ../game.h:25,
from ../actions.cpp:30:
../scheduler.h:33: error: using-declaration for non-member at class scope

../scheduler.h:33: error: expected `;' before "getCycle"
../scheduler.h:34: error: expected `;' before "bool"

../scheduler.h: In member function `bool SchedulerTask::eek:perator<(const SchedulerTask&) const':
../scheduler.h:34: error: `getCycle' undeclared (first use this function)
../scheduler.h:34: error: 'const class SchedulerTask' has no member named 'getCycle'

../scheduler.h: At global scope:
../scheduler.h:90: error: using-declaration for non-member at class scope
../scheduler.h:90: error: expected `;' before "m_eventSignal"

In file included from ../actions.cpp:36:
../house.h:26:39: boost/tr1/unordered_set.hpp: No such file or directory
In file included from ../actions.cpp:36:
../house.h:80: error: `std::tr1' has not been declared

../house.h:80: error: ISO C++ forbids declaration of `unordered_set' with no type
../house.h:80: error: expected `;' before '<' token
../house.h:86: error: `PlayerList' does not name a type

make.exe: *** [obj//actions.o] Error 1

Execution terminated

I'm a total newb at compiling, so if anyone could please help me, I would be very thankful :)

And by the way, I did not change or edit any files in my rev and the version i use is 4382 (the latest one)
 
Last edited:
Got this error with trunk.4335:
../otserv.cpp:33:25: openssl/rsa.h: No such file or directory
../otserv.cpp:34:24: openssl/bn.h: No such file or directory
../otserv.cpp:35:25: openssl/err.h: No such file or directory
../otserv.cpp:90: error: expected constructor, destructor, or type conversion before '*' token

../otserv.cpp: In function `void otserv(StringVec, ServiceManager*)':
../otserv.cpp:563: error: `g_RSA' was not declared in this scope
../otserv.cpp:563: error: `RSA_new' was not declared in this scope

../otserv.cpp:565: error: `BN_dec2bn' was not declared in this scope
../otserv.cpp:572: error: `RSA_check_key' was not declared in this scope

../otserv.cpp:577: error: `BN_CTX' was not declared in this scope
../otserv.cpp:577: error: `ctx' was not declared in this scope
../otserv.cpp:577: error: `BN_CTX_new' was not declared in this scope
../otserv.cpp:578: error: `BN_CTX_start' was not declared in this scope
../otserv.cpp:580: error: `BIGNUM' was not declared in this scope
../otserv.cpp:580: error: `r1' was not declared in this scope
../otserv.cpp:580: error: `BN_CTX_get' was not declared in this scope
../otserv.cpp:580: error: `r2' was not declared in this scope
../otserv.cpp:581: error: `BN_mod' was not declared in this scope
../otserv.cpp:584: error: `BN_mod_inverse' was not declared in this scope
../otserv.cpp:589: error: `ERR_load_crypto_strings' was not declared in this scope
../otserv.cpp:592: error: `ERR_get_error' was not declared in this scope
../otserv.cpp:592: error: `ERR_error_string' was not declared in this scope

make.exe: *** [obj//otserv.o] Error 1

I've downloaded and tryed with Open SSL 0.9.8a and 0.9.8

For noobs, newbies etc: my friend forgove his premium acc name and password, so we are trying to compile in my house. You can believe it or not.

Edit: That's my linker
-lboost_system
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
-lboost_filesystem
-lboost_thread
-lz
-lcryptopp
-leay32
 
Last edited:
@Esteve

Check my compilling thread, i already have it compiled, just download it ^^
 
Yo tengo un problema parecido nada mas puedo colocar una console q fue compilada con c++ el dev, y ps

tengo en realidad 2 consoles una con sha1 y otra con plain.... La cuestion esta q la de plain no esta configurada para lo del war system.... Y la de sha1 si lo esta... Me dice un amigo español q ajuro deberia entrar con sha1 al igual con plain... Necesito ayuda.... Plx respondan lo mas pronto es q compre el war system y quiero poner open el server... Anteriormente mi server se llamaba promaprl.sytes.net soy de venezuela ayuda porfavor
 
Ayudaaaa

Yo tengo un problema parecido nada mas puedo colocar una console q fue compilada con c++ el dev, y ps

tengo en realidad 2 consoles una con sha1 y otra con plain.... La cuestion esta q la de plain no esta configurada para lo del war system.... Y la de sha1 si lo esta... Me dice un amigo español q ajuro deberia entrar con sha1 al igual con plain... Necesito ayuda.... Plx respondan lo mas pronto es q compre el war system y quiero poner open el server... Anteriormente mi server se llamaba promaprl.sytes.net soy de venezuela ayuda porfavor
 
And if I compiled it, I just can run the server in the trunk folder by starting the server.exe which I compiled, where all the .cpp files and sources are located in?

And server will start as usual?
 
When i press F9 tells me The program can't start because lua5.1.dll is missing from your computer. Try reinstalling the program to fix the problem.... If i get lua5.1.dll where shud i put it, in which folder i mean.
 
I use trunk.r3884 and i have problems:

Code:
../otserv.cpp:88: error: expected constructor, destructor, or type conversion before '*' token
../otserv.cpp: In function 'void otserv(StringVec, ServiceManager*)':
../otserv.cpp:546: error: 'g_RSA' was not declared in this scope
../otserv.cpp:546: error: 'RSA_new' was not declared in this scope
../otserv.cpp:548: error: 'BN_dec2bn' was not declared in this scope
../otserv.cpp:556: error: 'RSA_check_key' was not declared in this scope
../otserv.cpp:561: error: 'ERR_load_crypto_strings' was not declared in this scope
../otserv.cpp:562: error: 'ERR_get_error' was not declared in this scope
../otserv.cpp:562: error: 'ERR_error_string' was not declared in this scope
 
Yes. but download the last on in Stain's thread, and if u had any problems compiling or so feel free to pm me.
 
when i try to compile my rev 0.4 rev i got 502 errors most of them saying ../luascript.h:717: error: expected `;' before '(' token and ofc many other errors u.u
 
On me its work so good ...

but the problem that when i made gesior acc site .. admin account : 1 and pass : ....

i cant login ... please help!
 
what is a rev ?? is it a server databack and so on without the dlls files and exe file??
 
I compiled and everything looks fine (no errors) Done message.

But then I click on the .exe generated and nothing happens :S
literally nothing its like if I were clicking on the desktop with no files, lol

rev 3884

edit: anyone can link a compiled one? thanks! there is any advantage compiling it by yourself or what?
 
Back
Top