• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Help me with c++

Joined
Apr 17, 2008
Messages
1,922
Solutions
1
Reaction score
188
Location
Venezuela
Hello.... how can i update my server to 8.40?

I'm using TFS v0.2 (Mystic Spirit) but... my server don't have the folder "Sources" and i don't know where i can download it...


Help me...
 
http://otland.net/f19/forgotten-dev-cpp-v2-2-a-1024/

New -> Project -> Console Application (C++ Project).
Save it whereever you want to and put in the same directory TheForgottenServer.ico, which you have downloaded.

Now on the left side (in this some-what box), right-click main.cpp and remove it, then right click your project name in the same box and do:
Add to project... -> Select every *.cpp and *.h files (sources).

Press ALT + P:

General: If you compile as GUI in the TYPE box choose Win32 GUI and tick "Support Windows XP Themes", else just choose Win32 Console.

Go to Parameters:
in the Linkers Box add:
Code:
-O1
-lboost_system
-lgmp
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s

and C++ Compiler:
Code:
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__ENABLE_SERVER_DIAGNOSTIC__
-D__LOGIN_SERVER__

^ used 0.3 definitions, but should be fine.

Now on the top of Dev-Cpp find & select Execute -> Compile.

@@@
If you want to compile as console add -D__CONSOLE__ to C++ Compiler box.
 
Last edited:
I did everything what you said and this one is the result:

zj876a.jpg


What I do now?
 
I guess you forgot to compile (CTRL + F9)... There is no *.exe O_O

After compiling, take the *.exe from the directory where you saved your project and place it where the *.dll files and data folder are.
 
Then where is your compiling result, which is TheForgottenServer.exe?

Open TheForgottenServer.dev and press CTRL + F9 and wait, till you can press 'OK' or 'Done.' or w/e.
 
mm.. i've read the messages after compiling... look:

Code:
    [General Error] Too many messages; abort. 
  There must be something terribly wrong with your code. Please fix it.

^ That are the two last messages
 
Find the executable in your proyect folder after your proyect is finished

example ;P (c:\devcpp\proyect\theforgottenserver.exe

give me pm with u msn ;D!
 
Back
Top